History

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.

Namjae Jeon committed 1 year ago

Commit e6187651 parent d24822e1 file · +4 −0Browse files

Unified · Split

fs/smb/server/transport_rdma.c+4−0
@@ -2663,6 +2663,10 @@ bool ksmbd_rdma_capable_netdev(struct net_device *netdev) · 2662 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t