RDMA/bnxt_re: Add vlan tag for untagged RoCE traffic when PFC is configured
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Thu, 29 Jun 2017 19:28:10 +0000 (12:28 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 12:45:12 +0000 (08:45 -0400)
commit5fac5b1b297fe1702f4c65d3b16aefb7d52967ab
treef3b932f3ec186024c276a780d9ef091ce631526e
parente1267b01240ab031a9c9dd84c1ffeb23670b590f
RDMA/bnxt_re: Add vlan tag for untagged RoCE traffic when PFC is configured

Current implementation does not program vlan header insertion
in RoCE packet if no vlan is configured. Firmware does not add
prority when there is no vlan tag in the packet. Modify the code
to insert vlan header when PFC is enabled on the interface.

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/main.c
drivers/infiniband/hw/bnxt_re/qplib_res.c
drivers/infiniband/hw/bnxt_re/qplib_res.h
drivers/infiniband/hw/bnxt_re/qplib_sp.c
drivers/infiniband/hw/bnxt_re/qplib_sp.h
drivers/infiniband/hw/bnxt_re/roce_hsi.h