LNET_NI_STATE_DELETING
};
+struct lnet_element_stats {
+ atomic_t send_count;
+ atomic_t recv_count;
+ atomic_t drop_count;
+};
+
struct lnet_net {
/* chain on the ln_nets */
struct list_head net_list;
/* lnd tunables set explicitly */
bool ni_lnd_tunables_set;
+ /* NI statistics */
+ struct lnet_element_stats ni_stats;
+
/* physical device CPT */
int dev_cpt;
} lnet_rc_data_t;
struct lnet_peer_ni {
- /* cahian on peer_net */
+ /* chain on peer_net */
struct list_head lpni_on_peer_net_list;
/* chain on remote peer list */
struct list_head lpni_on_remote_peer_ni_list;
struct list_head lpni_rtr_list;
/* pointer to peer net I'm part of */
struct lnet_peer_net *lpni_peer_net;
+ /* statistics kept on each peer NI */
+ struct lnet_element_stats lpni_stats;
/* # tx credits available */
int lpni_txcredits;
/* low water mark */