mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 13:29:17 -04:00
rtnetlink: remove check for IFLA_IF_NETNSID
RTM_NEWLINK supports the IFLA_IF_NETNSID property since
5bb8ed0754 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>
This commit is contained in:
committed by
David S. Miller
parent
a83165f00f
commit
7973bfd875
@@ -2802,9 +2802,6 @@ static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh,
|
|||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
if (tb[IFLA_IF_NETNSID])
|
|
||||||
return -EOPNOTSUPP;
|
|
||||||
|
|
||||||
if (tb[IFLA_IFNAME])
|
if (tb[IFLA_IFNAME])
|
||||||
nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ);
|
nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user