]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set correct SL in completion for RoCE in mlx5ib(4).
authorHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 8 Mar 2018 16:27:31 +0000 (16:27 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 8 Mar 2018 16:27:31 +0000 (16:27 +0000)
commit50e3ba10e8f42c80612440b3e5466158aa5a2370
tree7629315ec1acfe0efd2dacc71a3d47750ecb9601
parent0285276c92aa10d75fa981a356f4dc6f9164f923
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
sys/dev/mlx5/mlx5_ib/mlx5_ib_cq.c