aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
diff options
context:
space:
mode:
authorLijun Ou <oulijun@huawei.com>2018-09-22 16:21:08 +0800
committerJason Gunthorpe <jgg@mellanox.com>2018-09-26 14:59:13 -0600
commit8320deb88c03a842f8c2db92e2b4a86d2bb6df76 (patch)
tree8552c9b97ae96735871074be0777f6e659be0773 /drivers/infiniband/hw/hns/hns_roce_hw_v2.h
parentRDMA/hns: Add CM of vlan device support (diff)
downloadlinux-dev-8320deb88c03a842f8c2db92e2b4a86d2bb6df76.tar.xz
linux-dev-8320deb88c03a842f8c2db92e2b4a86d2bb6df76.zip
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 '')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
index d04be1cef453..7ee6ed276fa6 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
@@ -993,6 +993,8 @@ struct hns_roce_v2_ud_send_wqe {
#define V2_UD_SEND_WQE_BYTE_40_PORTN_S 24
#define V2_UD_SEND_WQE_BYTE_40_PORTN_M GENMASK(26, 24)
+#define V2_UD_SEND_WQE_BYTE_40_UD_VLAN_EN_S 30
+
#define V2_UD_SEND_WQE_BYTE_40_LBI_S 31
#define V2_UD_SEND_WQE_DMAC_0_S 0