Commit 4f0ce3d
Mete Durlu
net/smc: Fix lookup of netdev by using ib_device_get_netdev()
JIRA: https://issues.redhat.com/browse/RHEL-102713
commit de88df0
Author: Wenjia Zhang <wenjia@linux.ibm.com>
Date: Wed Nov 6 09:26:12 2024 +0100
net/smc: Fix lookup of netdev by using ib_device_get_netdev()
The SMC-R variant of the SMC protocol used direct call to function
ib_device_ops.get_netdev() to lookup netdev. As we used mlx5 device
driver to run SMC-R, it failed to find a device, because in mlx5_ib the
internal net device management for retrieving net devices was replaced
by a common interface ib_device_get_netdev() in commit 8d159eb
("RDMA/mlx5: Use IB set_netdev and get_netdev functions").
Since such direct accesses to the internal net device management is not
recommended at all, update the SMC-R code to use proper API
ib_device_get_netdev().
Fixes: 5490357 ("net/smc: allow pnetid-less configuration")
Reported-by: Aswin K <aswin@linux.ibm.com>
Reviewed-by: Gerd Bayer <gbayer@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Dust Li <dust.li@linux.alibaba.com>
Reviewed-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Reviewed-by: D. Wythe <alibuda@linux.alibaba.com>
Signed-off-by: Wenjia Zhang <wenjia@linux.ibm.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://patch.msgid.link/20241106082612.57803-1-wenjia@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Hidayath Khan <hidayath@linux.ibm.com>
Signed-off-by: Mete Durlu <mdurlu@redhat.com>1 parent 2c415ad commit 4f0ce3d
2 files changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
903 | | - | |
904 | | - | |
| 902 | + | |
905 | 903 | | |
906 | 904 | | |
907 | 905 | | |
| |||
921 | 919 | | |
922 | 920 | | |
923 | 921 | | |
924 | | - | |
925 | | - | |
926 | | - | |
| 922 | + | |
927 | 923 | | |
928 | 924 | | |
929 | 925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
| 1060 | + | |
1063 | 1061 | | |
1064 | 1062 | | |
1065 | 1063 | | |
| |||
0 commit comments