aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vmxnet3/vmxnet3.h
diff options
context:
space:
mode:
authorSteven <sluong@cisco.com>2018-12-12 16:01:28 -0800
committerDamjan Marion <dmarion@me.com>2018-12-17 08:35:02 +0000
commit7bb27caf62f5fa942be68015aeb0543566d22371 (patch)
tree0c6cc026e2bcea835e2c61f5b4640055cea46ef5 /src/plugins/vmxnet3/vmxnet3.h
parent18f34a86a4904524f53fc2c3d9a68572f12b9ae7 (diff)
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>
Diffstat (limited to 'src/plugins/vmxnet3/vmxnet3.h')
-rw-r--r--src/plugins/vmxnet3/vmxnet3.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/vmxnet3/vmxnet3.h b/src/plugins/vmxnet3/vmxnet3.h
index a3306895ec0..3a40b0de49e 100644
--- a/src/plugins/vmxnet3/vmxnet3.h
+++ b/src/plugins/vmxnet3/vmxnet3.h
@@ -488,6 +488,8 @@ typedef struct
vmxnet3_dma *dma;
u32 link_speed;
+ vmxnet3_tx_stats tx_stats;
+ vmxnet3_rx_stats rx_stats;
} vmxnet3_device_t;
typedef struct