• Home
  • Raw
  • Download

Lines Matching defs:TCP_Server_Info

677 struct TCP_Server_Info {  struct
678 struct list_head tcp_ses_list;
679 struct list_head smb_ses_list;
680 struct list_head rlist; /* reconnect list */
681 spinlock_t srv_lock; /* protect anything here that is not protected */
682 __u64 conn_id; /* connection identifier (useful for debugging) */
683 int srv_count; /* reference counter */
685 char server_RFC1001_name[RFC1001_NAME_LEN_WITH_NULL];
686 struct smb_version_operations *ops;
687 struct smb_version_values *vals;
689 enum statusEnum tcpStatus; /* what we think the status is */
690 char *hostname; /* hostname portion of UNC string */
691 struct socket *ssocket;
692 struct sockaddr_storage dstaddr;
693 struct sockaddr_storage srcaddr; /* locally bind to this IP */
695 struct net *net;
697 wait_queue_head_t response_q;
698 wait_queue_head_t request_q; /* if more than maxmpx to srvr must block*/
699 spinlock_t mid_lock; /* protect mid queue and it's entries */
700 struct list_head pending_mid_q;
701 bool noblocksnd; /* use blocking sendmsg */
702 bool noautotune; /* do not autotune send buf sizes */
703 bool nosharesock;
704 bool tcp_nodelay;
705 bool terminate;
706 unsigned int credits; /* send no more requests at once */
707 unsigned int max_credits; /* can override large 32000 default at mnt */
708 unsigned int in_flight; /* number of requests on the wire to server */
709 unsigned int max_in_flight; /* max number of requests that were on wire */
710 spinlock_t req_lock; /* protect the two values above */
711 struct mutex _srv_mutex;
712 unsigned int nofs_flag;
713 struct task_struct *tsk;
714 char server_GUID[16];
715 __u16 sec_mode;
716 bool sign; /* is signing enabled on this connection? */
717 bool ignore_signature:1; /* skip validation of signatures in SMB2/3 rsp */
718 bool session_estab; /* mark when very first sess is established */
719 int echo_credits; /* echo reserved slots */
720 int oplock_credits; /* oplock break reserved slots */
721 bool echoes:1; /* enable echoes */
722 __u8 client_guid[SMB2_CLIENT_GUID_SIZE]; /* Client GUID */
723 u16 dialect; /* dialect index that server chose */
724 bool oplocks:1; /* enable oplocks */
725 unsigned int maxReq; /* Clients should submit no more */
728 unsigned int maxBuf; /* maxBuf specifies the maximum */
732 unsigned int max_rw; /* maxRw specifies the maximum */
735 unsigned int capabilities; /* selective disabling of caps by smb sess */
736 int timeAdj; /* Adjust for difference in server time zone in sec */
737 __u64 CurrentMid; /* multiplex id - rotating counter, protected by GlobalMid_Lock */
738 char cryptkey[CIFS_CRYPTO_KEY_SIZE]; /* used by ntlm, ntlmv2 etc */
740 char workstation_RFC1001_name[RFC1001_NAME_LEN_WITH_NULL];
741 __u32 sequence_number; /* for signing, protected by srv_mutex */
742 __u32 reconnect_instance; /* incremented on each reconnect */
743 __le32 session_key_id; /* retrieved from negotiate response and send in session setup request */
744 struct session_key session_key;
745 unsigned long lstrp; /* when we got last response from this server */
746 unsigned long neg_start; /* when negotiate started (jiffies) */
747 struct cifs_secmech secmech; /* crypto sec mech functs, descriptors */
750 char negflavor; /* NEGOTIATE response flavor */
752 bool sec_ntlmssp; /* supports NTLMSSP */
753 bool sec_kerberosu2u; /* supports U2U Kerberos */
754 bool sec_kerberos; /* supports plain Kerberos */
755 bool sec_mskerberos; /* supports legacy MS Kerberos */
756 bool sec_iakerb; /* supports pass-through auth for Kerberos (krb5 proxy) */
757 bool large_buf; /* is current buffer large? */
759 bool rdma;
761 struct smbd_connection *smbd_conn;
762 struct delayed_work echo; /* echo ping workqueue job */
763 char *smallbuf; /* pointer to current "small" buffer */
764 char *bigbuf; /* pointer to current "big" buffer */
766 unsigned int pdu_size;
767 unsigned int total_read; /* total amount of data read in this pass */
768 atomic_t in_send; /* requests trying to send */
769 atomic_t num_waiters; /* blocked waiting to get in sendrecv */
771 atomic_t num_cmds[NUMBER_OF_SMB2_COMMANDS]; /* total requests by cmd */
772 atomic_t smb2slowcmd[NUMBER_OF_SMB2_COMMANDS]; /* count resps > 1 sec */
773 __u64 time_per_cmd[NUMBER_OF_SMB2_COMMANDS]; /* total time per cmd */
774 __u32 slowest_cmd[NUMBER_OF_SMB2_COMMANDS];
775 __u32 fastest_cmd[NUMBER_OF_SMB2_COMMANDS];
777 unsigned int max_read;
778 unsigned int max_write;
779 unsigned int min_offload;
780 unsigned int retrans;
781 struct {
785 } compression;
786 __u16 signing_algorithm;
810 struct TCP_Server_Info *primary_server; argument
811 __u16 channel_sequence_num; /* incremented on primary channel on each chan reconnect */
836 static inline bool is_smb1(struct TCP_Server_Info *server) in is_smb1() argument