Skip to content
Commit a7f5558e authored by Albert Huang's avatar Albert Huang Committed by Greg Kroah-Hartman
Browse files

net/smc: fix smc clc failed issue when netdevice not in init_net

[ Upstream commit c68681ae ]

If the netdevice is within a container and communicates externally
through network technologies such as VxLAN, we won't be able to find
routing information in the init_net namespace. To address this issue,
we need to add a struct net parameter to the smc_ib_find_route function.
This allow us to locate the routing information within the corresponding
net namespace, ensuring the correct completion of the SMC CLC interaction.

Fixes: e5c4744c

 ("net/smc: add SMC-Rv2 connection establishment")
Signed-off-by: default avatarAlbert Huang <huangjie.albert@bytedance.com>
Reviewed-by: default avatarDust Li <dust.li@linux.alibaba.com>
Reviewed-by: default avatarWenjia Zhang <wenjia@linux.ibm.com>
Link: https://lore.kernel.org/r/20231011074851.95280-1-huangjie.albert@bytedance.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2efcdbef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment