]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: register ksmbd ib client with ib_register_client()
authorHyunchul Lee <hyc.lee@gmail.com>
Mon, 18 Dec 2023 15:32:36 +0000 (00:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 09:41:50 +0000 (10:41 +0100)
commit178ecc3257285032655509b330f900f316979587
tree95cd53607b87f675e9436a37e91cbce6d9c95a14
parent91d730756980b219211471483012a289d86094ff
ksmbd: register ksmbd ib client with ib_register_client()

[ Upstream commit 31928a001bed0d9642711d2eba520fc46d41c376 ]

Register ksmbd ib client with ib_register_client() to find the rdma capable
network adapter. If ops.get_netdev(Chelsio NICs) is NULL, ksmbd will find
it using ib_device_get_by_netdev in old way.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/transport_rdma.c
fs/ksmbd/transport_rdma.h