From: Tariq Toukan > Sent: 26 May 2016 10:39 ... > I am aware that clearing the stats structure might be redundant today, > as the function is called only within mlx4_en_open, but we might want to > call the function in other flows in the future.
My personal view is that stats should never be cleared. Any code that wants stats deltas should be remembering the old values itself. For SNMP (etc) you may want to save the time when the stats block was created (when everything would be zero). David