Skip to content

Commit

Permalink
RDMA/qedr: Parse vlan priority as sl
Browse files Browse the repository at this point in the history
Parse the vlan priority from the vlan tag and configure it to the
WC's sl field.

Fixes: abd4967 ("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>
  • Loading branch information
Amrani, Ram authored and dledford committed Oct 4, 2017
1 parent efe63c2 commit 1736b4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/infiniband/hw/qedr/qedr_cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1736b4c

Please sign in to comment.