Linux-RDMA Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 0/7] RDMA/cm: Remove open coded structure pack/unpack
@ 2020-01-16 17:00 Jason Gunthorpe
  2020-01-16 17:00 ` [PATCH 1/7] RDMA/cm: Add accessors for CM_REQ transport_type Jason Gunthorpe
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Jason Gunthorpe @ 2020-01-16 17:00 UTC (permalink / raw)
  To: linux-rdma, Leon Romanovsky; +Cc: Jason Gunthorpe

From: Jason Gunthorpe <jgg@mellanox.com>

Instead of using a struct layout with a large number of open coded pack/unpack
inlines use a consistent set of macros generating GENMASK's for accessing the
members. The definitions follow the MAD layout tables in the IBA and are easier
to correlate with the specification.

Further the macros consistently use cpu endian values which will allow later
patches to remove alot of the __be stuff sprinkled randomly around.

The is a follow up to the series here:

https://lore.kernel.org/r/20191212093830.316934-1-leon@kernel.org

Jason Gunthorpe (6):
  RDMA/cm: Add accessors for CM_REQ transport_type
  RDMA/cm: Use IBA functions for simple get/set acessors
  RDMA/cm: Use IBA functions for swapping get/set acessors
  RDMA/cm: Use IBA functions for simple structure members
  RDMA/cm: Use IBA functions for complex structure members
  RDMA/cm: Remove CM message structs

Leon Romanovsky (1):
  RDMA/cm: Add SET/GET implementations to hide IBA wire format

 drivers/infiniband/core/cm.c      | 793 ++++++++++++++++++------------
 drivers/infiniband/core/cm_msgs.h | 685 +-------------------------
 include/rdma/iba.h                | 146 ++++++
 include/rdma/ibta_vol1_c12.h      | 213 ++++++++
 4 files changed, 852 insertions(+), 985 deletions(-)
 create mode 100644 include/rdma/iba.h
 create mode 100644 include/rdma/ibta_vol1_c12.h

-- 
2.24.1


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

end of thread, back to index

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16 17:00 [PATCH 0/7] RDMA/cm: Remove open coded structure pack/unpack Jason Gunthorpe
2020-01-16 17:00 ` [PATCH 1/7] RDMA/cm: Add accessors for CM_REQ transport_type Jason Gunthorpe
2020-01-16 17:00 ` [PATCH 2/7] RDMA/cm: Add SET/GET implementations to hide IBA wire format Jason Gunthorpe
2020-01-16 17:00 ` [PATCH 3/7] RDMA/cm: Use IBA functions for simple get/set acessors Jason Gunthorpe
2020-01-16 17:00 ` [PATCH 4/7] RDMA/cm: Use IBA functions for swapping " Jason Gunthorpe
2020-01-16 17:00 ` [PATCH 5/7] RDMA/cm: Use IBA functions for simple structure members Jason Gunthorpe
2020-01-16 17:00 ` [PATCH 6/7] RDMA/cm: Use IBA functions for complex " Jason Gunthorpe
2020-01-16 17:00 ` [PATCH 7/7] RDMA/cm: Remove CM message structs Jason Gunthorpe
2020-01-25 19:24 ` [PATCH 0/7] RDMA/cm: Remove open coded structure pack/unpack Jason

Linux-RDMA Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-rdma/0 linux-rdma/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-rdma linux-rdma/ https://lore.kernel.org/linux-rdma \
		linux-rdma@vger.kernel.org
	public-inbox-index linux-rdma

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-rdma


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git