Commit 4f1fe43c authored by Brett Creeley's avatar Brett Creeley Committed by Jeff Kirsher

ice: Add more Rx errors to netdev's rx_error counter

Currently we are only including illegal_bytes and rx_crc_errors in the
PF netdev's rx_error counter. There are many more causes of Rx errors
that the device supports and reports via Ethtool. Accumulate all Rx
errors in the PF netdev's rx_error counter.
Signed-off-by: default avatarBrett Creeley <brett.creeley@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 68d27078
...@@ -4295,7 +4295,13 @@ void ice_update_vsi_stats(struct ice_vsi *vsi) ...@@ -4295,7 +4295,13 @@ void ice_update_vsi_stats(struct ice_vsi *vsi)
if (vsi->type == ICE_VSI_PF) { if (vsi->type == ICE_VSI_PF) {
cur_ns->rx_crc_errors = pf->stats.crc_errors; cur_ns->rx_crc_errors = pf->stats.crc_errors;
cur_ns->rx_errors = pf->stats.crc_errors + cur_ns->rx_errors = pf->stats.crc_errors +
pf->stats.illegal_bytes; pf->stats.illegal_bytes +
pf->stats.rx_len_errors +
pf->stats.rx_undersize +
pf->hw_csum_rx_error +
pf->stats.rx_jabber +
pf->stats.rx_fragments +
pf->stats.rx_oversize;
cur_ns->rx_length_errors = pf->stats.rx_len_errors; cur_ns->rx_length_errors = pf->stats.rx_len_errors;
/* record drops from the port level */ /* record drops from the port level */
cur_ns->rx_missed_errors = pf->stats.eth.rx_discards; cur_ns->rx_missed_errors = pf->stats.eth.rx_discards;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment