diff options
author | Xiao Liang <shaw.leon@gmail.com> | 2025-02-19 20:50:36 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-02-21 15:28:03 -0800 |
commit | 9c0fc091dc01894eaa686bc051feb4367b0d033a (patch) | |
tree | a9dddbb811e2a72b94baa0cb7947c45b8e574f57 /net/core/rtnetlink.c | |
parent | 5314e3d68455c56161c02133e08a44c3a9e8cf4a (diff) |
rtnetlink: Remove "net" from newlink params
Now that devices have been converted to use the specific netns instead
of ambiguous "net", let's remove it from newlink parameters.
Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250219125039.18024-11-shaw.leon@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r-- | net/core/rtnetlink.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 9ebbde0d131c..e980481bdd28 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3798,12 +3798,6 @@ static int rtnl_newlink_create(struct sk_buff *skb, struct ifinfomsg *ifm, dev->ifindex = ifm->ifi_index; - params.net = params.src_net; - if (link_net) - params.net = link_net; - if (peer_net) - params.net = peer_net; - if (ops->newlink) err = ops->newlink(dev, ¶ms, extack); else |