From 60e49cf9e1e1fc6acc2f80a1abd6636bbd906332 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Thu, 14 Jan 2021 14:01:38 +0100 Subject: [PATCH] basic: Add macvlan netlink attributes --- src/basic/linux/if_link.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/basic/linux/if_link.h b/src/basic/linux/if_link.h index c4b23f06f69..82708c6db43 100644 --- a/src/basic/linux/if_link.h +++ b/src/basic/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, @@ -588,6 +589,8 @@ enum { IFLA_MACVLAN_MACADDR, IFLA_MACVLAN_MACADDR_DATA, IFLA_MACVLAN_MACADDR_COUNT, + IFLA_MACVLAN_BC_QUEUE_LEN, + IFLA_MACVLAN_BC_QUEUE_LEN_USED, __IFLA_MACVLAN_MAX, };