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 <longli@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Ronnie sahlberg <lsahlber@redhat.com>
This commit is contained in:
parent
7f46d23e1b
commit
3b24911571
@ -2446,6 +2446,10 @@ match_port(struct TCP_Server_Info *server, struct sockaddr *addr)
|
||||
{
|
||||
__be16 port, *sport;
|
||||
|
||||
/* SMBDirect manages its own ports, don't match it here */
|
||||
if (server->rdma)
|
||||
return true;
|
||||
|
||||
switch (addr->sa_family) {
|
||||
case AF_INET:
|
||||
sport = &((struct sockaddr_in *) &server->dstaddr)->sin_port;
|
||||
|
Loading…
Reference in New Issue
Block a user