summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2017-04-20 12:26:54 +0200
committerDoug Ledford <dledford@redhat.com>2017-04-21 18:29:31 +0200
commit12f8fedef2ec94c783f929126b20440a01512c14 (patch)
tree7bab4cd044dc3a355242f694a579e2e7a0493bab /include/rdma
parentIB/cma: Send MRA for reply messages (diff)
downloadlinux-12f8fedef2ec94c783f929126b20440a01512c14.tar.xz
linux-12f8fedef2ec94c783f929126b20440a01512c14.zip
IB/mlx5: Set correct SL in completion for RoCE
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. Signed-off-by: Moni Shoua <monis@mellanox.com> Reviewed-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions