From: Jason Gunthorpe <jgg@ziepe.ca>
To: linux-rdma@vger.kernel.org, Leon Romanovsky <leonro@mellanox.com>
Cc: Jason Gunthorpe <jgg@mellanox.com>
Subject: [PATCH 0/7] RDMA/cm: Remove open coded structure pack/unpack
Date: Thu, 16 Jan 2020 13:00:30 -0400 [thread overview]
Message-ID: <20200116170037.30109-1-jgg@ziepe.ca> (raw)
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
next reply other threads:[~2020-01-16 19:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-16 17:00 Jason Gunthorpe [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200116170037.30109-1-jgg@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=jgg@mellanox.com \
--cc=leonro@mellanox.com \
--cc=linux-rdma@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).