linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-next v2 00/10] Add RoCE GID cache usage in verbs/cma
@ 2015-10-15 15:38 Matan Barak
       [not found] ` <1444923534-10882-1-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 21+ messages in thread
From: Matan Barak @ 2015-10-15 15:38 UTC (permalink / raw)
  To: Doug Ledford
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Or Gerlitz, Jason Gunthorpe,
	Matan Barak, Eran Ben Elisha, Somnath Kotur

Hi Doug,

This purpose of this series is to add usage of the GID cache to
the CMA and IB stack. Instead of passing Ethernet L2 attributes
via QP attributes, we could just use the GID cache that's already
points to a ndev and thus to all required L2 attributes.

The first five patches query the GID table to find only GIDs which
are related to the bounded net-device of the specific used port. This
extra information is carried via ib_sa_path_rec (extending it to
include the namespace and ifindex). Querying the ndev and port
is achieved by adding a gid_attr argument to ib_query_gid, add a
ndev argument to ib_find_cached_gid and add a new
ib_find_cached_gid_by_port. This usage of the GID table replaces
the usage of QP attributes.

The sixth patch adds an ib_cache_gid_find_by_filter function.
This allows the user to query the cache by a specific filter.
ib_cache_gid_find_by_filter is used by the seventh patch. Instead
of storing the smac and vid on the AH, we could just resolve
them from the net-device which the sgid index is assigned to.
This change means that instead of resolving all L2 attributes,
the server, we get the dgid and vlan and searches the GID cache
in order to find a matching GID index.

The last three patches removed unused fields and attributes.

Matan

Changes from V1:
 - Rebased patches against Doug's latest k.o/for-4.4 tree.

Matan Barak (10):
  IB/core: Add netdev and gid attributes paramteres to cache
  IB/core: Expose and rename ib_find_cached_gid_by_port cache API
  IB/core: Add netdev to path record
  IB/cm: cm_init_av_by_path should find a GID by its netdevice
  IB/cma: cma_validate_port should verify the port and netdevice
  IB/cache: Add ib_find_gid_by_filter cache API
  IB/core: Use GID table in AH creation and dmac resolution
  IB/cm: Remove the usage of smac and vid of qp_attr and cm_av
  IB/core: Remove smac and vlan id from qp_attr and ah_attr
  IB/core: Remove smac and vlan id from path record

 drivers/infiniband/core/addr.c                 |   3 +-
 drivers/infiniband/core/cache.c                | 112 +++++++++++++++--
 drivers/infiniband/core/cm.c                   |  40 ++-----
 drivers/infiniband/core/cma.c                  |  42 ++++---
 drivers/infiniband/core/core_priv.h            |   9 +-
 drivers/infiniband/core/device.c               |  19 ++-
 drivers/infiniband/core/mad.c                  |   2 +-
 drivers/infiniband/core/multicast.c            |   3 +-
 drivers/infiniband/core/sa_query.c             |  19 +--
 drivers/infiniband/core/sysfs.c                |   2 +-
 drivers/infiniband/core/ucma.c                 |   1 -
 drivers/infiniband/core/uverbs_cmd.c           |   3 +-
 drivers/infiniband/core/uverbs_marshall.c      |   4 +-
 drivers/infiniband/core/verbs.c                | 159 +++++++++++++++----------
 drivers/infiniband/hw/mlx4/ah.c                |  17 ++-
 drivers/infiniband/hw/mlx4/mad.c               |  12 +-
 drivers/infiniband/hw/mlx4/main.c              |   4 +-
 drivers/infiniband/hw/mlx4/mcg.c               |   2 +-
 drivers/infiniband/hw/mlx4/mlx4_ib.h           |   2 +-
 drivers/infiniband/hw/mlx4/qp.c                |  52 ++++++--
 drivers/infiniband/hw/mthca/mthca_av.c         |   2 +-
 drivers/infiniband/hw/ocrdma/ocrdma_ah.c       |  22 ++--
 drivers/infiniband/hw/ocrdma/ocrdma_hw.c       |  30 +++--
 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c    |   2 +-
 drivers/infiniband/ulp/ipoib/ipoib_main.c      |   2 +-
 drivers/infiniband/ulp/ipoib/ipoib_multicast.c |   2 +-
 drivers/infiniband/ulp/srp/ib_srp.c            |   2 +-
 drivers/infiniband/ulp/srpt/ib_srpt.c          |   3 +-
 include/rdma/ib_addr.h                         |   2 +-
 include/rdma/ib_cache.h                        |  40 ++++++-
 include/rdma/ib_sa.h                           |  12 +-
 include/rdma/ib_verbs.h                        |  18 ++-
 32 files changed, 422 insertions(+), 222 deletions(-)

-- 
2.1.0

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-10-22  3:52 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 15:38 [PATCH for-next v2 00/10] Add RoCE GID cache usage in verbs/cma Matan Barak
     [not found] ` <1444923534-10882-1-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-15 15:38   ` [PATCH for-next v2 01/10] IB/core: Add netdev and gid attributes paramteres to cache Matan Barak
     [not found]     ` <1444923534-10882-2-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-18 15:57       ` Devesh Sharma
2015-10-15 15:38   ` [PATCH for-next v2 02/10] IB/core: Expose and rename ib_find_cached_gid_by_port cache API Matan Barak
     [not found]     ` <1444923534-10882-3-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-18 15:51       ` Devesh Sharma
2015-10-15 15:38   ` [PATCH for-next v2 03/10] IB/core: Add netdev to path record Matan Barak
     [not found]     ` <1444923534-10882-4-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-18 16:03       ` Devesh Sharma
2015-10-15 15:38   ` [PATCH for-next v2 04/10] IB/cm: cm_init_av_by_path should find a GID by its netdevice Matan Barak
     [not found]     ` <1444923534-10882-5-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-18 16:05       ` Devesh Sharma
2015-10-15 15:38   ` [PATCH for-next v2 05/10] IB/cma: cma_validate_port should verify the port and netdevice Matan Barak
     [not found]     ` <1444923534-10882-6-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-18 16:10       ` Devesh Sharma
2015-10-15 15:38   ` [PATCH for-next v2 06/10] IB/cache: Add ib_find_gid_by_filter cache API Matan Barak
     [not found]     ` <1444923534-10882-7-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-18 16:57       ` Devesh Sharma
2015-10-15 15:38   ` [PATCH for-next v2 07/10] IB/core: Use GID table in AH creation and dmac resolution Matan Barak
2015-10-15 15:38   ` [PATCH for-next v2 08/10] IB/cm: Remove the usage of smac and vid of qp_attr and cm_av Matan Barak
     [not found]     ` <1444923534-10882-9-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-18 17:22       ` Devesh Sharma
2015-10-15 15:38   ` [PATCH for-next v2 09/10] IB/core: Remove smac and vlan id from qp_attr and ah_attr Matan Barak
     [not found]     ` <1444923534-10882-10-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-18 17:24       ` Devesh Sharma
2015-10-15 15:38   ` [PATCH for-next v2 10/10] IB/core: Remove smac and vlan id from path record Matan Barak
     [not found]     ` <1444923534-10882-11-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-18 17:26       ` Devesh Sharma
2015-10-22  3:52   ` [PATCH for-next v2 00/10] Add RoCE GID cache usage in verbs/cma Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).