Alvin Zhang 7b0a60dd39 net/e1000: fix Rx error counter for bad length
When the size of a packet in Rx channel is less than the minimum
or greater than the maximum, the packet will be simultaneously
counted by RLEC(Receive Length Error Count) and
RUC(Receive Under Size Count)/ROC(Receive Oversize Count) registers.

This patch fixes the issue of counting a length error packet twice
when counting the total number of received error packets.

Fixes: 70bdb18657da ("ethdev: add Rx error counters for missed, badcrc and badlen packets")
Cc: stable@dpdk.org

Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
2021-04-01 09:47:43 +02:00
..
2021-04-08 18:32:31 +02:00
2021-04-08 18:32:31 +02:00
2021-02-24 18:03:30 +01:00
2021-04-06 19:37:45 +02:00
2021-04-01 16:10:20 +02:00
2021-04-01 16:10:20 +02:00
2021-04-01 16:10:20 +02:00
2021-04-08 18:32:31 +02:00
2021-01-29 18:16:12 +01:00
2021-03-09 09:36:34 +01:00
2021-03-30 16:13:44 +02:00
2021-03-25 17:00:49 +01:00