From: Sasha Neftin <sashaneftin@gmail.com>
To: intel-wired-lan@osuosl.org
Subject: [PATCH iwl-next v1 2/2] e1000e: add support for rx_sym_errors statistic
Date: Tue, 24 Nov 2026 09:07:10 +0200 [thread overview]
Message-ID: <20261124070710.9728-2-sashaneftin@gmail.com> (raw)
In-Reply-To: <20261124070710.9728-1-sashaneftin@gmail.com>
Expose the Symbol Error Count (SYMERRS) register to ethtool statistics.
The SYMERRS register tracks physical layer symbol errors. Update the
adapter stats by reading SYMERRS in e1000e_update_stats and export
"rx_sym_errors" in e1000_gstrings_stats so it can be retrieved via
`ethtool --statistics`.
Signed-off-by: Sasha Neftin <sashaneftin@gmail.com>
---
drivers/net/ethernet/intel/e1000e/ethtool.c | 1 +
drivers/net/ethernet/intel/e1000e/netdev.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/intel/e1000e/ethtool.c b/drivers/net/ethernet/intel/e1000e/ethtool.c
index 6f45a37b17d4..49f4d93759c4 100644
--- a/drivers/net/ethernet/intel/e1000e/ethtool.c
+++ b/drivers/net/ethernet/intel/e1000e/ethtool.c
@@ -60,6 +60,7 @@ static const struct e1000_stats e1000_gstrings_stats[] = {
E1000_NETDEV_STAT("rx_length_errors", rx_length_errors),
E1000_NETDEV_STAT("rx_over_errors", rx_over_errors),
E1000_STAT("rx_crc_errors", stats.crcerrs),
+ E1000_STAT("rx_symbol_errors", stats.symerrs),
E1000_NETDEV_STAT("rx_frame_errors", rx_frame_errors),
E1000_STAT("rx_no_buffer_count", stats.rnbc),
E1000_STAT("rx_missed_errors", stats.mpc),
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index 3213f6dc123d..8a9fa8412224 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -5036,6 +5036,7 @@ static void e1000e_update_stats(struct e1000_adapter *adapter)
return;
adapter->stats.crcerrs += er32(CRCERRS);
+ adapter->stats.symerrs += er32(SYMERRS);
adapter->stats.gprc += er32(GPRC);
adapter->stats.gorc += er32(GORCL);
er32(GORCH); /* Clear gorc */
--
2.53.0
prev parent reply other threads:[~2026-11-24 7:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 7:07 [PATCH iwl-next v1 1/2] igc: add support for rx_symbol_errors statistic Sasha Neftin
2026-11-24 7:07 ` Sasha Neftin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124070710.9728-2-sashaneftin@gmail.com \
--to=sashaneftin@gmail.com \
--cc=intel-wired-lan@osuosl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox