[dpdk-dev] [PATCH 1/6] net/vmxnet3: retain counters on restart

Shrikrishna Khare skhare at shri-linux.eng.vmware.com
Fri May 26 19:31:26 CEST 2017



On Fri, 19 May 2017, Charles (Chas) Williams wrote:

> From: Nachiketa Prachanda <nprachan at brocade.com>
> 
> Most nics like virtio, igb/ixgbe etc. don't reset counters on
> dev_start and arguably this helps in monitoring the counters
> across a longer time span with multiple device start/stops.
> vmxnet3 behavior is opposite to that and counters are reset by
> the host side implementation each time the device is restarted.
> 
> Change the driver to save the counters in its private context
> before it is reset by writing CMD_ACTIVATE to REG_CMD.
> 
> Signed-off-by: Nachiketa Prachanda <nprachan at brocade.com>

Acked-by: Shrikrishna Khare <skhare at vmware.com>


More information about the dev mailing list