• Home
  • Raw
  • Download

Lines Matching refs:stats

176 	free_percpu(v->stats);  in br_master_vlan_rcu_free()
177 v->stats = NULL; in br_master_vlan_rcu_free()
207 free_percpu(v->stats); in nbp_vlan_rcu_free()
208 v->stats = NULL; in nbp_vlan_rcu_free()
275 v->stats = in __vlan_add()
277 if (!v->stats) { in __vlan_add()
283 v->stats = masterv->stats; in __vlan_add()
331 if (v->stats && masterv->stats != v->stats) in __vlan_add()
332 free_percpu(v->stats); in __vlan_add()
333 v->stats = NULL; in __vlan_add()
433 struct pcpu_sw_netstats *stats; in br_handle_vlan() local
461 stats = this_cpu_ptr(v->stats); in br_handle_vlan()
462 u64_stats_update_begin(&stats->syncp); in br_handle_vlan()
463 stats->tx_bytes += skb->len; in br_handle_vlan()
464 stats->tx_packets++; in br_handle_vlan()
465 u64_stats_update_end(&stats->syncp); in br_handle_vlan()
495 struct pcpu_sw_netstats *stats; in __allowed_ingress() local
580 stats = this_cpu_ptr(v->stats); in __allowed_ingress()
581 u64_stats_update_begin(&stats->syncp); in __allowed_ingress()
582 stats->rx_bytes += skb->len; in __allowed_ingress()
583 stats->rx_packets++; in __allowed_ingress()
584 u64_stats_update_end(&stats->syncp); in __allowed_ingress()
735 vlan->stats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in br_vlan_add()
736 if (!vlan->stats) { in br_vlan_add()
748 free_percpu(vlan->stats); in br_vlan_add()
1318 struct pcpu_sw_netstats *stats) in br_vlan_get_stats() argument
1322 memset(stats, 0, sizeof(*stats)); in br_vlan_get_stats()
1328 cpu_stats = per_cpu_ptr(v->stats, i); in br_vlan_get_stats()
1337 stats->rx_packets += rxpackets; in br_vlan_get_stats()
1338 stats->rx_bytes += rxbytes; in br_vlan_get_stats()
1339 stats->tx_bytes += txbytes; in br_vlan_get_stats()
1340 stats->tx_packets += txpackets; in br_vlan_get_stats()
1723 struct pcpu_sw_netstats stats; in br_vlan_stats_fill() local
1730 br_vlan_get_stats(v, &stats); in br_vlan_stats_fill()
1731 if (nla_put_u64_64bit(skb, BRIDGE_VLANDB_STATS_RX_BYTES, stats.rx_bytes, in br_vlan_stats_fill()
1734 stats.rx_packets, BRIDGE_VLANDB_STATS_PAD) || in br_vlan_stats_fill()
1735 nla_put_u64_64bit(skb, BRIDGE_VLANDB_STATS_TX_BYTES, stats.tx_bytes, in br_vlan_stats_fill()
1738 stats.tx_packets, BRIDGE_VLANDB_STATS_PAD)) in br_vlan_stats_fill()