Skip to content

Commit 919dce2

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: "The majority of the patches are cleanups, refactorings and clarity improvements. This cycle saw some more activity from Syzkaller, I think we are now clean on all but one of those bugs, including the long standing and obnoxious rdma_cm locking design defect. Continue to see many drivers getting cleanups, with a few new user visible features. Summary: - Various driver updates for siw, bnxt_re, rxe, efa, mlx5, hfi1 - Lots of cleanup patches for hns - Convert more places to use refcount - Aggressively lock the RDMA CM code that syzkaller says isn't working - Work to clarify ib_cm - Use the new ib_device lifecycle model in bnxt_re - Fix mlx5's MR cache which seems to be failing more often with the new ODP code - mlx5 'dynamic uar' and 'tx steering' user interfaces" * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma: (144 commits) RDMA/bnxt_re: make bnxt_re_ib_init static IB/qib: Delete struct qib_ivdev.qp_rnd RDMA/hns: Fix uninitialized variable bug RDMA/hns: Modify the mask of QP number for CQE of hip08 RDMA/hns: Reduce the maximum number of extend SGE per WQE RDMA/hns: Reduce PFC frames in congestion scenarios RDMA/mlx5: Add support for RDMA TX flow table net/mlx5: Add support for RDMA TX steering IB/hfi1: Call kobject_put() when kobject_init_and_add() fails IB/hfi1: Fix memory leaks in sysfs registration and unregistration IB/mlx5: Move to fully dynamic UAR mode once user space supports it IB/mlx5: Limit the scope of struct mlx5_bfreg_info to mlx5_ib IB/mlx5: Extend QP creation to get uar page index from user space IB/mlx5: Extend CQ creation to get uar page index from user space IB/mlx5: Expose UAR object and its alloc/destroy commands IB/hfi1: Get rid of a warning RDMA/hns: Remove redundant judgment of qp_type RDMA/hns: Remove redundant assignment of wc->smac when polling cq RDMA/hns: Remove redundant qpc setup operations RDMA/hns: Remove meaningless prints ...
2 parents 50a5de8 + b4d8ddf commit 919dce2

File tree

120 files changed

+5401
-4495
lines changed

Some content is hidden

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

120 files changed

+5401
-4495
lines changed

drivers/infiniband/core/cache.c

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
struct ib_pkey_cache {
4848
int table_len;
49-
u16 table[0];
49+
u16 table[];
5050
};
5151

5252
struct ib_update_work {
@@ -972,6 +972,23 @@ int rdma_query_gid(struct ib_device *device, u8 port_num,
972972
}
973973
EXPORT_SYMBOL(rdma_query_gid);
974974

975+
/**
976+
* rdma_read_gid_hw_context - Read the HW GID context from GID attribute
977+
* @attr: Potinter to the GID attribute
978+
*
979+
* rdma_read_gid_hw_context() reads the drivers GID HW context corresponding
980+
* to the SGID attr. Callers are required to already be holding the reference
981+
* to an existing GID entry.
982+
*
983+
* Returns the HW GID context
984+
*
985+
*/
986+
void *rdma_read_gid_hw_context(const struct ib_gid_attr *attr)
987+
{
988+
return container_of(attr, struct ib_gid_table_entry, attr)->context;
989+
}
990+
EXPORT_SYMBOL(rdma_read_gid_hw_context);
991+
975992
/**
976993
* rdma_find_gid - Returns SGID attributes if the matching GID is found.
977994
* @device: The device to query.

0 commit comments

Comments
 (0)