netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [net] add rx_otherhost_dropped sysfs entry
@ 2023-02-25 21:12 nick black
  2023-02-27 18:23 ` Jakub Kicinski
  0 siblings, 1 reply; 8+ messages in thread
From: nick black @ 2023-02-25 21:12 UTC (permalink / raw)
  To: netdev
  Cc: Florian Fainelli, David S. Miller, Jeffrey Ji, Eric Dumazet,
	Willem de Bruijn

Add the sysfs export for rx_otherhost_dropped, added
in 794c24e9921f ("rx_otherhost_dropped to core_stats").
All other rtnl_link_stats64 entries are already present
as sysfs nodes; this completes the set.

Signed-off-by: nick black <dankamongmen@gmail.com>
---
 Documentation/ABI/testing/sysfs-class-net-statistics | 8 ++++++++
 net/core/net-sysfs.c                                 | 1 +
 2 files changed, 9 insertions(+)

diff --git Documentation/ABI/testing/sysfs-class-net-statistics Documentation/ABI/testing/sysfs-class-net-statistics
index 55db27815361..97ac76af30a4 100644
--- Documentation/ABI/testing/sysfs-class-net-statistics
+++ Documentation/ABI/testing/sysfs-class-net-statistics
@@ -104,6 +104,14 @@ Description:
 		Indicates the number of received packets that were dropped on
 		an inactive device by the network core.
 
+What:		/sys/class/<iface>/statistics/rx_otherhost_dropped
+Date:		February 2023
+KernelVersion:	6.3
+Contact:	netdev@vger.kernel.org
+Description:
+		Indicates the number of received packets that were dropped due
+		to mismatch in destination MAC address.
+
 What:		/sys/class/<iface>/statistics/rx_over_errors
 Date:		April 2005
 KernelVersion:	2.6.12
diff --git net/core/net-sysfs.c net/core/net-sysfs.c
index 15e3f4606b5f..fe8012308696 100644
--- net/core/net-sysfs.c
+++ net/core/net-sysfs.c
@@ -713,6 +713,7 @@ NETSTAT_ENTRY(tx_window_errors);
 NETSTAT_ENTRY(rx_compressed);
 NETSTAT_ENTRY(tx_compressed);
 NETSTAT_ENTRY(rx_nohandler);
+NETSTAT_ENTRY(rx_otherhost_dropped);
 
 static struct attribute *netstat_attrs[] __ro_after_init = {
 	&dev_attr_rx_packets.attr,
-- 
2.39.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-28 20:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-25 21:12 [PATCH] [net] add rx_otherhost_dropped sysfs entry nick black
2023-02-27 18:23 ` Jakub Kicinski
2023-02-27 18:29   ` nick black
2023-02-27 18:35     ` Eric Dumazet
2023-02-27 18:40     ` Jakub Kicinski
2023-02-28 12:59       ` nick black
2023-02-28 13:08       ` nick black
2023-02-28 20:33         ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).