diff options
author | 2024-11-07 16:48:19 -0800 | |
---|---|---|
committer | 2024-11-11 17:26:52 -0800 | |
commit | 0eb87b02a7058f1dc64bcd6fa619d8556186de3d (patch) | |
tree | ea2c34d91218817accdc338cca4fdf2e088abf03 /drivers/net/netkit.c | |
parent | rtnetlink: Add peer_type in struct rtnl_link_ops. (diff) | |
download | wireguard-linux-0eb87b02a7058f1dc64bcd6fa619d8556186de3d.tar.xz wireguard-linux-0eb87b02a7058f1dc64bcd6fa619d8556186de3d.zip |
veth: Set VETH_INFO_PEER to veth_link_ops.peer_type.
For per-netns RTNL, we need to prefetch the peer device's netns.
Let's set rtnl_link_ops.peer_type and accordingly remove duplicated
validation in ->newlink().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20241108004823.29419-7-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions