vmxnet3: support clear hardware interface counters 51/16451/2
authorSteven <sluong@cisco.com>
Thu, 13 Dec 2018 00:01:28 +0000 (16:01 -0800)
committerDamjan Marion <dmarion@me.com>
Mon, 17 Dec 2018 08:35:02 +0000 (08:35 +0000)
commit7bb27caf62f5fa942be68015aeb0543566d22371
tree0c6cc026e2bcea835e2c61f5b4640055cea46ef5
parent18f34a86a4904524f53fc2c3d9a68572f12b9ae7
vmxnet3: support clear hardware interface counters

Add clear hardware interface counters callback for vmxnet3 device. We take a
snap shot of the statistics in the callback. For the show hardware command,
we display the delta between the current statistics and the last snapshot.

Change-Id: Ie1389d2141f519300f427fe6ff2fdf97fd9e9378
Signed-off-by: Steven <sluong@cisco.com>
src/plugins/vmxnet3/format.c
src/plugins/vmxnet3/vmxnet3.c
src/plugins/vmxnet3/vmxnet3.h