Commit 954a2b4
rtnetlink: Try the outer netns attribute in rtnl_get_peer_net().
Xiao Liang reported that the cited commit changed netns handling
in newlink() of netkit, veth, and vxcan.
Before the patch, if we don't find a netns attribute in the peer
device attributes, we tried to find another netns attribute in
the outer netlink attributes by passing it to rtnl_link_get_net().
Let's restore the original behaviour.
Fixes: 4832756 ("rtnetlink: fix double call of rtnl_link_get_net_ifla()")
Reported-by: Xiao Liang <shaw.leon@gmail.com>
Closes: https://lore.kernel.org/netdev/CABAhCORBVVU8P6AHcEkENMj+gD2d3ce9t=A_o48E0yOQp8_wUQ@mail.gmail.com/#t
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Tested-by: Xiao Liang <shaw.leon@gmail.com>
Link: https://patch.msgid.link/20241216110432.51488-1-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent b9b8301 commit 954a2b4
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3819 | 3819 | | |
3820 | 3820 | | |
3821 | 3821 | | |
| 3822 | + | |
3822 | 3823 | | |
3823 | 3824 | | |
3824 | 3825 | | |
3825 | 3826 | | |
3826 | 3827 | | |
3827 | 3828 | | |
3828 | 3829 | | |
3829 | | - | |
| 3830 | + | |
3830 | 3831 | | |
3831 | 3832 | | |
3832 | 3833 | | |
| |||
3971 | 3972 | | |
3972 | 3973 | | |
3973 | 3974 | | |
3974 | | - | |
| 3975 | + | |
3975 | 3976 | | |
3976 | 3977 | | |
3977 | 3978 | | |
| |||
0 commit comments