diff options
author | Lijun Ou <oulijun@huawei.com> | 2018-07-30 20:20:27 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-30 20:42:44 -0600 |
commit | c8e46f8d632c30e2b1cda0afa6697cfea16d57c0 (patch) | |
tree | aeaf986108110a82069ceb550d747c91b2b2d8d5 /drivers/infiniband/hw/hns/hns_roce_hw_v2.h | |
parent | RDMA/hns: Only assgin the fields of the av if IB_QP_AV bit is set (diff) | |
download | linux-dev-c8e46f8d632c30e2b1cda0afa6697cfea16d57c0.tar.xz linux-dev-c8e46f8d632c30e2b1cda0afa6697cfea16d57c0.zip |
RDMA/hns: Assign the value for vlan field of qp context
This patch mainly fills the correct value into the vlan id field of qp
context as well as update the vlan field name according to the latest
hardware user manual.
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h index f40d8c22d357..5c43ba11a0bd 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h @@ -451,8 +451,8 @@ struct hns_roce_v2_qp_context { #define V2_QPC_BYTE_24_TC_S 8 #define V2_QPC_BYTE_24_TC_M GENMASK(15, 8) -#define V2_QPC_BYTE_24_VLAN_IDX_S 16 -#define V2_QPC_BYTE_24_VLAN_IDX_M GENMASK(27, 16) +#define V2_QPC_BYTE_24_VLAN_ID_S 16 +#define V2_QPC_BYTE_24_VLAN_ID_M GENMASK(27, 16) #define V2_QPC_BYTE_24_MTU_S 28 #define V2_QPC_BYTE_24_MTU_M GENMASK(31, 28) |