IB: Report using RoCE IP based gids in port caps
For userspace RoCE UD QPs we need to know the GID format that the kernel uses, e.g when working over older kernels. For that end, add a new port capability IB_PORT_IP_BASED_GIDS and report it when query port is issued. Signed-off-by: Moni Shoua <monis@mellanox.co.il> Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
Родитель
38dbfb59d1
Коммит
b4a26a2728
|
@ -347,7 +347,7 @@ static int eth_link_query_port(struct ib_device *ibdev, u8 port,
|
|||
props->active_width = (((u8 *)mailbox->buf)[5] == 0x40) ?
|
||||
IB_WIDTH_4X : IB_WIDTH_1X;
|
||||
props->active_speed = IB_SPEED_QDR;
|
||||
props->port_cap_flags = IB_PORT_CM_SUP;
|
||||
props->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_IP_BASED_GIDS;
|
||||
props->gid_tbl_len = mdev->dev->caps.gid_table_len[port];
|
||||
props->max_msg_sz = mdev->dev->caps.max_msg_sz;
|
||||
props->pkey_tbl_len = 1;
|
||||
|
|
|
@ -176,7 +176,7 @@ int ocrdma_query_port(struct ib_device *ibdev,
|
|||
props->port_cap_flags =
|
||||
IB_PORT_CM_SUP |
|
||||
IB_PORT_REINIT_SUP |
|
||||
IB_PORT_DEVICE_MGMT_SUP | IB_PORT_VENDOR_CLASS_SUP;
|
||||
IB_PORT_DEVICE_MGMT_SUP | IB_PORT_VENDOR_CLASS_SUP | IB_PORT_IP_BASED_GIDS;
|
||||
props->gid_tbl_len = OCRDMA_MAX_SGID;
|
||||
props->pkey_tbl_len = 1;
|
||||
props->bad_pkey_cntr = 0;
|
||||
|
|
|
@ -226,7 +226,8 @@ enum ib_port_cap_flags {
|
|||
IB_PORT_CAP_MASK_NOTICE_SUP = 1 << 22,
|
||||
IB_PORT_BOOT_MGMT_SUP = 1 << 23,
|
||||
IB_PORT_LINK_LATENCY_SUP = 1 << 24,
|
||||
IB_PORT_CLIENT_REG_SUP = 1 << 25
|
||||
IB_PORT_CLIENT_REG_SUP = 1 << 25,
|
||||
IB_PORT_IP_BASED_GIDS = 1 << 26
|
||||
};
|
||||
|
||||
enum ib_port_width {
|
||||
|
|
Загрузка…
Ссылка в новой задаче