projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a83165f
)
rtnetlink: remove check for IFLA_IF_NETNSID
author
Christian Brauner
<christian.brauner@ubuntu.com>
Thu, 1 Feb 2018 11:56:00 +0000
(12:56 +0100)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/core/rtnetlink.c
b/net/core/rtnetlink.c
index 204297dffd2aecc7d5616f839dc4f34c9359f7da..56af8e41abfcbfede9300d972a1b8852519a52a6 100644
(file)
--- a/
net/core/rtnetlink.c
+++ b/
net/core/rtnetlink.c
@@
-2802,9
+2802,6
@@
replay:
if (err < 0)
return err;
- if (tb[IFLA_IF_NETNSID])
- return -EOPNOTSUPP;
-
if (tb[IFLA_IFNAME])
nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ);
else