RDMA/hns: Add enable judgement for UD vlan
authorLijun Ou <oulijun@huawei.com>
Sat, 22 Sep 2018 08:21:08 +0000 (16:21 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 26 Sep 2018 20:59:13 +0000 (14:59 -0600)
commit8320deb88c03a842f8c2db92e2b4a86d2bb6df76
tree8552c9b97ae96735871074be0777f6e659be0773
parent944e64093a63bfab0a4f7ecebcd434630dff9107
RDMA/hns: Add enable judgement for UD vlan

According to the hardware modification, the vlan of the UD packet is based
on the ud_vlan_en field of the UD wqe to determine whether to add a vlan
header to the UD packet. The ud_vlan_en field is filled by the driver
according to the net device.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_ah.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h