projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa773bd
)
IB/mlx5: Support raw packet protocol
author
Or Gerlitz
<
[email protected]
>
Tue, 24 Jan 2017 11:02:36 +0000
(13:02 +0200)
committer
Doug Ledford
<
[email protected]
>
Tue, 14 Feb 2017 16:41:20 +0000
(11:41 -0500)
Mark support for the new raw packet protocol on Eth ports.
Signed-off-by: Or Gerlitz <
[email protected]
>
Reviewed-by: Matan Barak <
[email protected]
>
Signed-off-by: Leon Romanovsky <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/mlx5/main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx5/main.c
b/drivers/infiniband/hw/mlx5/main.c
index eb8719ca500efe4fe6dc9c46afa28ab3bf544da8..c79a5c9f1f9af821d0477fa388737163fd064ba6 100644
(file)
--- a/
drivers/infiniband/hw/mlx5/main.c
+++ b/
drivers/infiniband/hw/mlx5/main.c
@@
-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;