mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
IB/mlx5: Support raw packet protocol
Mark support for the new raw packet protocol on Eth ports. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Reviewed-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
aa773bd495
commit
72cd57178f
@ -2938,11 +2938,13 @@ static u32 get_core_cap_flags(struct ib_device *ibdev)
|
||||
if (ll == IB_LINK_LAYER_INFINIBAND)
|
||||
return RDMA_CORE_PORT_IBA_IB;
|
||||
|
||||
ret = RDMA_CORE_PORT_RAW_PACKET;
|
||||
|
||||
if (!(l3_type_cap & MLX5_ROCE_L3_TYPE_IPV4_CAP))
|
||||
return 0;
|
||||
return ret;
|
||||
|
||||
if (!(l3_type_cap & MLX5_ROCE_L3_TYPE_IPV6_CAP))
|
||||
return 0;
|
||||
return ret;
|
||||
|
||||
if (roce_version_cap & MLX5_ROCE_VERSION_1_CAP)
|
||||
ret |= RDMA_CORE_PORT_IBA_ROCE;
|
||||
|
Loading…
Reference in New Issue
Block a user