[PATCH rdma-next 0/8] Update the CM to use sgid_attrs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Leon Romanovsky <leonro@xxxxxxxxxxxx>

>From Parav:

Now that all the drivers are using the sgid_attr, make it persist throughout
the CM code as well instead of storing loose ifindex or sgid_index values.

This series is a prerequisite for enabling namespaces for RoCE. It
ensures that while GID entry being used, it cannot get deleted. When the
last user of the GID entry releases the reference, the GID entry is
released in the software cache and in the HCA.

Series also removes dependency of net+ifindex in the path record entry
for RoCE. Both of those fields of the netdev can change and storing net
namespace without holding reference will lead to use-after-free crash.
Therefore it is removed. Netdevice information for RoCE will be provided
via referenced gid attribute in ib_cm_req entry in future.

Thanks

Jason Gunthorpe (1):
  RDMA/core: Remove unused ib cache functions

Parav Pandit (7):
  IB: Make ib_init_ah_attr_from_wc set sgid_attr
  IB: Make ib_init_ah_from_mcmember set sgid_attr
  IB: Make init_ah_attr_grh_fields set sgid_attr
  IB/cm: Keep track of the sgid_attr that created the cm id
  IB/cm: Pass the sgid_attr through various events
  IB/cm: Replace members of sa_path_rec with 'struct sgid_attr *'
  IB/cm: Use sgid_attr from the AV

 drivers/infiniband/core/cache.c           |  68 ------------------
 drivers/infiniband/core/cm.c              | 115 +++++++++++++++++-------------
 drivers/infiniband/core/cma.c             |  79 ++++++++++++--------
 drivers/infiniband/core/multicast.c       |  40 +++++++----
 drivers/infiniband/core/sa_query.c        |  80 ++++++++++++---------
 drivers/infiniband/core/user_mad.c        |   1 +
 drivers/infiniband/core/uverbs_marshall.c |   2 -
 drivers/infiniband/core/verbs.c           | 110 ++++++++++++++--------------
 drivers/infiniband/ulp/ipoib/ipoib_main.c |   4 +-
 include/rdma/ib_addr.h                    |   2 +
 include/rdma/ib_cache.h                   |  39 ----------
 include/rdma/ib_cm.h                      |   3 +
 include/rdma/ib_sa.h                      |  49 +------------
 include/rdma/ib_verbs.h                   |   7 ++
 14 files changed, 264 insertions(+), 335 deletions(-)

--
2.14.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux