diff options
author | Lijun Ou <oulijun@huawei.com> | 2018-09-22 16:21:08 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-26 14:59:13 -0600 |
commit | 8320deb88c03a842f8c2db92e2b4a86d2bb6df76 (patch) | |
tree | 8552c9b97ae96735871074be0777f6e659be0773 /drivers/infiniband/hw/hns/hns_roce_device.h | |
parent | 944e64093a63bfab0a4f7ecebcd434630dff9107 (diff) |
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>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_device.h')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h index 7a2c0ca793f2..3b06bd03b852 100644 --- a/drivers/infiniband/hw/hns/hns_roce_device.h +++ b/drivers/infiniband/hw/hns/hns_roce_device.h @@ -450,6 +450,7 @@ struct hns_roce_av { u8 dgid[HNS_ROCE_GID_SIZE]; u8 mac[6]; __le16 vlan; + bool vlan_en; }; struct hns_roce_ah { |