From: Leon Romanovsky <leon@kernel.org>
To: Namjae Jeon <linkinjeon@kernel.org>
Cc: linux-cifs@vger.kernel.org, smfrench@gmail.com,
senozhatsky@chromium.org, tom@talpey.com,
atteh.mailbox@gmail.com, Kangjing Huang <huangkangjing@gmail.com>,
Steve French <stfrench@microsoft.com>
Subject: Re: [PATCH] Revert "ksmbd: fix missing RDMA-capable flag for IPoIB device in ksmbd_rdma_capable_netdev()"
Date: Wed, 19 Mar 2025 11:17:23 +0200 [thread overview]
Message-ID: <20250319091723.GI1322339@unreal> (raw)
In-Reply-To: <20250318123826.5406-1-linkinjeon@kernel.org>
On Tue, Mar 18, 2025 at 09:38:26PM +0900, Namjae Jeon wrote:
> This reverts commit ecce70cf17d91c3dd87a0c4ea00b2d1387729701.
>
> Revert the GUID trick code causing the layering violation.
> I will try to allow the users to turn RDMA-capable on/off via sysfs later
>
> Cc: Kangjing Huang <huangkangjing@gmail.com>
> Cc: Leon Romanovsky <leon@kernel.org>
> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
> Signed-off-by: Steve French <stfrench@microsoft.com>
> ---
> fs/smb/server/transport_rdma.c | 40 +++++++++-------------------------
> 1 file changed, 10 insertions(+), 30 deletions(-)
>
> diff --git a/fs/smb/server/transport_rdma.c b/fs/smb/server/transport_rdma.c
> index 1b9f3aee8b4b..9837a41641ce 100644
> --- a/fs/smb/server/transport_rdma.c
> +++ b/fs/smb/server/transport_rdma.c
> @@ -2142,7 +2142,8 @@ static int smb_direct_ib_client_add(struct ib_device *ib_dev)
> if (ib_dev->node_type != RDMA_NODE_IB_CA)
> smb_direct_port = SMB_DIRECT_PORT_IWARP;
>
> - if (!rdma_frwr_is_supported(&ib_dev->attrs))
> + if (!ib_dev->ops.get_netdev ||
> + !rdma_frwr_is_supported(&ib_dev->attrs))
<...>
> + ndev = smb_dev->ib_dev->ops.get_netdev(smb_dev->ib_dev,
> + i + 1);
Can you please use ib_device_get_netdev()?
ULPs are not supposed to call to ops.* directly.
Thanks
next prev parent reply other threads:[~2025-03-19 9:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-18 12:38 [PATCH] Revert "ksmbd: fix missing RDMA-capable flag for IPoIB device in ksmbd_rdma_capable_netdev()" Namjae Jeon
2025-03-19 9:17 ` Leon Romanovsky [this message]
2025-03-19 23:19 ` Namjae Jeon
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=20250319091723.GI1322339@unreal \
--to=leon@kernel.org \
--cc=atteh.mailbox@gmail.com \
--cc=huangkangjing@gmail.com \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=senozhatsky@chromium.org \
--cc=smfrench@gmail.com \
--cc=stfrench@microsoft.com \
--cc=tom@talpey.com \
/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.