diff options
| author | Amrani, Ram <[email protected]> | 2017-10-03 11:47:27 +0000 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2017-10-04 19:18:18 +0000 |
| commit | 1736b4c99d1c53abec042d41b702aeabeb65d86a (patch) | |
| tree | b382ca22526a0353281a58d47ff19cf4525140bc | |
| parent | RDMA/qedr: Parse VLAN ID correctly and ignore the value of zero (diff) | |
| download | kernel-1736b4c99d1c53abec042d41b702aeabeb65d86a.tar.gz kernel-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 <[email protected]>
Signed-off-by: Michal Kalderon <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
| -rw-r--r-- | drivers/infiniband/hw/qedr/qedr_cm.c | 2 |
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); |
