aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/if_link.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2020-12-30 19:37:53 -0800
committerDavid S. Miller <davem@davemloft.net>2021-01-05 16:23:57 -0800
commitcf0720697143f3eaa0779cca5a6602d8557d1c6f (patch)
tree997ca7e467c6b71e1bbe29b1fd3f61a22cb819f3 /include/uapi/linux/if_link.h
parentnet/sonic: Fix some resource leaks in error handling paths (diff)
downloadlinux-dev-cf0720697143f3eaa0779cca5a6602d8557d1c6f.tar.xz
linux-dev-cf0720697143f3eaa0779cca5a6602d8557d1c6f.zip
net: suggest L2 discards be counted towards rx_dropped
From the existing definitions it's unclear which stat to use to report filtering based on L2 dst addr in old broadcast-medium Ethernet. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/if_link.h')
-rw-r--r--include/uapi/linux/if_link.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h
index 874cc12a34d9..82708c6db432 100644
--- a/include/uapi/linux/if_link.h
+++ b/include/uapi/linux/if_link.h
@@ -75,8 +75,9 @@ struct rtnl_link_stats {
*
* @rx_dropped: Number of packets received but not processed,
* e.g. due to lack of resources or unsupported protocol.
- * For hardware interfaces this counter should not include packets
- * dropped by the device which are counted separately in
+ * For hardware interfaces this counter may include packets discarded
+ * due to L2 address filtering but should not include packets dropped
+ * by the device due to buffer exhaustion which are counted separately in
* @rx_missed_errors (since procfs folds those two counters together).
*
* @tx_dropped: Number of packets dropped on their way to transmission,