Commit 8a9919b2 authored by Stefan Metzmacher's avatar Stefan Metzmacher Committed by Steve French
Browse files

smb: client: pass struct smbdirect_socket to smbd_post_send()



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: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarStefan Metzmacher <metze@samba.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 869bb728
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1003,10 +1003,9 @@ static int manage_keep_alive_before_sending(struct smbd_connection *info)
}

/* Post the send request */
static int smbd_post_send(struct smbd_connection *info,
static int smbd_post_send(struct smbdirect_socket *sc,
		struct smbdirect_send_io *request)
{
	struct smbdirect_socket *sc = &info->socket;
	struct ib_send_wr send_wr;
	int rc, i;

@@ -1169,7 +1168,7 @@ static int smbd_post_send_iter(struct smbd_connection *info,
	request->sge[0].length = header_length;
	request->sge[0].lkey = sc->ib.pd->local_dma_lkey;

	rc = smbd_post_send(info, request);
	rc = smbd_post_send(sc, request);
	if (!rc)
		return 0;