Lines Matching defs:drbd_connection

694 struct drbd_connection {  struct
695 struct list_head connections;
696 struct drbd_resource *resource;
698 struct dentry *debugfs_conn;
699 struct dentry *debugfs_conn_callback_history;
700 struct dentry *debugfs_conn_oldest_requests;
702 struct kref kref;
703 struct idr peer_devices; /* volume number to peer device mapping */
704 enum drbd_conns cstate; /* Only C_STANDALONE to C_WF_REPORT_PARAMS */
705 struct mutex cstate_mutex; /* Protects graceful disconnects */
706 unsigned int connect_cnt; /* Inc each time a connection is established */
708 unsigned long flags;
709 struct net_conf *net_conf; /* content protected by rcu */
710 wait_queue_head_t ping_wait; /* Woken upon reception of a ping, and a state change */
712 struct sockaddr_storage my_addr;
713 int my_addr_len;
714 struct sockaddr_storage peer_addr;
715 int peer_addr_len;
717 struct drbd_socket data; /* data/barrier/cstate/parameter packets */
718 struct drbd_socket meta; /* ping/ack (metadata) packets */
719 int agreed_pro_version; /* actually used protocol version */
720 u32 agreed_features;
721 unsigned long last_received; /* in jiffies, either socket */
722 unsigned int ko_count;
724 struct list_head transfer_log; /* all requests not yet fully processed */
726 struct crypto_shash *cram_hmac_tfm;
727 …pto_ahash *integrity_tfm; /* checksums we compute, updates protected by connection->data->mutex */
728 …t crypto_ahash *peer_integrity_tfm; /* checksums we verify, only accessed from receiver thread */
729 struct crypto_ahash *csums_tfm;
730 struct crypto_ahash *verify_tfm;
731 void *int_dig_in;
732 void *int_dig_vv;
735 struct drbd_epoch *current_epoch;
736 spinlock_t epoch_lock;
737 unsigned int epochs;
738 atomic_t current_tle_nr; /* transfer log epoch number */
739 unsigned current_tle_writes; /* writes seen within this tl epoch */
741 unsigned long last_reconnect_jif;
743 struct blk_plug receiver_plug;
744 struct drbd_thread receiver;
745 struct drbd_thread worker;
746 struct drbd_thread ack_receiver;
747 struct workqueue_struct *ack_sender;
752 struct drbd_request *req_next; /* DRBD 9: todo.req_next */
753 struct drbd_request *req_ack_pending;
754 struct drbd_request *req_not_net_done;
757 struct drbd_work_queue sender_work;
782 static inline bool has_net_conf(struct drbd_connection *connection) in has_net_conf() argument