Lines Matching full:server
38 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) in cifs_dump_detail() argument
46 if (!server->ops->check_message(buf, server->total_read, server)) { in cifs_dump_detail()
48 server->ops->calc_smb_size(smb)); in cifs_dump_detail()
53 void cifs_dump_mids(struct TCP_Server_Info *server) in cifs_dump_mids() argument
58 if (server == NULL) in cifs_dump_mids()
62 spin_lock(&server->mid_lock); in cifs_dump_mids()
63 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_dump_mids()
80 cifs_dump_detail(mid_entry->resp_buf, server); in cifs_dump_mids()
85 spin_unlock(&server->mid_lock); in cifs_dump_mids()
119 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon()
120 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon()
139 struct TCP_Server_Info *server = chan->server; in cifs_dump_channel() local
141 if (!server) { in cifs_dump_channel()
149 "\n\t\tLocal Users To Server: %d SecMode: 0x%x Req On Wire: %d" in cifs_dump_channel()
151 i+1, server->conn_id, in cifs_dump_channel()
152 server->credits, in cifs_dump_channel()
153 server->echo_credits, in cifs_dump_channel()
154 server->oplock_credits, in cifs_dump_channel()
155 server->dialect, in cifs_dump_channel()
156 server->tcpStatus, in cifs_dump_channel()
157 server->reconnect_instance, in cifs_dump_channel()
158 server->srv_count, in cifs_dump_channel()
159 server->sec_mode, in cifs_dump_channel()
160 in_flight(server), in cifs_dump_channel()
161 atomic_read(&server->in_send), in cifs_dump_channel()
162 atomic_read(&server->num_waiters)); in cifs_dump_channel()
164 if (server->net) in cifs_dump_channel()
165 seq_printf(m, " Net namespace: %u ", server->net->ns.inum); in cifs_dump_channel()
237 struct TCP_Server_Info *server; in cifs_debug_files_proc_show() local
251 list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) { in cifs_debug_files_proc_show()
252 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_debug_files_proc_show()
284 struct TCP_Server_Info *server; in cifs_debug_data_proc_show() local
341 list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) { in cifs_debug_data_proc_show()
343 if (SERVER_IS_CHAN(server)) in cifs_debug_data_proc_show()
348 c, server->conn_id); in cifs_debug_data_proc_show()
350 spin_lock(&server->srv_lock); in cifs_debug_data_proc_show()
351 if (server->hostname) in cifs_debug_data_proc_show()
352 seq_printf(m, "Hostname: %s ", server->hostname); in cifs_debug_data_proc_show()
353 seq_printf(m, "\nClientGUID: %pUL", server->client_guid); in cifs_debug_data_proc_show()
354 spin_unlock(&server->srv_lock); in cifs_debug_data_proc_show()
356 if (!server->rdma) in cifs_debug_data_proc_show()
359 if (!server->smbd_conn) { in cifs_debug_data_proc_show()
366 server->smbd_conn->protocol, in cifs_debug_data_proc_show()
367 server->smbd_conn->transport_status); in cifs_debug_data_proc_show()
370 server->smbd_conn->receive_credit_max, in cifs_debug_data_proc_show()
371 server->smbd_conn->send_credit_target, in cifs_debug_data_proc_show()
372 server->smbd_conn->max_send_size); in cifs_debug_data_proc_show()
375 server->smbd_conn->max_fragmented_recv_size, in cifs_debug_data_proc_show()
376 server->smbd_conn->max_fragmented_send_size, in cifs_debug_data_proc_show()
377 server->smbd_conn->max_receive_size); in cifs_debug_data_proc_show()
380 server->smbd_conn->keep_alive_interval, in cifs_debug_data_proc_show()
381 server->smbd_conn->max_readwrite_size, in cifs_debug_data_proc_show()
382 server->smbd_conn->rdma_readwrite_threshold); in cifs_debug_data_proc_show()
385 server->smbd_conn->count_get_receive_buffer, in cifs_debug_data_proc_show()
386 server->smbd_conn->count_put_receive_buffer, in cifs_debug_data_proc_show()
387 server->smbd_conn->count_send_empty); in cifs_debug_data_proc_show()
394 server->smbd_conn->count_reassembly_queue, in cifs_debug_data_proc_show()
395 server->smbd_conn->count_enqueue_reassembly_queue, in cifs_debug_data_proc_show()
396 server->smbd_conn->count_dequeue_reassembly_queue, in cifs_debug_data_proc_show()
397 server->smbd_conn->fragment_reassembly_remaining, in cifs_debug_data_proc_show()
398 server->smbd_conn->reassembly_data_length, in cifs_debug_data_proc_show()
399 server->smbd_conn->reassembly_queue_length); in cifs_debug_data_proc_show()
402 atomic_read(&server->smbd_conn->send_credits), in cifs_debug_data_proc_show()
403 atomic_read(&server->smbd_conn->receive_credits), in cifs_debug_data_proc_show()
404 server->smbd_conn->receive_credit_target); in cifs_debug_data_proc_show()
406 atomic_read(&server->smbd_conn->send_pending)); in cifs_debug_data_proc_show()
409 server->smbd_conn->count_receive_queue, in cifs_debug_data_proc_show()
410 server->smbd_conn->count_empty_packet_queue); in cifs_debug_data_proc_show()
413 server->smbd_conn->responder_resources, in cifs_debug_data_proc_show()
414 server->smbd_conn->max_frmr_depth, in cifs_debug_data_proc_show()
415 server->smbd_conn->mr_type); in cifs_debug_data_proc_show()
417 atomic_read(&server->smbd_conn->mr_ready_count), in cifs_debug_data_proc_show()
418 atomic_read(&server->smbd_conn->mr_used_count)); in cifs_debug_data_proc_show()
422 server->credits, in cifs_debug_data_proc_show()
423 server->echo_credits, in cifs_debug_data_proc_show()
424 server->oplock_credits, in cifs_debug_data_proc_show()
425 server->dialect); in cifs_debug_data_proc_show()
426 if (server->compress_algorithm == SMB3_COMPRESS_LZNT1) in cifs_debug_data_proc_show()
428 else if (server->compress_algorithm == SMB3_COMPRESS_LZ77) in cifs_debug_data_proc_show()
430 else if (server->compress_algorithm == SMB3_COMPRESS_LZ77_HUFF) in cifs_debug_data_proc_show()
432 if (server->sign) in cifs_debug_data_proc_show()
434 if (server->posix_ext_supported) in cifs_debug_data_proc_show()
436 if (server->nosharesock) in cifs_debug_data_proc_show()
439 seq_printf(m, "\nServer capabilities: 0x%x", server->capabilities); in cifs_debug_data_proc_show()
441 if (server->rdma) in cifs_debug_data_proc_show()
444 "\nLocal Users To Server: %d SecMode: 0x%x Req On Wire: %d", in cifs_debug_data_proc_show()
445 server->tcpStatus, in cifs_debug_data_proc_show()
446 server->reconnect_instance, in cifs_debug_data_proc_show()
447 server->srv_count, in cifs_debug_data_proc_show()
448 server->sec_mode, in_flight(server)); in cifs_debug_data_proc_show()
450 if (server->net) in cifs_debug_data_proc_show()
451 seq_printf(m, " Net namespace: %u ", server->net->ns.inum); in cifs_debug_data_proc_show()
455 atomic_read(&server->in_send), in cifs_debug_data_proc_show()
456 atomic_read(&server->num_waiters)); in cifs_debug_data_proc_show()
458 if (server->leaf_fullpath) { in cifs_debug_data_proc_show()
460 server->leaf_fullpath); in cifs_debug_data_proc_show()
465 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_debug_data_proc_show()
494 get_security_type_str(server->ops->select_sectype(server, ses->sectype))); in cifs_debug_data_proc_show()
501 if (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in cifs_debug_data_proc_show()
583 chan_server = ses->chans[j].server; in cifs_debug_data_proc_show()
625 struct TCP_Server_Info *server; in cifs_stats_proc_write() local
645 list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) { in cifs_stats_proc_write()
646 server->max_in_flight = 0; in cifs_stats_proc_write()
649 atomic_set(&server->num_cmds[i], 0); in cifs_stats_proc_write()
650 atomic_set(&server->smb2slowcmd[i], 0); in cifs_stats_proc_write()
651 server->time_per_cmd[i] = 0; in cifs_stats_proc_write()
652 server->slowest_cmd[i] = 0; in cifs_stats_proc_write()
653 server->fastest_cmd[0] = 0; in cifs_stats_proc_write()
656 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_stats_proc_write()
664 if (server->ops->clear_stats) in cifs_stats_proc_write()
665 server->ops->clear_stats(tcon); in cifs_stats_proc_write()
683 struct TCP_Server_Info *server; in cifs_stats_proc_show() local
713 list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) { in cifs_stats_proc_show()
714 seq_printf(m, "\nMax requests in flight: %d", server->max_in_flight); in cifs_stats_proc_show()
722 atomic_read(&server->num_cmds[j]), in cifs_stats_proc_show()
723 server->time_per_cmd[j], in cifs_stats_proc_show()
724 server->fastest_cmd[j], in cifs_stats_proc_show()
725 server->slowest_cmd[j]); in cifs_stats_proc_show()
727 if (atomic_read(&server->smb2slowcmd[j])) { in cifs_stats_proc_show()
728 spin_lock(&server->srv_lock); in cifs_stats_proc_show()
730 atomic_read(&server->smb2slowcmd[j]), in cifs_stats_proc_show()
731 server->hostname, j); in cifs_stats_proc_show()
732 spin_unlock(&server->srv_lock); in cifs_stats_proc_show()
735 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_stats_proc_show()
744 if (server->ops->print_stats) in cifs_stats_proc_show()
745 server->ops->print_stats(m, tcon); in cifs_stats_proc_show()