Skip to content

Commit cf4c0fb

Browse files
larrchjgunthorpe
authored andcommitted
RDMA/hns: Remove unused variables and definitions
Some code was removed but the variables were still there, and some parameters have been changed to be queried from firmware. So the definitions of them are no longer needed. Fixes: 2a3d923 ("RDMA/hns: Replace magic numbers with #defines") Fixes: 82e620d ("RDMA/hns: Modify the data structure of hns_roce_av") Fixes: 8254746 ("IB/hns: Implement the add_gid/del_gid and optimize the GIDs management") Fixes: 21b97f5 ("RDMA/hns: Fixup qp release bug") Link: https://lore.kernel.org/r/1601371934-40003-1-git-send-email-liweihang@huawei.com Signed-off-by: Lang Cheng <chenglang@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent d4f40a1 commit cf4c0fb

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

drivers/infiniband/hw/hns/hns_roce_device.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
/* Hardware specification only for v1 engine */
5858
#define HNS_ROCE_MAX_INNER_MTPT_NUM 0x7
5959
#define HNS_ROCE_MAX_MTPT_PBL_NUM 0x100000
60-
#define HNS_ROCE_MAX_SGE_NUM 2
6160

6261
#define HNS_ROCE_EACH_FREE_CQ_WAIT_MSECS 20
6362
#define HNS_ROCE_MAX_FREE_CQ_WAIT_CNT \
@@ -87,12 +86,7 @@
8786
#define HNS_ROCE_V2_QPC_SZ 256
8887
#define HNS_ROCE_V3_QPC_SZ 512
8988

90-
#define HNS_ROCE_SL_SHIFT 28
91-
#define HNS_ROCE_TCLASS_SHIFT 20
92-
#define HNS_ROCE_FLOW_LABEL_MASK 0xfffff
93-
9489
#define HNS_ROCE_MAX_PORTS 6
95-
#define HNS_ROCE_MAX_GID_NUM 16
9690
#define HNS_ROCE_GID_SIZE 16
9791
#define HNS_ROCE_SGE_SIZE 16
9892

@@ -120,8 +114,6 @@
120114
#define PAGES_SHIFT_24 24
121115
#define PAGES_SHIFT_32 32
122116

123-
#define HNS_ROCE_PCI_BAR_NUM 2
124-
125117
#define HNS_ROCE_IDX_QUE_ENTRY_SZ 4
126118
#define SRQ_DB_REG 0x230
127119

drivers/infiniband/hw/hns/hns_roce_qp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
#include "hns_roce_hem.h"
4242
#include <rdma/hns-abi.h>
4343

44-
#define SQP_NUM (2 * HNS_ROCE_MAX_PORTS)
45-
4644
static void flush_work_handle(struct work_struct *work)
4745
{
4846
struct hns_roce_work *flush_work = container_of(work,

0 commit comments

Comments
 (0)