]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtnetlink: remove check for IFLA_IF_NETNSID
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 1 Feb 2018 11:56:00 +0000 (12:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Feb 2018 15:09:50 +0000 (10:09 -0500)
RTM_NEWLINK supports the IFLA_IF_NETNSID property since
5bb8ed075428b71492734af66230aa0c07fcc515 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>
net/core/rtnetlink.c

index 204297dffd2aecc7d5616f839dc4f34c9359f7da..56af8e41abfcbfede9300d972a1b8852519a52a6 100644 (file)
@@ -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