ethdev: remove missed packets from error counter
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 10 Mar 2016 13:03:30 +0000 (16:03 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 22 Mar 2016 10:07:28 +0000 (11:07 +0100)
commit86057c9992f5ddfd378e1d5dba47f426926e72ea
treef97813fff7de45900e3da0a54a83960f41eacde4
parent42bd7cc8b3ad715d785610f8b1bb47f53c3c8317
ethdev: remove missed packets from error counter

Comment for "ierrors" counter says that it counts erroneous received
packets. But for some reason "imissed" counter is added to "ierrors"
counter in most drivers.
It is a mistake, because missed packets are obviously not received.
This patch fixes it.

Fixes: 70bdb18657da ("ethdev: add Rx error counters for missed, badcrc and badlen packets")
Fixes: 6bfe648406b5 ("i40e: add Rx error statistics")
Fixes: 856505d303f4 ("cxgbe: add port statistics")

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test-pmd/testpmd.c
drivers/net/cxgbe/cxgbe_ethdev.c
drivers/net/e1000/em_ethdev.c
drivers/net/e1000/igb_ethdev.c
drivers/net/i40e/i40e_ethdev.c
drivers/net/ixgbe/ixgbe_ethdev.c