* [PATCH net] rtnetlink: remove check for IFLA_IF_NETNSID
@ 2018-02-01 11:56 Christian Brauner
2018-02-01 15:10 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Christian Brauner @ 2018-02-01 11:56 UTC (permalink / raw)
To: netdev, linux-kernel; +Cc: jbenc, nicolas.dichtel, Christian Brauner
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>
---
net/core/rtnetlink.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 204297dffd2a..56af8e41abfc 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -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
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] rtnetlink: remove check for IFLA_IF_NETNSID
2018-02-01 11:56 [PATCH net] rtnetlink: remove check for IFLA_IF_NETNSID Christian Brauner
@ 2018-02-01 15:10 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-02-01 15:10 UTC (permalink / raw)
To: christian.brauner; +Cc: netdev, linux-kernel, jbenc, nicolas.dichtel
From: Christian Brauner <christian.brauner@ubuntu.com>
Date: Thu, 1 Feb 2018 12:56:00 +0100
> 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>
Applied, thanks Christian.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-01 15:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-01 11:56 [PATCH net] rtnetlink: remove check for IFLA_IF_NETNSID Christian Brauner
2018-02-01 15:10 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).