RDMA/qedr: Parse VLAN ID correctly and ignore the value of zero
authorAmrani, Ram <Ram.Amrani@cavium.com>
Tue, 3 Oct 2017 11:47:26 +0000 (14:47 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 4 Oct 2017 19:18:18 +0000 (15:18 -0400)
commitefe63c220e57ce74e240670399912e609ac125d9
treed6a78221b274f232314683bcc365284d16e77344
parente19cd282ebedb801e572efae5df2f88d573932ce
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>
drivers/infiniband/hw/qedr/qedr.h
drivers/infiniband/hw/qedr/qedr_cm.c