Skip to content

Commit

Permalink
ksmbd: update the comments in ksmbd_rdma_capable_netdev()
Browse files Browse the repository at this point in the history
Signed-off-by: Kangjing Huang <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
chaserhkj authored and namjaejeon committed Oct 23, 2023
1 parent 8dffdce commit 2eca8d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions transport_rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -2261,7 +2261,6 @@ bool ksmbd_rdma_capable_netdev(struct net_device *netdev)
for (i = 0; i < smb_dev->ib_dev->phys_port_cnt; i++) {
struct net_device *ndev;

/* RoCE and iWRAP ib_dev is backed by a netdev */
if (smb_dev->ib_dev->ops.get_netdev) {
ndev = smb_dev->ib_dev->ops.get_netdev(
smb_dev->ib_dev, i + 1);
Expand All @@ -2274,7 +2273,9 @@ bool ksmbd_rdma_capable_netdev(struct net_device *netdev)
goto out;
}
dev_put(ndev);
/* match physical ib_dev with IPoIB netdev by GUID */
/* if ib_dev does not implement ops.get_netdev
* check for matching infiniband GUID in hw_addr
*/
} else if (netdev->type == ARPHRD_INFINIBAND) {
struct netdev_hw_addr *ha;
union ib_gid gid;
Expand Down

0 comments on commit 2eca8d9

Please sign in to comment.