ethdev: remove useless stats zeroing in drivers
authorStephen Hemminger <shemming@brocade.com>
Wed, 21 Jan 2015 04:16:58 +0000 (20:16 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 27 Jan 2015 11:36:23 +0000 (12:36 +0100)
commit4e4510dfff548eab47da112b8fb7c48a33f0f959
tree1d6aa69d92e8967325b5ed54d82919b3f83b2fef
parentca0038c0094dd8a63fc7595e26d0071a3e3bd72e
ethdev: remove useless stats zeroing in drivers

The rte_eth_stats_get is the only API that should call the device
statistics function directly, and it already does a memset of the
resulting structure since commit 02331c16ec0ba. Therefore doing
memset() in the driver is redundant and should be removed.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
[David: remove also in igbvf and pcap PMDs]
Acked-By: David Marchand <david.marchand@6wind.com>
lib/librte_pmd_af_packet/rte_eth_af_packet.c
lib/librte_pmd_bond/rte_eth_bond_pmd.c
lib/librte_pmd_e1000/igb_ethdev.c
lib/librte_pmd_enic/enic_main.c
lib/librte_pmd_i40e/i40e_ethdev_vf.c
lib/librte_pmd_ixgbe/ixgbe_ethdev.c
lib/librte_pmd_pcap/rte_eth_pcap.c
lib/librte_pmd_ring/rte_eth_ring.c