Lines Matching refs:percpu_stats
367 struct rtnl_link_stats64 *percpu_stats; in dpaa2_eth_xdp_tx_flush() local
371 percpu_stats = this_cpu_ptr(priv->percpu_stats); in dpaa2_eth_xdp_tx_flush()
377 percpu_stats->tx_packets += enqueued; in dpaa2_eth_xdp_tx_flush()
380 percpu_stats->tx_bytes += dpaa2_fd_get_len(&fds[i]); in dpaa2_eth_xdp_tx_flush()
385 percpu_stats->tx_errors++; in dpaa2_eth_xdp_tx_flush()
539 struct rtnl_link_stats64 *percpu_stats, in dpaa2_eth_receive_skb() argument
570 percpu_stats->rx_packets++; in dpaa2_eth_receive_skb()
571 percpu_stats->rx_bytes += dpaa2_fd_get_len(fd); in dpaa2_eth_receive_skb()
587 struct rtnl_link_stats64 *percpu_stats; in dpaa2_eth_rx() local
604 percpu_stats = this_cpu_ptr(priv->percpu_stats); in dpaa2_eth_rx()
610 percpu_stats->rx_packets++; in dpaa2_eth_rx()
611 percpu_stats->rx_bytes += dpaa2_fd_get_len(fd); in dpaa2_eth_rx()
640 dpaa2_eth_receive_skb(priv, ch, fd, vaddr, fq, percpu_stats, skb); in dpaa2_eth_rx()
649 percpu_stats->rx_dropped++; in dpaa2_eth_rx()
663 struct rtnl_link_stats64 *percpu_stats; in dpaa2_eth_rx_err() local
699 percpu_stats = this_cpu_ptr(priv->percpu_stats); in dpaa2_eth_rx_err()
700 percpu_stats->rx_errors++; in dpaa2_eth_rx_err()
1401 struct rtnl_link_stats64 *percpu_stats; in __dpaa2_eth_tx() local
1413 percpu_stats = this_cpu_ptr(priv->percpu_stats); in __dpaa2_eth_tx()
1425 percpu_stats->tx_dropped++; in __dpaa2_eth_tx()
1455 percpu_stats->tx_dropped++; in __dpaa2_eth_tx()
1504 percpu_stats->tx_errors++; in __dpaa2_eth_tx()
1509 percpu_stats->tx_packets += total_enqueued; in __dpaa2_eth_tx()
1510 percpu_stats->tx_bytes += fd_len; in __dpaa2_eth_tx()
1584 struct rtnl_link_stats64 *percpu_stats; in dpaa2_eth_tx_conf() local
1608 percpu_stats = this_cpu_ptr(priv->percpu_stats); in dpaa2_eth_tx_conf()
1610 percpu_stats->tx_errors++; in dpaa2_eth_tx_conf()
2369 struct rtnl_link_stats64 *percpu_stats; in dpaa2_eth_get_stats() local
2376 percpu_stats = per_cpu_ptr(priv->percpu_stats, i); in dpaa2_eth_get_stats()
2377 cpustats = (u64 *)percpu_stats; in dpaa2_eth_get_stats()
2860 struct rtnl_link_stats64 *percpu_stats; in dpaa2_eth_xdp_xmit() local
2875 percpu_stats = this_cpu_ptr(priv->percpu_stats); in dpaa2_eth_xdp_xmit()
2889 percpu_stats->tx_packets += enqueued; in dpaa2_eth_xdp_xmit()
2891 percpu_stats->tx_bytes += dpaa2_fd_get_len(&fds[i]); in dpaa2_eth_xdp_xmit()
4894 priv->percpu_stats = alloc_percpu(*priv->percpu_stats); in dpaa2_eth_probe()
4895 if (!priv->percpu_stats) { in dpaa2_eth_probe()
5016 free_percpu(priv->percpu_stats); in dpaa2_eth_probe()
5067 free_percpu(priv->percpu_stats); in dpaa2_eth_remove()