Skip to content

Commit

Permalink
RDMA/hns: Remove unused variables and definitions
Browse files Browse the repository at this point in the history
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/[email protected]
Signed-off-by: Lang Cheng <[email protected]>
Signed-off-by: Weihang Li <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
  • Loading branch information
larrch authored and jgunthorpe committed Sep 29, 2020
1 parent d4f40a1 commit cf4c0fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions drivers/infiniband/hw/hns/hns_roce_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
/* Hardware specification only for v1 engine */
#define HNS_ROCE_MAX_INNER_MTPT_NUM 0x7
#define HNS_ROCE_MAX_MTPT_PBL_NUM 0x100000
#define HNS_ROCE_MAX_SGE_NUM 2

#define HNS_ROCE_EACH_FREE_CQ_WAIT_MSECS 20
#define HNS_ROCE_MAX_FREE_CQ_WAIT_CNT \
Expand Down Expand Up @@ -87,12 +86,7 @@
#define HNS_ROCE_V2_QPC_SZ 256
#define HNS_ROCE_V3_QPC_SZ 512

#define HNS_ROCE_SL_SHIFT 28
#define HNS_ROCE_TCLASS_SHIFT 20
#define HNS_ROCE_FLOW_LABEL_MASK 0xfffff

#define HNS_ROCE_MAX_PORTS 6
#define HNS_ROCE_MAX_GID_NUM 16
#define HNS_ROCE_GID_SIZE 16
#define HNS_ROCE_SGE_SIZE 16

Expand Down Expand Up @@ -120,8 +114,6 @@
#define PAGES_SHIFT_24 24
#define PAGES_SHIFT_32 32

#define HNS_ROCE_PCI_BAR_NUM 2

#define HNS_ROCE_IDX_QUE_ENTRY_SZ 4
#define SRQ_DB_REG 0x230

Expand Down
2 changes: 0 additions & 2 deletions drivers/infiniband/hw/hns/hns_roce_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
#include "hns_roce_hem.h"
#include <rdma/hns-abi.h>

#define SQP_NUM (2 * HNS_ROCE_MAX_PORTS)

static void flush_work_handle(struct work_struct *work)
{
struct hns_roce_work *flush_work = container_of(work,
Expand Down

0 comments on commit cf4c0fb

Please sign in to comment.