rtnetlink: add IFLA_GROUP to ifla_policy
Subsystems (2)
Network interface groups support added while ago, however there is no IFLA_GROUP attribute description in policy and netlink message size calculations until now.
Add IFLA_GROUP attribute to the policy.
--- net/core/rtnetlink.c | 2 ++ 1 file changed, 2 insertions(+)
net/core/rtnetlink.c +2 -0
@@ -931,6 +931,7 @@ static noinline size_t if_nlmsg_size(const struct net_device *dev, +nla_total_size (1 )/* IFLA_LINKMODE */ +nla_total_size (4 )/* IFLA_CARRIER_CHANGES */ +nla_total_size (4 )/* IFLA_LINK_NETNSID */ + +nla_total_size (4 )/* IFLA_GROUP */ +nla_total_size (ext_filter_mask &RTEXT_FILTER_VF ?4 :0 )/* IFLA_NUM_VF */ +rtnl_vfinfo_size (dev, ext_filter_mask)/* IFLA_VFINFO_LIST */
@@ -1506,6 +1507,7 @@ static int rtnl_fill_ifinfo(struct sk_buff *skb, struct net_device *dev, [IFLA_PROTO_DOWN] = { .type = NLA_U8 }, [IFLA_XDP] = { .type = NLA_NESTED }, [IFLA_EVENT] = { .type = NLA_U32 }, + [IFLA_GROUP] = { .type = NLA_U32 }, };static const struct nla_policy ifla_info_policy[IFLA_INFO_MAX +1 ] = {
Signature · 1 line
1.8.3.1
David Miller
maintainerFrom: Serhey Popovych <[email protected]>
Date: Fri, 16 Jun 2017 15:22:24 +0300
Quoted 8 lines
Network interface groups support added while ago, however there is no
IFLA_GROUPattribute description in policy and netlink message size calculations until now.Add
IFLA_GROUPattribute to the policy.Fixes cbda10fa97d7 ("net_device: add support for network device groups")Signed-off-by Serhey Popovych <[email protected]>
Applied and queued up for -stable, thanks.
David Miller
maintainerFrom: David Miller <[email protected]>
Date: Mon, 19 Jun 2017 14:47:44 -0400 (EDT)
Quoted 7 lines
From: Serhey Popovych <[email protected]>
Date: Fri, 16 Jun 2017 15:22:24 +0300Quoted 4 lines
Network interface groups support added while ago, however there is no
IFLA_GROUPattribute description in policy and netlink message size calculations until now.
Quoted 6 lines
Quoted 4 lines
Add
IFLA_GROUPattribute to the policy.Fixes cbda10fa97d7 ("net_device: add support for network device groups")Signed-off-by Serhey Popovych <[email protected]>Applied and queued up for -stable, thanks.
Actually, this doesn't apply cleanly to the 'net' tree, please respin.
Thansk.
PATCH 1/1 rtnetlink: add IFLA_GROUP to ifla_policy
Network interface groups support added while ago, however there is no IFLA_GROUP attribute description in policy and netlink message size calculations until now.
Add IFLA_GROUP attribute to the policy.
---
v2: Rebased to kernel/git/davem/net.git
net/core/rtnetlink.c | 2 ++ 1 file changed, 2 insertions(+)
net/core/rtnetlink.c +2 -0
@@ -931,6 +931,7 @@ static noinline size_t if_nlmsg_size(const struct net_device *dev, +nla_total_size (1 )/* IFLA_LINKMODE */ +nla_total_size (4 )/* IFLA_CARRIER_CHANGES */ +nla_total_size (4 )/* IFLA_LINK_NETNSID */ + +nla_total_size (4 )/* IFLA_GROUP */ +nla_total_size (ext_filter_mask &RTEXT_FILTER_VF ?4 :0 )/* IFLA_NUM_VF */ +rtnl_vfinfo_size (dev, ext_filter_mask)/* IFLA_VFINFO_LIST */
@@ -1468,6 +1469,7 @@ static int rtnl_fill_ifinfo(struct sk_buff *skb, struct net_device *dev, [IFLA_LINK_NETNSID] = { .type = NLA_S32 }, [IFLA_PROTO_DOWN] = { .type = NLA_U8 }, [IFLA_XDP] = { .type = NLA_NESTED }, + [IFLA_GROUP] = { .type = NLA_U32 }, };static const struct nla_policy ifla_info_policy[IFLA_INFO_MAX +1 ] = {
Signature · 1 line
1.8.3.1
David Miller
maintainerFrom: Serhey Popovych <[email protected]>
Date: Tue, 20 Jun 2017 14:35:23 +0300
Quoted 10 lines
Network interface groups support added while ago, however there is no
IFLA_GROUPattribute description in policy and netlink message size calculations until now.Add
IFLA_GROUPattribute to the policy.Fixes cbda10fa97d7 ("net_device: add support for network device groups")Signed-off-by Serhey Popovych <[email protected]>---
v2: Rebased tokernel/git/davem/net.git
Applied and queued up for -stable.