summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorAmrani, Ram <Ram.Amrani@cavium.com>2017-10-03 13:47:27 +0200
committerDoug Ledford <dledford@redhat.com>2017-10-04 21:18:18 +0200
commit1736b4c99d1c53abec042d41b702aeabeb65d86a (patch)
treeb382ca22526a0353281a58d47ff19cf4525140bc /drivers/infiniband
parentRDMA/qedr: Parse VLAN ID correctly and ignore the value of zero (diff)
downloadlinux-1736b4c99d1c53abec042d41b702aeabeb65d86a.tar.xz
linux-1736b4c99d1c53abec042d41b702aeabeb65d86a.zip
RDMA/qedr: Parse vlan priority as sl
Parse the vlan priority from the vlan tag and configure it to the WC's sl field. Fixes: abd49676c707 ("qed: Add RoCE ll2 & GSI support") Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/qedr/qedr_cm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qedr/qedr_cm.c b/drivers/infiniband/hw/qedr/qedr_cm.c
index 5ebbe4952386..ad8965397cf7 100644
--- a/drivers/infiniband/hw/qedr/qedr_cm.c
+++ b/drivers/infiniband/hw/qedr/qedr_cm.c
@@ -719,6 +719,8 @@ int qedr_gsi_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
if (vlan_id) {
wc[i].wc_flags |= IB_WC_WITH_VLAN;
wc[i].vlan_id = vlan_id;
+ wc[i].sl = (qp->rqe_wr_id[qp->rq.cons].vlan &
+ VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT;
}
qedr_inc_sw_cons(&qp->rq);