diff options
author | Edward Cree <ecree.xilinx@gmail.com> | 2024-09-30 14:52:41 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-10-06 16:02:23 +0100 |
commit | 5c24de42f1c1d77cf876ae4b1830e1bbf89f456f (patch) | |
tree | e1a41f48dc7baef043dadd287d12ead2a48ffaa8 /net/ipv4/tcp_timer.c | |
parent | 873e85795026e1c57dd6db24148fc5b85cc2ccee (diff) | |
download | linux-5c24de42f1c1d77cf876ae4b1830e1bbf89f456f.tar.gz linux-5c24de42f1c1d77cf876ae4b1830e1bbf89f456f.tar.bz2 linux-5c24de42f1c1d77cf876ae4b1830e1bbf89f456f.zip |
sfc: add n_rx_overlength to ethtool stats
The previous patch changed when we increment the RX queue's rx_packets
counter, to match the semantics of netdev per-queue stats. The
differences between the old and new counts are scatter errors (which
produce a WARN_ON) and this counter, which is incremented by
efx_rx_packet__check_len() when an RX packet (which was placed in a
single buffer by SG, i.e. n_frags == 1) has a length (from the RX
event) which is too long to fit in the RX buffer. If this occurs, we
drop the packet and fire a ratelimited netif_err().
The counter previously was not reported anywhere; add it to ethtool -S
output to ensure users still have this information.
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
0 files changed, 0 insertions, 0 deletions