]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-netlink: mcvlan - add new attributes
authorSusant Sahani <ssahani@vmware.com>
Wed, 13 Jan 2021 10:37:02 +0000 (11:37 +0100)
committerSusant Sahani <ssahani@gmail.com>
Thu, 14 Jan 2021 13:01:58 +0000 (14:01 +0100)
src/libsystemd/sd-netlink/netlink-types.c

index cff029f3cc9b558cb3b892a942c84e74fb90294a..87ce45b4c92760588b45d1af380c93de4d7110a9 100644 (file)
@@ -105,10 +105,13 @@ static const NLTypeSystem rtnl_macvlan_macaddr_type_system = {
 };
 
 static const NLType rtnl_link_info_data_macvlan_types[] = {
-        [IFLA_MACVLAN_MODE]  = { .type = NETLINK_TYPE_U32 },
-        [IFLA_MACVLAN_FLAGS] = { .type = NETLINK_TYPE_U16 },
-        [IFLA_MACVLAN_MACADDR_MODE] = { .type = NETLINK_TYPE_U32 },
-        [IFLA_MACVLAN_MACADDR_DATA] = { .type = NETLINK_TYPE_NESTED, .type_system = &rtnl_macvlan_macaddr_type_system },
+        [IFLA_MACVLAN_MODE]              = { .type = NETLINK_TYPE_U32 },
+        [IFLA_MACVLAN_FLAGS]             = { .type = NETLINK_TYPE_U16 },
+        [IFLA_MACVLAN_MACADDR_MODE]      = { .type = NETLINK_TYPE_U32 },
+        [IFLA_MACVLAN_MACADDR_DATA]      = { .type = NETLINK_TYPE_NESTED, .type_system = &rtnl_macvlan_macaddr_type_system },
+        [IFLA_MACVLAN_MACADDR_COUNT]     = { .type = NETLINK_TYPE_U32 },
+        [IFLA_MACVLAN_BC_QUEUE_LEN]      = { .type = NETLINK_TYPE_U32 },
+        [IFLA_MACVLAN_BC_QUEUE_LEN_USED] = { .type = NETLINK_TYPE_REJECT },
 };
 
 static const NLType rtnl_link_info_data_bridge_types[] = {