mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
smb: server: pass struct smbdirect_socket to manage_keep_alive_before_sending()
This will make it easier to move function to the common code in future. Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher <metze@samba.org> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
663b3c3c86
commit
4d1dffe0a0
|
|
@ -871,9 +871,8 @@ static int manage_credits_prior_sending(struct smbdirect_socket *sc)
|
|||
return new_credits;
|
||||
}
|
||||
|
||||
static int manage_keep_alive_before_sending(struct smb_direct_transport *t)
|
||||
static int manage_keep_alive_before_sending(struct smbdirect_socket *sc)
|
||||
{
|
||||
struct smbdirect_socket *sc = &t->socket;
|
||||
struct smbdirect_socket_parameters *sp = &sc->parameters;
|
||||
|
||||
if (sc->idle.keepalive == SMBDIRECT_KEEPALIVE_PENDING) {
|
||||
|
|
@ -1028,7 +1027,7 @@ static int smb_direct_create_header(struct smb_direct_transport *t,
|
|||
packet->credits_granted = cpu_to_le16(manage_credits_prior_sending(sc));
|
||||
|
||||
packet->flags = 0;
|
||||
if (manage_keep_alive_before_sending(t))
|
||||
if (manage_keep_alive_before_sending(sc))
|
||||
packet->flags |= cpu_to_le16(SMBDIRECT_FLAG_RESPONSE_REQUESTED);
|
||||
|
||||
packet->reserved = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user