/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_port.c | 246 priv->xdp_stats.rx_xdp_drop = 0; in mlx4_en_DUMP_ETH_STATS() 247 priv->xdp_stats.rx_xdp_redirect = 0; in mlx4_en_DUMP_ETH_STATS() 248 priv->xdp_stats.rx_xdp_redirect_fail = 0; in mlx4_en_DUMP_ETH_STATS() 249 priv->xdp_stats.rx_xdp_tx = 0; in mlx4_en_DUMP_ETH_STATS() 250 priv->xdp_stats.rx_xdp_tx_full = 0; in mlx4_en_DUMP_ETH_STATS() 259 priv->xdp_stats.rx_xdp_drop += READ_ONCE(ring->xdp_drop); in mlx4_en_DUMP_ETH_STATS() 260 priv->xdp_stats.rx_xdp_redirect += READ_ONCE(ring->xdp_redirect); in mlx4_en_DUMP_ETH_STATS() 261 priv->xdp_stats.rx_xdp_redirect_fail += READ_ONCE(ring->xdp_redirect_fail); in mlx4_en_DUMP_ETH_STATS() 262 priv->xdp_stats.rx_xdp_tx += READ_ONCE(ring->xdp_tx); in mlx4_en_DUMP_ETH_STATS() 263 priv->xdp_stats in mlx4_en_DUMP_ETH_STATS() [all...] |
H A D | mlx4_en.h | 611 struct mlx4_en_xdp_stats xdp_stats; member
|
H A D | en_ethtool.c | 419 data[index++] = ((unsigned long *)&priv->xdp_stats)[i]; in mlx4_en_get_ethtool_stats()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | xdp_sample.bpf.c | 157 unsigned int drops, int sched, struct xdp_cpumap_stats *xdp_stats) in BPF_PROG() 171 NO_TEAR_ADD(rec->xdp_pass, xdp_stats->pass); in BPF_PROG() 172 NO_TEAR_ADD(rec->xdp_drop, xdp_stats->drop); in BPF_PROG() 173 NO_TEAR_ADD(rec->xdp_redirect, xdp_stats->redirect); in BPF_PROG() 156 BPF_PROG(tp_xdp_cpumap_kthread, int map_id, unsigned int processed, unsigned int drops, int sched, struct xdp_cpumap_stats *xdp_stats) BPF_PROG() argument
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | xdp.h | 180 int sched, struct xdp_cpumap_stats *xdp_stats), 182 TP_ARGS(map_id, processed, drops, sched, xdp_stats), 203 __entry->xdp_pass = xdp_stats->pass; 204 __entry->xdp_drop = xdp_stats->drop; 205 __entry->xdp_redirect = xdp_stats->redirect;
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | xdp.h | 193 int sched, struct xdp_cpumap_stats *xdp_stats), 195 TP_ARGS(map_id, processed, drops, sched, xdp_stats), 216 __entry->xdp_pass = xdp_stats->pass; 217 __entry->xdp_drop = xdp_stats->drop; 218 __entry->xdp_redirect = xdp_stats->redirect;
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_port.c | 246 priv->xdp_stats.rx_xdp_drop = 0; in mlx4_en_DUMP_ETH_STATS() 247 priv->xdp_stats.rx_xdp_tx = 0; in mlx4_en_DUMP_ETH_STATS() 248 priv->xdp_stats.rx_xdp_tx_full = 0; in mlx4_en_DUMP_ETH_STATS() 257 priv->xdp_stats.rx_xdp_drop += READ_ONCE(ring->xdp_drop); in mlx4_en_DUMP_ETH_STATS() 258 priv->xdp_stats.rx_xdp_tx += READ_ONCE(ring->xdp_tx); in mlx4_en_DUMP_ETH_STATS() 259 priv->xdp_stats.rx_xdp_tx_full += READ_ONCE(ring->xdp_tx_full); in mlx4_en_DUMP_ETH_STATS()
|
H A D | mlx4_en.h | 619 struct mlx4_en_xdp_stats xdp_stats; member
|
H A D | en_ethtool.c | 416 data[index++] = ((unsigned long *)&priv->xdp_stats)[i]; in mlx4_en_get_ethtool_stats()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | xdp_features.c | 240 unsigned int drops, int sched, struct xdp_cpumap_stats *xdp_stats) in BPF_PROG() 239 BPF_PROG(tp_xdp_cpumap_kthread, int map_id, unsigned int processed, unsigned int drops, int sched, struct xdp_cpumap_stats *xdp_stats) BPF_PROG() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_main.c | 1689 mvpp2_get_xdp_stats(struct mvpp2_port *port, struct mvpp2_pcpu_stats *xdp_stats) in mvpp2_get_xdp_stats() argument 1717 xdp_stats->xdp_redirect += xdp_redirect; in mvpp2_get_xdp_stats() 1718 xdp_stats->xdp_pass += xdp_pass; in mvpp2_get_xdp_stats() 1719 xdp_stats->xdp_drop += xdp_drop; in mvpp2_get_xdp_stats() 1720 xdp_stats->xdp_xmit += xdp_xmit; in mvpp2_get_xdp_stats() 1721 xdp_stats->xdp_xmit_err += xdp_xmit_err; in mvpp2_get_xdp_stats() 1722 xdp_stats->xdp_tx += xdp_tx; in mvpp2_get_xdp_stats() 1723 xdp_stats->xdp_tx_err += xdp_tx_err; in mvpp2_get_xdp_stats() 1729 struct mvpp2_pcpu_stats xdp_stats = {}; in mvpp2_read_stats() local 1760 mvpp2_get_xdp_stats(port, &xdp_stats); in mvpp2_read_stats() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_main.c | 2018 mvpp2_get_xdp_stats(struct mvpp2_port *port, struct mvpp2_pcpu_stats *xdp_stats) in mvpp2_get_xdp_stats() argument 2046 xdp_stats->xdp_redirect += xdp_redirect; in mvpp2_get_xdp_stats() 2047 xdp_stats->xdp_pass += xdp_pass; in mvpp2_get_xdp_stats() 2048 xdp_stats->xdp_drop += xdp_drop; in mvpp2_get_xdp_stats() 2049 xdp_stats->xdp_xmit += xdp_xmit; in mvpp2_get_xdp_stats() 2050 xdp_stats->xdp_xmit_err += xdp_xmit_err; in mvpp2_get_xdp_stats() 2051 xdp_stats->xdp_tx += xdp_tx; in mvpp2_get_xdp_stats() 2052 xdp_stats->xdp_tx_err += xdp_tx_err; in mvpp2_get_xdp_stats() 2058 struct mvpp2_pcpu_stats xdp_stats = {}; in mvpp2_read_stats() local 2089 mvpp2_get_xdp_stats(port, &xdp_stats); in mvpp2_read_stats() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.c | 42 offsetof(struct mtk_hw_stats, xdp_stats.x) / \ 1925 hw_stats->xdp_stats.tx_xdp_xmit += nxmit; in mtk_xdp_xmit() 1926 hw_stats->xdp_stats.tx_xdp_xmit_errors += num_frame - nxmit; in mtk_xdp_xmit() 1937 u64 *count = &hw_stats->xdp_stats.rx_xdp_drop; in mtk_xdp_run() 1950 count = &hw_stats->xdp_stats.rx_xdp_pass; in mtk_xdp_run() 1958 count = &hw_stats->xdp_stats.rx_xdp_redirect; in mtk_xdp_run() 1964 count = &hw_stats->xdp_stats.rx_xdp_tx_errors; in mtk_xdp_run() 1969 count = &hw_stats->xdp_stats.rx_xdp_tx; in mtk_xdp_run()
|
H A D | mtk_eth_soc.h | 676 struct mtk_xdp_stats xdp_stats; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/ |
H A D | fec_main.c | 2854 u64 xdp_stats[XDP_STATS_TOTAL] = { 0 }; in fec_enet_get_xdp_stats() local 2862 xdp_stats[j] += rxq->stats[j]; in fec_enet_get_xdp_stats() 2865 memcpy(data, xdp_stats, sizeof(xdp_stats)); in fec_enet_get_xdp_stats()
|