From 7bb27caf62f5fa942be68015aeb0543566d22371 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 12 Dec 2018 16:01:28 -0800 Subject: 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 --- src/plugins/vmxnet3/vmxnet3.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/vmxnet3/vmxnet3.h') 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 -- cgit 1.2.3-korg