RE: [Intel-wired-lan] [PATCH] i40e: Add rx_missed_errors for buffer exhaustion

From: Arland, ArpanaX
Date: Thu Sep 21 2023 - 15:04:26 EST


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@xxxxxxxxxx> On Behalf Of Yajun Deng
> Sent: Wednesday, September 6, 2023 12:58 PM
> To: Nguyen, Anthony L <anthony.l.nguyen@xxxxxxxxx>; davem@xxxxxxxxxxxxx; edumazet@xxxxxxxxxx; kuba@xxxxxxxxxx; pabeni@xxxxxxxxxx
> Cc: netdev@xxxxxxxxxxxxxxx; Yajun Deng <yajun.deng@xxxxxxxxx>; intel-wired-lan@xxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: [Intel-wired-lan] [PATCH] i40e: Add rx_missed_errors for buffer exhaustion
>
> As the comment in struct rtnl_link_stats64, rx_dropped should not include packets dropped by the device due to buffer exhaustion.
> They are counted in rx_missed_errors, procfs folds those two counters together.
>
> Add rx_missed_errors for buffer exhaustion, rx_missed_errors corresponds to rx_discards, rx_dropped corresponds to rx_discards_other.
>
> Signed-off-by: Yajun Deng <yajun.deng@xxxxxxxxx>
> ---
> drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 3 ++-
> drivers/net/ethernet/intel/i40e/i40e_main.c | 18 +++++++-----------
> .../net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 2 +-
> 3 files changed, 10 insertions(+), 13 deletions(-)
>

Tested-by: Arpana Arland <arpanax.arland@xxxxxxxxx> (A Contingent worker at Intel)
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@xxxxxxxxxx
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan