提交 72cd5717 编写于 作者: O Or Gerlitz 提交者: Doug Ledford

IB/mlx5: Support raw packet protocol

Mark support for the new raw packet protocol on Eth ports.
Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: NMatan Barak <matanb@mellanox.com>
Signed-off-by: NLeon Romanovsky <leon@kernel.org>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 aa773bd4
...@@ -2938,11 +2938,13 @@ static u32 get_core_cap_flags(struct ib_device *ibdev) ...@@ -2938,11 +2938,13 @@ static u32 get_core_cap_flags(struct ib_device *ibdev)
if (ll == IB_LINK_LAYER_INFINIBAND) if (ll == IB_LINK_LAYER_INFINIBAND)
return RDMA_CORE_PORT_IBA_IB; return RDMA_CORE_PORT_IBA_IB;
ret = RDMA_CORE_PORT_RAW_PACKET;
if (!(l3_type_cap & MLX5_ROCE_L3_TYPE_IPV4_CAP)) if (!(l3_type_cap & MLX5_ROCE_L3_TYPE_IPV4_CAP))
return 0; return ret;
if (!(l3_type_cap & MLX5_ROCE_L3_TYPE_IPV6_CAP)) if (!(l3_type_cap & MLX5_ROCE_L3_TYPE_IPV6_CAP))
return 0; return ret;
if (roce_version_cap & MLX5_ROCE_VERSION_1_CAP) if (roce_version_cap & MLX5_ROCE_VERSION_1_CAP)
ret |= RDMA_CORE_PORT_IBA_ROCE; ret |= RDMA_CORE_PORT_IBA_ROCE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册