All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Stefan Metzmacher" <metze@samba.org>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH 1/2] RDMA/cma: introduce rdma_set_iwpm()
Date: Tue, 01 Dec 2026 16:35:29 +0000	[thread overview]
Message-ID: <sashiko-outbox-243714@kernel.org> (raw)
In-Reply-To: <9d31c3e2c2d367582b0b2af7a0988a77cb2a3962.1796142211.git.metze@samba.org>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] RDMA/cma: inaccurate Fixes trailer citing smbdirect refactoring
  commit
--

commit e1aafeb6b3aaee7a856ca4ba5d8afc0232cee4b3
Author: Stefan Metzmacher <metze@samba.org>

> RDMA/cma: introduce rdma_set_iwpm()
>
> If iwpmd is running, iw_cm_map() maps the local port of every
> listening and connecting iw_cm_id and, for a connect, asks the
> remote iwpmd for the mapped port of the remote listener.
>
> For kernel users with a well known port, e.g. smbdirect using port
> 5445, this can be more harmful than helpful: if the state of the
> iwpmd on both sides doesn't match the actual listeners, e.g. because
> the listener was created before iwpmd was started, the connection
> goes to a mapped port nobody listens on, while it works fine without
> iwpmd.
>
> Add iw_cm_id->skip_iwpm, which makes iw_cm_map() behave as if iwpmd
> is not running for this iw_cm_id, and rdma_set_iwpm(), which lets
> the upper layer decide whether iwpmd is used for an rdma_cm_id, by
> setting iw_cm_id->skip_iwpm for the iw_cm_id used for rdma_listen()
> and rdma_connect(). The setting is copied to the per device
> listeners created by cma_listen_on_dev().
>
> Like rdma_set_afonly() it needs to be called before rdma_listen() or
> rdma_resolve_addr().
>
> Without iwpmd the port of such an iw_cm_id is not reserved in the port
> space of the host, so on iWarp devices sharing the IP addresses of the
> host a TCP socket on the same port competes with it, like without
> iwpmd running at all. For the well known port of a kernel service
> that's what the administrator controls anyway.
>
> Fixes: dce268ffcddc ("smb: smbdirect: introduce smbdirect_socket_init_{new,accepting}() and helpers")
> Cc: stable@vger.kernel.org
> Cc: Jason Gunthorpe <jgg@ziepe.ca>
> Cc: Leon Romanovsky <leon@kernel.org>
> Cc: Namjae Jeon <linkinjeon@kernel.org>
> Cc: linux-rdma@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Signed-off-by: Stefan Metzmacher <metze@samba.org>

[Severity: Low]
Is this Fixes: trailer pointing to the right commit?

Commit dce268ffcddc ("smb: smbdirect: introduce
smbdirect_socket_init_{new,accepting}() and helpers") only added unused
socket initialization helpers in fs/smb/common/smbdirect/smbdirect_socket.c
during an smbdirect refactoring.  It did not modify RDMA core or introduce
the iwpmd port mapping behavior in iw_cm_map(), which dates back to commit
b493d91d333e ("iwcm: common code for port mapper").

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1796142211.git.metze@samba.org?part=1

  reply	other threads:[~2026-12-01 16:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 16:27 [PATCH 0/2] smb: smbdirect: don't use the iWarp port mapper Stefan Metzmacher
2026-12-01 16:27 ` [PATCH 1/2] RDMA/cma: introduce rdma_set_iwpm() Stefan Metzmacher
2026-12-01 16:35   ` sashiko-bot [this message]
2026-12-01 16:27 ` [PATCH 2/2] smb: smbdirect: don't use the iWarp port mapper Stefan Metzmacher
2026-12-01 16:35 ` [PATCH 0/2] " sashiko-bot

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=sashiko-outbox-243714@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=metze@samba.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.