Searched refs:pcpu_stats (Results 1 – 14 of 14) sorted by relevance
/linux-4.4.14/include/linux/ |
D | if_macvlan.h | 44 struct vlan_pcpu_stats __percpu *pcpu_stats; member 71 struct vlan_pcpu_stats *pcpu_stats; in macvlan_count_rx() local 73 pcpu_stats = this_cpu_ptr(vlan->pcpu_stats); in macvlan_count_rx() 74 u64_stats_update_begin(&pcpu_stats->syncp); in macvlan_count_rx() 75 pcpu_stats->rx_packets++; in macvlan_count_rx() 76 pcpu_stats->rx_bytes += len; in macvlan_count_rx() 78 pcpu_stats->rx_multicast++; in macvlan_count_rx() 79 u64_stats_update_end(&pcpu_stats->syncp); in macvlan_count_rx() 81 this_cpu_inc(vlan->pcpu_stats->rx_errors); in macvlan_count_rx()
|
D | if_team.h | 177 struct team_pcpu_stats __percpu *pcpu_stats; member
|
D | netdevice.h | 2074 typeof(type) __percpu *pcpu_stats = alloc_percpu_gfp(type, gfp);\ 2075 if (pcpu_stats) { \ 2079 stat = per_cpu_ptr(pcpu_stats, __cpu); \ 2083 pcpu_stats; \
|
/linux-4.4.14/drivers/net/team/ |
D | team_mode_loadbalance.c | 63 struct lb_pcpu_stats __percpu *pcpu_stats; member 73 struct lb_stats __percpu *pcpu_stats; member 193 struct lb_pcpu_stats *pcpu_stats; in lb_update_tx_stats() local 197 pcpu_stats = this_cpu_ptr(lb_priv->pcpu_stats); in lb_update_tx_stats() 198 port_stats = this_cpu_ptr(lb_port_priv->pcpu_stats); in lb_update_tx_stats() 199 hash_stats = &pcpu_stats->hash_stats[hash]; in lb_update_tx_stats() 200 u64_stats_update_begin(&pcpu_stats->syncp); in lb_update_tx_stats() 203 u64_stats_update_end(&pcpu_stats->syncp); in lb_update_tx_stats() 450 struct lb_pcpu_stats *pcpu_stats; in lb_stats_refresh() local 473 pcpu_stats = per_cpu_ptr(lb_priv->pcpu_stats, i); in lb_stats_refresh() [all …]
|
D | team.c | 736 struct team_pcpu_stats *pcpu_stats; in team_handle_frame() local 738 pcpu_stats = this_cpu_ptr(team->pcpu_stats); in team_handle_frame() 739 u64_stats_update_begin(&pcpu_stats->syncp); in team_handle_frame() 740 pcpu_stats->rx_packets++; in team_handle_frame() 741 pcpu_stats->rx_bytes += skb->len; in team_handle_frame() 743 pcpu_stats->rx_multicast++; in team_handle_frame() 744 u64_stats_update_end(&pcpu_stats->syncp); in team_handle_frame() 748 this_cpu_inc(team->pcpu_stats->rx_dropped); in team_handle_frame() 1571 team->pcpu_stats = netdev_alloc_pcpu_stats(struct team_pcpu_stats); in team_init() 1572 if (!team->pcpu_stats) in team_init() [all …]
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/ |
D | core.c | 102 struct mlxsw_core_pcpu_stats __percpu *pcpu_stats; member 612 p = per_cpu_ptr(mlxsw_core->pcpu_stats, j); in mlxsw_core_rx_stats_dbg_read() 628 p = per_cpu_ptr(mlxsw_core->pcpu_stats, j); in mlxsw_core_rx_stats_dbg_read() 639 p = per_cpu_ptr(mlxsw_core->pcpu_stats, j); in mlxsw_core_rx_stats_dbg_read() 655 p = per_cpu_ptr(mlxsw_core->pcpu_stats, j); in mlxsw_core_rx_stats_dbg_read() 810 mlxsw_core->pcpu_stats = in mlxsw_core_bus_device_register() 812 if (!mlxsw_core->pcpu_stats) { in mlxsw_core_bus_device_register() 843 free_percpu(mlxsw_core->pcpu_stats); in mlxsw_core_bus_device_register() 860 free_percpu(mlxsw_core->pcpu_stats); in mlxsw_core_bus_device_unregister() 1190 struct mlxsw_core_pcpu_stats *pcpu_stats; in mlxsw_core_skb_receive() local [all …]
|
D | switchx2.c | 78 struct mlxsw_sx_port_pcpu_stats __percpu *pcpu_stats; member 296 struct mlxsw_sx_port_pcpu_stats *pcpu_stats; in mlxsw_sx_port_xmit() local 312 this_cpu_inc(mlxsw_sx_port->pcpu_stats->tx_dropped); in mlxsw_sx_port_xmit() 325 pcpu_stats = this_cpu_ptr(mlxsw_sx_port->pcpu_stats); in mlxsw_sx_port_xmit() 326 u64_stats_update_begin(&pcpu_stats->syncp); in mlxsw_sx_port_xmit() 327 pcpu_stats->tx_packets++; in mlxsw_sx_port_xmit() 328 pcpu_stats->tx_bytes += len; in mlxsw_sx_port_xmit() 329 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sx_port_xmit() 331 this_cpu_inc(mlxsw_sx_port->pcpu_stats->tx_dropped); in mlxsw_sx_port_xmit() 361 p = per_cpu_ptr(mlxsw_sx_port->pcpu_stats, i); in mlxsw_sx_port_get_stats64() [all …]
|
D | spectrum.c | 373 struct mlxsw_sp_port_pcpu_stats *pcpu_stats; in mlxsw_sp_port_xmit() local 389 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 396 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 408 pcpu_stats = this_cpu_ptr(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_port_xmit() 409 u64_stats_update_begin(&pcpu_stats->syncp); in mlxsw_sp_port_xmit() 410 pcpu_stats->tx_packets++; in mlxsw_sp_port_xmit() 411 pcpu_stats->tx_bytes += len; in mlxsw_sp_port_xmit() 412 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sp_port_xmit() 414 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 460 p = per_cpu_ptr(mlxsw_sp_port->pcpu_stats, i); in mlxsw_sp_port_get_stats64() [all …]
|
D | spectrum.h | 85 struct mlxsw_sp_port_pcpu_stats __percpu *pcpu_stats; member
|
/linux-4.4.14/drivers/net/ |
D | macvlan.c | 529 struct vlan_pcpu_stats *pcpu_stats; in macvlan_start_xmit() local 531 pcpu_stats = this_cpu_ptr(vlan->pcpu_stats); in macvlan_start_xmit() 532 u64_stats_update_begin(&pcpu_stats->syncp); in macvlan_start_xmit() 533 pcpu_stats->tx_packets++; in macvlan_start_xmit() 534 pcpu_stats->tx_bytes += len; in macvlan_start_xmit() 535 u64_stats_update_end(&pcpu_stats->syncp); in macvlan_start_xmit() 537 this_cpu_inc(vlan->pcpu_stats->tx_dropped); in macvlan_start_xmit() 810 vlan->pcpu_stats = netdev_alloc_pcpu_stats(struct vlan_pcpu_stats); in macvlan_init() 811 if (!vlan->pcpu_stats) in macvlan_init() 822 free_percpu(vlan->pcpu_stats); in macvlan_uninit() [all …]
|
D | macvtap.c | 842 this_cpu_inc(vlan->pcpu_stats->tx_dropped); in macvtap_get_user()
|
/linux-4.4.14/drivers/net/ipvlan/ |
D | ipvlan_main.c | 126 ipvlan->pcpu_stats = alloc_percpu(struct ipvl_pcpu_stats); in ipvlan_init() 127 if (!ipvlan->pcpu_stats) in ipvlan_init() 138 free_percpu(ipvlan->pcpu_stats); in ipvlan_uninit() 190 pcptr = this_cpu_ptr(ipvlan->pcpu_stats); in ipvlan_start_xmit() 197 this_cpu_inc(ipvlan->pcpu_stats->tx_drps); in ipvlan_start_xmit() 251 if (ipvlan->pcpu_stats) { in ipvlan_get_stats64() 259 pcptr = per_cpu_ptr(ipvlan->pcpu_stats, idx); in ipvlan_get_stats64()
|
D | ipvlan.h | 70 struct ipvl_pcpu_stats __percpu *pcpu_stats; member
|
D | ipvlan_core.c | 28 pcptr = this_cpu_ptr(ipvlan->pcpu_stats); in ipvlan_count_rx() 36 this_cpu_inc(ipvlan->pcpu_stats->rx_errs); in ipvlan_count_rx()
|