]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: report vlan_id and sl in qp1 recv completion
authorDevesh Sharma <devesh.sharma@broadcom.com>
Wed, 8 Nov 2017 07:48:45 +0000 (02:48 -0500)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 21:28:44 +0000 (16:28 -0500)
commit8c5005735a59f116f79acdcda33ae357f2b94ff5
tree6525ad7526999bdca78c2090daf90e882a367e70
parent4dca28d05e712bbe5d3ba706b331cec6e806c575
RDMA/bnxt_re: report vlan_id and sl in qp1 recv completion

In a real RoCE v2 network it is possible to have two
Sections of network have same IP hence same gid. However
those may have different vlans. During connection resolution
it is important to report the actual vlan on which the
MAD packet was received instead of relying on other means
to resolve vlan-id. ib_find_gid_index should not be used
to resolve the vlan-id using sgid of the local system
where the packet was received.

Our device has the capability to report the actual VLAN-ID
in the GSI qp completions. Since we have the capability our
driver should move away from resolving the vlan-id with the
help of SGID at the destination port.

Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Reported-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/qplib_fp.c