OSDN Git Service

RDMA/hns: Update some fields of qp context
authorLijun Ou <oulijun@huawei.com>
Sun, 30 Sep 2018 09:00:35 +0000 (17:00 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Oct 2018 22:21:18 +0000 (16:21 -0600)
commit2362cceef3f4cbd382f338327097f98795f6b91e
treea0cf6cb2d26a74c4b167691ad4ce9898378d01cf
parentb28ca7cceff8b2cfadebd34a907742cd396c2c33
RDMA/hns: Update some fields of qp context

The hip08 hardware has two version. the version id are 0x20 and 0x21
according to the pci revision. It needs to adjust some fields for
extending new features. The specific updates include:

1. Add some fields for supporting new features by enabling some reserved
   fields in 0x20 version.
2. remove some fields which the user is not visiable in order to support
   the extend features.
3. Init some fields with zero.

These updates is compatible with 0x20 version.

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