numam-dpdk/drivers/net
Alvin Zhang 39e4a2577f net/i40e: fix Rx packet statistics
Some packets are discarded by the NIC because they are larger than
the MTU, these packets should be counted as "RX error" instead of
"RX packet", for example:

  pkt1 = Ether()/IP()/Raw('x' * 1400)
  pkt2 = Ether()/IP()/Raw('x' * 1500)

  ---------------- Forward statistics for port 0 -----------------
  RX-packets: 2 RX-dropped: 0 RX-total: 2
  TX-packets: 1 TX-dropped: 0 TX-total: 1
  ----------------------------------------------------------------

  Here the packet pkt2 has been discarded, but still was counted
  by "RX-packets"

The register 'GL_RXERR1' can count above discarded packets.
This patch adds reading and calculation of the 'GL_RXERR1' counter
when reporting DPDK statistics.

Fixes: f4a91c38b4 ("i40e: add extended stats")
Cc: stable@dpdk.org

Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
2021-10-08 08:18:31 +02:00
..
af_packet ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
af_xdp net/af_xdp: disable secondary process support 2021-10-08 13:06:55 +02:00
ark version: 21.11-rc0 2021-08-17 08:37:52 +02:00
atlantic ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
avp ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
axgbe ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
bnx2x ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
bnxt ethdev: remove deprecated shared counter attribute 2021-10-12 19:20:57 +02:00
bonding net/bonding: fix RSS key length 2021-10-08 19:23:32 +02:00
cnxk ethdev: remove deprecated shared counter attribute 2021-10-12 19:20:57 +02:00
cxgbe ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
dpaa ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
dpaa2 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
e1000 ethdev: remove legacy Rx descriptor done API 2021-10-11 16:44:57 +02:00
ena net/ena: remove useless address check 2021-10-11 17:47:31 +02:00
enetc ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
enic ethdev: fix representor port ID search by name 2021-10-12 16:54:20 +02:00
failsafe ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
fm10k ethdev: remove legacy Rx descriptor done API 2021-10-11 16:44:57 +02:00
hinic ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
hns3 ethdev: remove deprecated shared counter attribute 2021-10-12 19:20:57 +02:00
i40e net/i40e: fix Rx packet statistics 2021-10-08 08:18:31 +02:00
iavf net/iavf: fix QFI field bit check for GTPU EH 2021-10-08 08:18:07 +02:00
ice ethdev: remove deprecated shared counter attribute 2021-10-12 19:20:57 +02:00
igc ethdev: remove legacy Rx descriptor done API 2021-10-11 16:44:57 +02:00
ionic ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
ipn3ke ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
ixgbe ethdev: fix representor port ID search by name 2021-10-12 16:54:20 +02:00
kni ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
liquidio ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
memif ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
mlx4 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
mlx5 ethdev: remove deprecated shared counter attribute 2021-10-12 19:20:57 +02:00
mvneta ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
mvpp2 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
netvsc ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
nfb ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
nfp net/nfp: cancel delayed LSC work in port close 2021-10-07 12:19:53 +02:00
ngbe ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
null ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
octeontx mempool: add namespace to internal helpers 2021-10-20 10:00:18 +02:00
octeontx2 ethdev: remove deprecated shared counter attribute 2021-10-12 19:20:57 +02:00
octeontx_ep ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
pcap ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
pfe ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
qede ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
ring ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
sfc ethdev: remove deprecated shared counter attribute 2021-10-12 19:20:57 +02:00
softnic ethdev: remove deprecated shared counter attribute 2021-10-12 19:20:57 +02:00
szedata2 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
tap ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
thunderx mempool: add namespace to flags 2021-10-20 10:00:16 +02:00
txgbe ethdev: remove legacy mirroring API 2021-10-07 13:02:26 +02:00
vdev_netvsc version: 21.11-rc0 2021-08-17 08:37:52 +02:00
vhost ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
virtio ethdev: remove legacy Rx descriptor done API 2021-10-11 16:44:57 +02:00
vmxnet3 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
meson.build net/ngbe: add build and doc infrastructure 2021-07-12 17:55:19 +02:00