Lines Matching defs:TCP_Server_Info

626 struct TCP_Server_Info {  struct
627 struct list_head tcp_ses_list;
628 struct list_head smb_ses_list;
629 spinlock_t srv_lock; /* protect anything here that is not protected */
630 __u64 conn_id; /* connection identifier (useful for debugging) */
631 int srv_count; /* reference counter */
633 char server_RFC1001_name[RFC1001_NAME_LEN_WITH_NULL];
634 struct smb_version_operations *ops;
635 struct smb_version_values *vals;
637 enum statusEnum tcpStatus; /* what we think the status is */
638 char *hostname; /* hostname portion of UNC string */
639 struct socket *ssocket;
640 struct sockaddr_storage dstaddr;
641 struct sockaddr_storage srcaddr; /* locally bind to this IP */
643 struct net *net;
645 wait_queue_head_t response_q;
646 wait_queue_head_t request_q; /* if more than maxmpx to srvr must block*/
647 spinlock_t mid_lock; /* protect mid queue and it's entries */
648 struct list_head pending_mid_q;
649 bool noblocksnd; /* use blocking sendmsg */
650 bool noautotune; /* do not autotune send buf sizes */
651 bool nosharesock;
652 bool tcp_nodelay;
653 unsigned int credits; /* send no more requests at once */
654 unsigned int max_credits; /* can override large 32000 default at mnt */
655 unsigned int in_flight; /* number of requests on the wire to server */
656 unsigned int max_in_flight; /* max number of requests that were on wire */
657 spinlock_t req_lock; /* protect the two values above */
658 struct mutex _srv_mutex;
659 unsigned int nofs_flag;
660 struct task_struct *tsk;
661 char server_GUID[16];
662 __u16 sec_mode;
663 bool sign; /* is signing enabled on this connection? */
664 bool ignore_signature:1; /* skip validation of signatures in SMB2/3 rsp */
665 bool session_estab; /* mark when very first sess is established */
666 int echo_credits; /* echo reserved slots */
667 int oplock_credits; /* oplock break reserved slots */
668 bool echoes:1; /* enable echoes */
669 __u8 client_guid[SMB2_CLIENT_GUID_SIZE]; /* Client GUID */
670 u16 dialect; /* dialect index that server chose */
671 bool oplocks:1; /* enable oplocks */
672 unsigned int maxReq; /* Clients should submit no more */
675 unsigned int maxBuf; /* maxBuf specifies the maximum */
679 unsigned int max_rw; /* maxRw specifies the maximum */
682 unsigned int capabilities; /* selective disabling of caps by smb sess */
683 int timeAdj; /* Adjust for difference in server time zone in sec */
684 __u64 CurrentMid; /* multiplex id - rotating counter, protected by GlobalMid_Lock */
685 char cryptkey[CIFS_CRYPTO_KEY_SIZE]; /* used by ntlm, ntlmv2 etc */
687 char workstation_RFC1001_name[RFC1001_NAME_LEN_WITH_NULL];
688 __u32 sequence_number; /* for signing, protected by srv_mutex */
689 __u32 reconnect_instance; /* incremented on each reconnect */
690 struct session_key session_key;
691 unsigned long lstrp; /* when we got last response from this server */
692 struct cifs_secmech secmech; /* crypto sec mech functs, descriptors */
695 char negflavor; /* NEGOTIATE response flavor */
697 bool sec_ntlmssp; /* supports NTLMSSP */
698 bool sec_kerberosu2u; /* supports U2U Kerberos */
699 bool sec_kerberos; /* supports plain Kerberos */
700 bool sec_mskerberos; /* supports legacy MS Kerberos */
701 bool large_buf; /* is current buffer large? */
703 bool rdma;
705 struct smbd_connection *smbd_conn;
706 struct delayed_work echo; /* echo ping workqueue job */
707 char *smallbuf; /* pointer to current "small" buffer */
708 char *bigbuf; /* pointer to current "big" buffer */
710 unsigned int pdu_size;
711 unsigned int total_read; /* total amount of data read in this pass */
712 atomic_t in_send; /* requests trying to send */
713 atomic_t num_waiters; /* blocked waiting to get in sendrecv */
715 atomic_t num_cmds[NUMBER_OF_SMB2_COMMANDS]; /* total requests by cmd */
716 atomic_t smb2slowcmd[NUMBER_OF_SMB2_COMMANDS]; /* count resps > 1 sec */
717 __u64 time_per_cmd[NUMBER_OF_SMB2_COMMANDS]; /* total time per cmd */
718 __u32 slowest_cmd[NUMBER_OF_SMB2_COMMANDS];
719 __u32 fastest_cmd[NUMBER_OF_SMB2_COMMANDS];
721 unsigned int max_read;
722 unsigned int max_write;
723 unsigned int min_offload;
724 __le16 compress_algorithm;
725 __u16 signing_algorithm;
749 struct TCP_Server_Info *primary_server; argument
750 __u16 channel_sequence_num; /* incremented on primary channel on each chan reconnect */
774 static inline bool is_smb1(struct TCP_Server_Info *server) in is_smb1() argument