mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
smb: client: remove unused smbd_connection->protocol
There is only one protocol version for smbdirect yet and this variable is write only. 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
4dc536a135
commit
87d03d6c82
|
|
@ -24,6 +24,7 @@
|
|||
#endif
|
||||
#ifdef CONFIG_CIFS_SMB_DIRECT
|
||||
#include "smbdirect.h"
|
||||
#include "../common/smbdirect/smbdirect_pdu.h"
|
||||
#endif
|
||||
#include "cifs_swn.h"
|
||||
#include "cached_dir.h"
|
||||
|
|
@ -458,7 +459,7 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
|
|||
|
||||
seq_printf(m, "\nSMBDirect protocol version: 0x%x "
|
||||
"transport status: %s (%u)",
|
||||
server->smbd_conn->protocol,
|
||||
SMBDIRECT_V1,
|
||||
smbdirect_socket_status_string(sc->status),
|
||||
sc->status);
|
||||
seq_printf(m, "\nConn receive_credit_max: %u "
|
||||
|
|
|
|||
|
|
@ -481,7 +481,6 @@ static bool process_negotiation_response(
|
|||
le16_to_cpu(packet->negotiated_version));
|
||||
return false;
|
||||
}
|
||||
info->protocol = le16_to_cpu(packet->negotiated_version);
|
||||
|
||||
if (packet->credits_requested == 0) {
|
||||
log_rdma_event(ERR, "error: credits_requested==0\n");
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@ extern int smbd_receive_credit_max;
|
|||
struct smbd_connection {
|
||||
struct smbdirect_socket socket;
|
||||
|
||||
/* dynamic connection parameters defined in [MS-SMBD] 3.1.1.1 */
|
||||
int protocol;
|
||||
|
||||
/* Memory registrations */
|
||||
/* Maximum number of pages in a single RDMA write/read on this connection */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user