Skip to content

Commit e618765

Browse files
namjaejeonsmfrench
authored andcommitted
ksmbd: detect RDMA capable netdevs include IPoIB
Current ksmbd_rdma_capable_netdev fails to mark certain RDMA-capable inerfaces such as IPoIB as RDMA capable after reverting GUID matching code due to layer violation. This patch check the ARPHRD_INFINIBAND type safely identifies an IPoIB interface without introducing a layer violation, ensuring RDMA functionality is correctly enabled for these interfaces. Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent d24822e commit e618765

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

fs/smb/server/transport_rdma.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,6 +2663,10 @@ bool ksmbd_rdma_capable_netdev(struct net_device *netdev)
26632663
if (ksmbd_find_rdma_capable_netdev(lower_dev))
26642664
return true;
26652665

2666+
/* check if netdev is IPoIB safely without layer violation */
2667+
if (netdev->type == ARPHRD_INFINIBAND)
2668+
return true;
2669+
26662670
return false;
26672671
}
26682672

0 commit comments

Comments
 (0)