RDMA/ocrdma: Fix vlan-id assignment in qp parameters
authorDevesh Sharma <devesh.sharma@avagotech.com>
Thu, 24 Dec 2015 18:14:05 +0000 (13:14 -0500)
committerDoug Ledford <dledford@redhat.com>
Mon, 28 Dec 2015 16:45:54 +0000 (11:45 -0500)
commitc6002d5602ab36c19ef4fe0e20ecfa28aaabf028
tree175a9fecd8dd72a1326e4f93459a233769f0aef9
parentdf4176677fdf7ac0c5748083eb7a5b269fb1e156
RDMA/ocrdma: Fix vlan-id assignment in qp parameters

vlan-id is wrongly getting as 0 when PFC is enabled.
Set vlan-id configured by user in QP parameters.
In case vlan interface is not used, flash a warning to
user to configure vlan and assign vlan-id as 0 in qp params.

Fixes: dbf727de7440 ('IB/core: Use GID table in AH creation and dmac resolution')
Cc: Matan Barak <matanb@mellanox.com>
Signed-off-by: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ocrdma/ocrdma_hw.c