Skip to content

Commit

Permalink
rtnetlink: remove check for IFLA_IF_NETNSID
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Brauner authored and David S. Miller committed Feb 1, 2018
1 parent a83165f commit 7973bfd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/core/rtnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -2802,9 +2802,6 @@ static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh,
if (err < 0)
return err;

if (tb[IFLA_IF_NETNSID])
return -EOPNOTSUPP;

if (tb[IFLA_IFNAME])
nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ);
else
Expand Down

0 comments on commit 7973bfd

Please sign in to comment.