linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] RDMA/siw: [re-]introduce module parameters and add MPA V1
@ 2025-07-03 17:26 Stefan Metzmacher
  2025-07-03 17:26 ` [PATCH 1/8] RDMA/siw: make mpa_version = MPA_REVISION_2 const Stefan Metzmacher
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Stefan Metzmacher @ 2025-07-03 17:26 UTC (permalink / raw)
  To: linux-rdma; +Cc: metze, Bernard Metzler

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


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

end of thread, other threads:[~2025-07-06  7:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-03 17:26 [PATCH 0/8] RDMA/siw: [re-]introduce module parameters and add MPA V1 Stefan Metzmacher
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

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