From: Stefan Metzmacher <metze@samba.org>
To: linux-rdma@vger.kernel.org
Cc: metze@samba.org, Bernard Metzler <bmt@zurich.ibm.com>
Subject: [PATCH 0/8] RDMA/siw: [re-]introduce module parameters and add MPA V1
Date: Thu, 3 Jul 2025 19:26:11 +0200 [thread overview]
Message-ID: <cover.1751561826.git.metze@samba.org> (raw)
While working on smbdirect cleanup I'm using siw.ko for
testing against Windows using Chelsio T404-BT (only supporting MPA V1)
and T520-BT (supporting MPA V2) cards.
Up to now I used old patches to add MPA V1 support
to siw.ko and compiled against the running kernel
each time. I don't want to do that forever, so
I re-introduced module parameters in order to
avoid patching and compiling.
For my testing I'm using something like this:
echo 1 > /sys/module/siw/parameters/mpa_crc_required
echo 1 > /sys/module/siw/parameters/mpa_crc_strict
echo 0 > /sys/module/siw/parameters/mpa_rdma_write_rtr
echo 1 > /sys/module/siw/parameters/mpa_peer_to_peer
echo 1 > /sys/module/siw/parameters/mpa_version
rdma link add siw_v1_eth0 type siw netdev eth0
echo 2 > /sys/module/siw/parameters/mpa_version
rdma link add siw_v2_eth1 type siw netdev eth1
The global parameters are copied at 'rdma link add' time
and will stay as is for the lifetime of the specific device.
So I can testing against the T520-BT card using siw_v2_eth1
and against the T404-BT card using siw_v1_eth0.
It would be great if this can go upstream.
Stefan Metzmacher (8):
RDMA/siw: make mpa_version = MPA_REVISION_2 const
RDMA/siw: remove unused loopback_enabled = true
RDMA/siw: add and remember siw_device_options per device.
RDMA/siw: make use of sdev->options.* and avoid globals
RDMA/siw: combine global options into siw_default_options
RDMA/siw: move rtr_type to siw_device_options
RDMA/siw: [re-]introduce module parameters to alter the behavior at
runtime
RDMA/siw: add support for MPA V1 and IRD/ORD negotiation based on
[MS-SMBD]
drivers/infiniband/sw/siw/iwarp.h | 8 +
drivers/infiniband/sw/siw/siw.h | 21 +-
drivers/infiniband/sw/siw/siw_cm.c | 268 +++++++++++++++++++++-----
drivers/infiniband/sw/siw/siw_cm.h | 2 +
drivers/infiniband/sw/siw/siw_main.c | 173 ++++++++++++++---
drivers/infiniband/sw/siw/siw_qp_tx.c | 3 +-
drivers/infiniband/sw/siw/siw_verbs.c | 2 +-
7 files changed, 395 insertions(+), 82 deletions(-)
--
2.34.1
next reply other threads:[~2025-07-03 17:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-03 17:26 Stefan Metzmacher [this message]
2025-07-03 17:26 ` [PATCH 1/8] RDMA/siw: make mpa_version = MPA_REVISION_2 const Stefan Metzmacher
2025-07-03 17:26 ` [PATCH 2/8] RDMA/siw: remove unused loopback_enabled = true Stefan Metzmacher
2025-07-04 1:14 ` yanjun.zhu
2025-07-03 17:26 ` [PATCH 3/8] RDMA/siw: add and remember siw_device_options per device Stefan Metzmacher
2025-07-03 17:26 ` [PATCH 4/8] RDMA/siw: make use of sdev->options.* and avoid globals Stefan Metzmacher
2025-07-03 17:26 ` [PATCH 5/8] RDMA/siw: combine global options into siw_default_options Stefan Metzmacher
2025-07-03 17:26 ` [PATCH 6/8] RDMA/siw: move rtr_type to siw_device_options Stefan Metzmacher
2025-07-03 17:26 ` [PATCH 7/8] RDMA/siw: [re-]introduce module parameters to alter the behavior at runtime Stefan Metzmacher
2025-07-03 17:26 ` [PATCH 8/8] RDMA/siw: add support for MPA V1 and IRD/ORD negotiation based on [MS-SMBD] Stefan Metzmacher
2025-07-03 19:16 ` [PATCH 0/8] RDMA/siw: [re-]introduce module parameters and add MPA V1 Chuck Lever
2025-07-04 14:13 ` Bernard Metzler
2025-07-06 7:56 ` Leon Romanovsky
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=cover.1751561826.git.metze@samba.org \
--to=metze@samba.org \
--cc=bmt@zurich.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.