i40e: Add rx_missed_errors for buffer exhaustion
authorYajun Deng <yajun.deng@linux.dev>
Wed, 6 Sep 2023 07:27:57 +0000 (15:27 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 3 Oct 2023 22:25:13 +0000 (15:25 -0700)
commit5337d294973331660e84e41836a54014de22e5b0
tree6de69b3719b0c2aae56fb1b384b8f145d5914ba6
parent8989682a1cb600bac1149ed17b1ce929ab472e79
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@linux.dev>
Tested-by: Arpana Arland <arpanax.arland@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c