]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: set 445 port to smbdirect port by default
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 29 Dec 2021 14:02:50 +0000 (23:02 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 10 Jan 2022 18:44:19 +0000 (12:44 -0600)
commitaff70764f4c1357534cc7e3157e932a56d3f09a8
tree06a3f5ea1f9687e0c31e46e622b609aac5c2fd84
parent50a902c2bf5a9331127b6ba96e15dc7fa282a5c2
ksmbd: set 445 port to smbdirect port by default

When SMB Direct is used with iWARP, Windows use 5445 port for smb direct
port, 445 port for SMB. This patch check ib_device using ib_client to
know if NICs type is iWARP or Infiniband.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/transport_rdma.c
fs/ksmbd/transport_rdma.h