Re: [PATCH v2 net] net/smc: fix smc clc failed issue when netdevice not in init_net

From: Wenjia Zhang
Date: Thu Oct 12 2023 - 15:26:54 EST




On 11.10.23 09:48, Albert Huang wrote:
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: e5c4744cfb59 ("net/smc: add SMC-Rv2 connection establishment")
Signed-off-by: Albert Huang <huangjie.albert@xxxxxxxxxxxxx>
---
net/smc/af_smc.c | 3 ++-
net/smc/smc_ib.c | 7 ++++---
net/smc/smc_ib.h | 2 +-
3 files changed, 7 insertions(+), 5 deletions(-)


looks good to me, thanks!

Reviewed-by: Wenjia Zhang <wenjia@xxxxxxxxxxxxx>