Skip to content

Commit 7973bfd

Browse files
Christian Braunerdavem330
authored andcommitted
rtnetlink: remove check for IFLA_IF_NETNSID
RTM_NEWLINK supports the IFLA_IF_NETNSID property since 5bb8ed0 so we should not error out when it is passed. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a83165f commit 7973bfd

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎net/core/rtnetlink.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2802,9 +2802,6 @@ static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh,
28022802
if (err < 0)
28032803
return err;
28042804

2805-
if (tb[IFLA_IF_NETNSID])
2806-
return -EOPNOTSUPP;
2807-
28082805
if (tb[IFLA_IFNAME])
28092806
nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ);
28102807
else

0 commit comments

Comments
 (0)