HomeFreeBSD

MFC r330662:

Description

MFC r330662:
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

Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS331797: Use an accessor function to access ifr_data.
Branches
Unknown
Tags
Unknown