Commit cf072069 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

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: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0f7ba7bc
...@@ -75,8 +75,9 @@ struct rtnl_link_stats { ...@@ -75,8 +75,9 @@ struct rtnl_link_stats {
* *
* @rx_dropped: Number of packets received but not processed, * @rx_dropped: Number of packets received but not processed,
* e.g. due to lack of resources or unsupported protocol. * e.g. due to lack of resources or unsupported protocol.
* For hardware interfaces this counter should not include packets * For hardware interfaces this counter may include packets discarded
* dropped by the device which are counted separately in * 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). * @rx_missed_errors (since procfs folds those two counters together).
* *
* @tx_dropped: Number of packets dropped on their way to transmission, * @tx_dropped: Number of packets dropped on their way to transmission,
......
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