net/i40e: support reset stats in VF
authorWei Zhao <wei.zhao1@intel.com>
Thu, 21 Sep 2017 06:32:24 +0000 (14:32 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
Add stats reset support to VF.

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c

index 806ff9e..13c472f 100644 (file)
@@ -198,6 +198,7 @@ static const struct eth_dev_ops i40evf_eth_dev_ops = {
        .allmulticast_disable = i40evf_dev_allmulticast_disable,
        .link_update          = i40evf_dev_link_update,
        .stats_get            = i40evf_dev_stats_get,
+       .stats_reset          = i40evf_dev_xstats_reset,
        .xstats_get           = i40evf_dev_xstats_get,
        .xstats_get_names     = i40evf_dev_xstats_get_names,
        .xstats_reset         = i40evf_dev_xstats_reset,