Lines Matching defs:drbd_connection

615 struct drbd_connection {  struct
616 struct list_head connections;
617 struct drbd_resource *resource;
619 struct dentry *debugfs_conn;
620 struct dentry *debugfs_conn_callback_history;
621 struct dentry *debugfs_conn_oldest_requests;
623 struct kref kref;
624 struct idr peer_devices; /* volume number to peer device mapping */
625 enum drbd_conns cstate; /* Only C_STANDALONE to C_WF_REPORT_PARAMS */
626 struct mutex cstate_mutex; /* Protects graceful disconnects */
627 unsigned int connect_cnt; /* Inc each time a connection is established */
629 unsigned long flags;
630 struct net_conf *net_conf; /* content protected by rcu */
631 wait_queue_head_t ping_wait; /* Woken upon reception of a ping, and a state change */
633 struct sockaddr_storage my_addr;
634 int my_addr_len;
635 struct sockaddr_storage peer_addr;
636 int peer_addr_len;
638 struct drbd_socket data; /* data/barrier/cstate/parameter packets */
639 struct drbd_socket meta; /* ping/ack (metadata) packets */
640 int agreed_pro_version; /* actually used protocol version */
641 u32 agreed_features;
642 unsigned long last_received; /* in jiffies, either socket */
643 unsigned int ko_count;
645 struct list_head transfer_log; /* all requests not yet fully processed */
647 struct crypto_shash *cram_hmac_tfm;
648 …pto_shash *integrity_tfm; /* checksums we compute, updates protected by connection->data->mutex */
649 …t crypto_shash *peer_integrity_tfm; /* checksums we verify, only accessed from receiver thread */
650 struct crypto_shash *csums_tfm;
651 struct crypto_shash *verify_tfm;
652 void *int_dig_in;
653 void *int_dig_vv;
656 struct drbd_epoch *current_epoch;
657 spinlock_t epoch_lock;
658 unsigned int epochs;
659 atomic_t current_tle_nr; /* transfer log epoch number */
660 unsigned current_tle_writes; /* writes seen within this tl epoch */
662 unsigned long last_reconnect_jif;
664 struct blk_plug receiver_plug;
665 struct drbd_thread receiver;
666 struct drbd_thread worker;
667 struct drbd_thread ack_receiver;
668 struct workqueue_struct *ack_sender;
673 struct drbd_request *req_next; /* DRBD 9: todo.req_next */
674 struct drbd_request *req_ack_pending;
675 struct drbd_request *req_not_net_done;
678 struct drbd_work_queue sender_work;
703 static inline bool has_net_conf(struct drbd_connection *connection) in has_net_conf() argument