mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
smb: client: pass struct smbdirect_socket to smbd_ia_open()
This will make it easier to move function to the common code in future. Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
2569536b0c
commit
0a5dc5fc7c
|
|
@ -819,10 +819,9 @@ static bool frwr_is_supported(struct ib_device_attr *attrs)
|
|||
}
|
||||
|
||||
static int smbd_ia_open(
|
||||
struct smbd_connection *info,
|
||||
struct smbdirect_socket *sc,
|
||||
struct sockaddr *dstaddr, int port)
|
||||
{
|
||||
struct smbdirect_socket *sc = &info->socket;
|
||||
struct smbdirect_socket_parameters *sp = &sc->parameters;
|
||||
int rc;
|
||||
|
||||
|
|
@ -1741,7 +1740,7 @@ static struct smbd_connection *_smbd_get_connection(
|
|||
sp->keepalive_interval_msec = smbd_keep_alive_interval * 1000;
|
||||
sp->keepalive_timeout_msec = KEEPALIVE_RECV_TIMEOUT * 1000;
|
||||
|
||||
rc = smbd_ia_open(info, dstaddr, port);
|
||||
rc = smbd_ia_open(sc, dstaddr, port);
|
||||
if (rc) {
|
||||
log_rdma_event(INFO, "smbd_ia_open rc=%d\n", rc);
|
||||
goto create_id_failed;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user