netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] IB/Verbs: Use helpers to refine the checking on transport and link layer
@ 2015-03-25 11:12 Michael Wang
  2015-03-25 11:14 ` [PATCH 1/2] IB/Verbs: Use helpers to check " Michael Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Wang @ 2015-03-25 11:12 UTC (permalink / raw)
  To: Roland Dreier, Sean Hefty, Hal Rosenstock,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-nfs-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA,
	Ira Weiny
  Cc: J. Bruce Fields, Trond Myklebust, David S. Miller, Moni Shoua,
	PJ Waskiewicz, Steve Wise, Tatyana Nikolova, Yan Burman,
	Jack Morgenstein, Yann Droneaud, Bart Van Assche, Colin Ian King,
	Mel Gorman, Majd Dibbiny, Jiri Kosina, Matan Barak, Dan Carpenter,
	Eugenia Emantayev, Doug Ledford, Alex Estrin, Erez Shitrit,
	Eric Dumazet, Tom Gundersen <


There are too many lengthy code to check the transport type of IB device,
or the link layer type of it's port, this patch set try to use some 
helper to
refine and save us some code.

TODO:
     Currently we inferred from the transport type and link layer type 
to identify
     the way of management, it will be better if we can directly get the 
indicator
     from vendor.

     Sean proposed one suggestion:
  https://www.mail-archive.com/linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org/msg23339.html

     It may need a big work to adapt current implementation to utilize
     these flags elegantly.

     Also the performance concern on query_port() need to be addressed, 
may be
     some new callback like query_mgmt() could works.

Michael Wang (2):
     [PATCH 1/2] IB/Verbs: Use helpers to check transport and link layer
     [PATCH 2/2] IB/Verbs: Use helpers to check IBoE technology

---
  drivers/infiniband/core/agent.c           |    2 -
  drivers/infiniband/core/cm.c              |    2 -
  drivers/infiniband/core/cma.c             |   33 
++++++++++++------------------
  drivers/infiniband/core/mad.c             |    6 ++---
  drivers/infiniband/core/multicast.c       |   11 +++-------
  drivers/infiniband/core/sa_query.c        |   14 ++++++------
  drivers/infiniband/core/ucm.c             |    3 --
  drivers/infiniband/core/user_mad.c        |    2 -
  drivers/infiniband/core/verbs.c           |    5 +---
  drivers/infiniband/hw/mlx4/ah.c           |    2 -
  drivers/infiniband/hw/mlx4/cq.c           |    4 ---
  drivers/infiniband/hw/mlx4/mad.c          |   14 +++---------
  drivers/infiniband/hw/mlx4/main.c         |    8 ++-----
  drivers/infiniband/hw/mlx4/mlx4_ib.h      |    2 -
  drivers/infiniband/hw/mlx4/qp.c           |   21 ++++++-------------
  drivers/infiniband/hw/mlx4/sysfs.c        |    6 +----
  drivers/infiniband/ulp/ipoib/ipoib_main.c |    6 ++---
  include/rdma/ib_verbs.h                   |   30 
+++++++++++++++++++++++++++
  net/sunrpc/xprtrdma/svc_rdma_recvfrom.c   |    3 --
  19 files changed, 87 insertions(+), 87 deletions(-)
--
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] 4+ messages in thread

end of thread, other threads:[~2015-03-25 11:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-25 11:12 [PATCH 1/2] IB/Verbs: Use helpers to refine the checking on transport and link layer Michael Wang
2015-03-25 11:14 ` [PATCH 1/2] IB/Verbs: Use helpers to check " Michael Wang
     [not found] ` <55129832.2070707-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
2015-03-25 11:16   ` [PATCH 2/2] IB/Verbs: Use helpers to check IBoE technology Michael Wang
2015-03-25 11:19 ` [PATCH 1/2] IB/Verbs: Use helpers to refine the checking on transport and link layer Michael Wang

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).