Skip to content

Commit 3b24911

Browse files
longlimsftsmfrench
authored andcommitted
cifs: Don't match port on SMBDirect transport
SMBDirect manages its own ports in the transport layer, there is no need to check the port to find a connection. Signed-off-by: Long Li <[email protected]> Signed-off-by: Steve French <[email protected]> Reviewed-by: Ronnie sahlberg <[email protected]>
1 parent 7f46d23 commit 3b24911

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/cifs/connect.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,6 +2446,10 @@ match_port(struct TCP_Server_Info *server, struct sockaddr *addr)
24462446
{
24472447
__be16 port, *sport;
24482448

2449+
/* SMBDirect manages its own ports, don't match it here */
2450+
if (server->rdma)
2451+
return true;
2452+
24492453
switch (addr->sa_family) {
24502454
case AF_INET:
24512455
sport = &((struct sockaddr_in *) &server->dstaddr)->sin_port;

0 commit comments

Comments
 (0)