Skip to content

Commit bf9ca81

Browse files
committed
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
Pull rdma updates from Jason Gunthorpe: "Small cycle, with some typical driver updates: - General code tidying in siw, hfi1, idrdma, usnic, hns rtrs and bnxt_re - Many small siw cleanups without an overeaching theme - Debugfs stats for hns - Fix a TX queue timeout in IPoIB and missed locking of the mcast list - Support more features of P7 devices in bnxt_re including a new work submission protocol - CQ interrupts for MANA - netlink stats for erdma - EFA multipath PCI support - Fix Incorrect MR invalidation in iser" * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma: (66 commits) RDMA/bnxt_re: Fix error code in bnxt_re_create_cq() RDMA/efa: Add EFA query MR support IB/iser: Prevent invalidating wrong MR RDMA/erdma: Add hardware statistics support RDMA/erdma: Introduce dma pool for hardware responses of CMDQ requests IB/iser: iscsi_iser.h: fix kernel-doc warning and spellos RDMA/mana_ib: Add CQ interrupt support for RAW QP RDMA/mana_ib: query device capabilities RDMA/mana_ib: register RDMA device with GDMA RDMA/bnxt_re: Fix the sparse warnings RDMA/bnxt_re: Fix the offset for GenP7 adapters for user applications RDMA/bnxt_re: Share a page to expose per CQ info with userspace RDMA/bnxt_re: Add UAPI to share a page with user space IB/ipoib: Fix mcast list locking RDMA/mlx5: Expose register c0 for RDMA device net/mlx5: E-Switch, expose eswitch manager vport net/mlx5: Manage ICM type of SW encap RDMA/mlx5: Support handling of SW encap ICM area net/mlx5: Introduce indirect-sw-encap ICM properties RDMA/bnxt_re: Adds MSN table capability for Gen P7 adapters ...
2 parents 141d9c6 + d24b923 commit bf9ca81

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1921
-638
lines changed

drivers/infiniband/hw/bnxt_re/bnxt_re.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#define __BNXT_RE_H__
4242
#include <rdma/uverbs_ioctl.h>
4343
#include "hw_counters.h"
44+
#include <linux/hashtable.h>
4445
#define ROCE_DRV_MODULE_NAME "bnxt_re"
4546

4647
#define BNXT_RE_DESC "Broadcom NetXtreme-C/E RoCE Driver"
@@ -135,6 +136,7 @@ struct bnxt_re_pacing {
135136
#define BNXT_RE_DB_FIFO_ROOM_SHIFT 15
136137
#define BNXT_RE_GRC_FIFO_REG_BASE 0x2000
137138

139+
#define MAX_CQ_HASH_BITS (16)
138140
struct bnxt_re_dev {
139141
struct ib_device ibdev;
140142
struct list_head list;
@@ -189,6 +191,7 @@ struct bnxt_re_dev {
189191
struct bnxt_re_pacing pacing;
190192
struct work_struct dbq_fifo_check_work;
191193
struct delayed_work dbq_pacing_work;
194+
DECLARE_HASHTABLE(cq_hash, MAX_CQ_HASH_BITS);
192195
};
193196

194197
#define to_bnxt_re_dev(ptr, member) \

drivers/infiniband/hw/bnxt_re/hw_counters.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ int bnxt_re_ib_get_hw_stats(struct ib_device *ibdev,
371371
}
372372

373373
done:
374-
return bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) ?
374+
return bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx) ?
375375
BNXT_RE_NUM_EXT_COUNTERS : BNXT_RE_NUM_STD_COUNTERS;
376376
}
377377

@@ -381,7 +381,7 @@ struct rdma_hw_stats *bnxt_re_ib_alloc_hw_port_stats(struct ib_device *ibdev,
381381
struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev);
382382
int num_counters = 0;
383383

384-
if (bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx))
384+
if (bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx))
385385
num_counters = BNXT_RE_NUM_EXT_COUNTERS;
386386
else
387387
num_counters = BNXT_RE_NUM_STD_COUNTERS;

0 commit comments

Comments
 (0)