> -----Original Message-----
> From: Zhang, AlvinX <[email protected]>
> Sent: Thursday, September 30, 2021 1:20 PM
> To: Xing, Beilei <[email protected]>; Guo, Junfeng
> <[email protected]>; [email protected]; Zhang, Qi Z
> <[email protected]>
> Cc: [email protected]; Zhang, AlvinX <[email protected]>; [email protected]
> Subject: [PATCH v3] 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: f4a91c38b4ad ("i40e: add extended stats")
> Cc: [email protected]
> 
> Signed-off-by: Alvin Zhang <[email protected]>

Acked-by: Qi Zhang <[email protected]>

Applied to dpdk-next-net-intel.

Thanks
Qi

Reply via email to