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)
commitcb097b3dd5ece9596a0a0b7e33893c02a9bde8c6
tree06a3f5ea1f9687e0c31e46e622b609aac5c2fd84
parent31928a001bed0d9642711d2eba520fc46d41c376
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