]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3bc978bb0884e3a1ae6daf72d211310500e3c7f1
treed6a78221b274f232314683bcc365284d16e77344
parentb343221f8808ff8f4fb90c35ea5f9b53bdf11a4d
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: b1772d9ff7cf ("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