Home
last modified time | relevance | path

Searched refs:lb_stats (Results 1 – 2 of 2) sorted by relevance

/drivers/net/
Dloopback.c75 struct pcpu_lstats *lb_stats; in loopback_xmit() local
88 lb_stats = this_cpu_ptr(dev->lstats); in loopback_xmit()
92 u64_stats_update_begin(&lb_stats->syncp); in loopback_xmit()
93 lb_stats->bytes += len; in loopback_xmit()
94 lb_stats->packets++; in loopback_xmit()
95 u64_stats_update_end(&lb_stats->syncp); in loopback_xmit()
109 const struct pcpu_lstats *lb_stats; in loopback_get_stats64() local
113 lb_stats = per_cpu_ptr(dev->lstats, i); in loopback_get_stats64()
115 start = u64_stats_fetch_begin_bh(&lb_stats->syncp); in loopback_get_stats64()
116 tbytes = lb_stats->bytes; in loopback_get_stats64()
[all …]
/drivers/net/team/
Dteam_mode_loadbalance.c29 struct lb_stats { struct
34 struct lb_stats hash_stats[LB_TX_HASHTABLE_SIZE]; argument
39 struct lb_stats stats;
40 struct lb_stats last_stats;
73 struct lb_stats __percpu *pcpu_stats;
195 struct lb_stats *port_stats; in lb_update_tx_stats()
196 struct lb_stats *hash_stats; in lb_update_tx_stats()
387 ctx->data.bin_val.len = sizeof(struct lb_stats); in lb_hash_stats_get()
407 ctx->data.bin_val.len = sizeof(struct lb_stats); in lb_port_stats_get()
413 memcpy(&s_info->last_stats, &s_info->stats, sizeof(struct lb_stats)); in __lb_stats_info_refresh_prepare()
[all …]