freebsd-nq/sys/dev/mlx5/mlx5_ib
Hans Petter Selasky 50e3ba10e8 Set correct SL in completion for RoCE in mlx5ib(4).
There is a difference when parsing a completion entry between Ethernet
and IB ports. When link layer is Ethernet the bits describe the type of
L3 header in the packet. In the case when link layer is Ethernet and VLAN
header is present the value of SL is equal to the 3 UP bits in the VLAN
header. If VLAN header is not present then the SL is undefined and consumer
of the completion should check if IB_WC_WITH_VLAN is set.

While that, this patch also fills the vlan_id field in the completion if
present.

linux commit 12f8fedef2ec94c783f929126b20440a01512c14

MFC after:	1 week
Sponsored by:	Mellanox Technologies
2018-03-08 16:27:31 +00:00
..
mlx5_ib_ah.c Optimize ibcore RoCE address handle creation from user-space. 2018-03-05 14:34:52 +00:00
mlx5_ib_cong.c Add support for explicit congestion notification, ECN, to mlx5ib(4). 2018-03-08 11:23:14 +00:00
mlx5_ib_cq.c Set correct SL in completion for RoCE in mlx5ib(4). 2018-03-08 16:27:31 +00:00
mlx5_ib_doorbell.c Update mlx5ib(4) to match Linux 4.9 and the new ibcore APIs. 2017-11-10 15:02:17 +00:00
mlx5_ib_gsi.c Update mlx5ib(4) to match Linux 4.9 and the new ibcore APIs. 2017-11-10 15:02:17 +00:00
mlx5_ib_mad.c Update mlx5ib(4) to match Linux 4.9 and the new ibcore APIs. 2017-11-10 15:02:17 +00:00
mlx5_ib_main.c Add support for explicit congestion notification, ECN, to mlx5ib(4). 2018-03-08 11:23:14 +00:00
mlx5_ib_mem.c Update mlx5ib(4) to match Linux 4.9 and the new ibcore APIs. 2017-11-10 15:02:17 +00:00
mlx5_ib_mr.c Use the autogenerated interface file for all commands in mlx5core. 2018-03-08 10:43:42 +00:00
mlx5_ib_qp.c Use the autogenerated interface file for all commands in mlx5core. 2018-03-08 10:43:42 +00:00
mlx5_ib_srq.c Use the autogenerated interface file for all commands in mlx5core. 2018-03-08 10:43:42 +00:00
mlx5_ib_virt.c Update mlx5ib(4) to match Linux 4.9 and the new ibcore APIs. 2017-11-10 15:02:17 +00:00
mlx5_ib.h Add support for explicit congestion notification, ECN, to mlx5ib(4). 2018-03-08 11:23:14 +00:00