diff options
author | Amrani, Ram <Ram.Amrani@cavium.com> | 2017-10-03 13:47:26 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-10-04 21:18:18 +0200 |
commit | efe63c220e57ce74e240670399912e609ac125d9 (patch) | |
tree | d6a78221b274f232314683bcc365284d16e77344 /drivers/infiniband/hw/qedr/qedr.h | |
parent | IB/mlx5: Fix label order in error path handling (diff) | |
download | linux-efe63c220e57ce74e240670399912e609ac125d9.tar.xz linux-efe63c220e57ce74e240670399912e609ac125d9.zip |
RDMA/qedr: Parse VLAN ID correctly and ignore the value of zero
Rename vlan_id field name to vlan as it contains more than the vlan_id.
Mask out non vlan id fields from vlan tag of the QED LL2 RX GSI
vlan output. As it is expected to be vlan id only.
Ignore vlan_id with value of zero.
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/hw/qedr/qedr.h')
-rw-r--r-- | drivers/infiniband/hw/qedr/qedr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qedr/qedr.h b/drivers/infiniband/hw/qedr/qedr.h index b2bb42e2805d..254083b524bd 100644 --- a/drivers/infiniband/hw/qedr/qedr.h +++ b/drivers/infiniband/hw/qedr/qedr.h @@ -387,7 +387,7 @@ struct qedr_qp { u8 wqe_size; u8 smac[ETH_ALEN]; - u16 vlan_id; + u16 vlan; int rc; } *rqe_wr_id; |