Searched refs:xdp_stats (Results 1 – 8 of 8) sorted by relevance
| /linux/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.rx_xdp_tx_full += READ_ONCE(ring->xdp_tx_full); in mlx4_en_DUMP_ETH_STATS()
|
| /linux/samples/bpf/ |
| H A D | xdp_sample.bpf.c | 157 unsigned int drops, int sched, struct xdp_cpumap_stats *xdp_stats) in BPF_PROG() argument 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()
|
| /linux/include/trace/events/ |
| H A D | xdp.h | 175 int sched, struct xdp_cpumap_stats *xdp_stats), 177 TP_ARGS(map_id, processed, drops, sched, xdp_stats), 198 __entry->xdp_pass = xdp_stats->pass; 199 __entry->xdp_drop = xdp_stats->drop; 200 __entry->xdp_redirect = xdp_stats->redirect;
|
| /linux/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() argument
|
| /linux/tools/testing/selftests/net/lib/ |
| H A D | xdp_native.bpf.c | 40 } xdp_stats; 38 } xdp_stats; global() variable
|
| /linux/drivers/net/ethernet/mediatek/ |
| H A D | mtk_eth_soc.c | 43 offsetof(struct mtk_hw_stats, xdp_stats.x) / \ 2108 hw_stats->xdp_stats.tx_xdp_xmit += nxmit; in mtk_xdp_xmit() 2109 hw_stats->xdp_stats.tx_xdp_xmit_errors += num_frame - nxmit; in mtk_xdp_xmit() 2120 u64 *count = &hw_stats->xdp_stats.rx_xdp_drop; in mtk_xdp_run() 2133 count = &hw_stats->xdp_stats.rx_xdp_pass; in mtk_xdp_run() 2141 count = &hw_stats->xdp_stats.rx_xdp_redirect; in mtk_xdp_run() 2147 count = &hw_stats->xdp_stats.rx_xdp_tx_errors; in mtk_xdp_run() 2152 count = &hw_stats->xdp_stats.rx_xdp_tx; in mtk_xdp_run()
|
| H A D | mtk_eth_soc.h | 724 struct mtk_xdp_stats xdp_stats; member
|
| /linux/drivers/net/ethernet/freescale/ |
| H A D | fec_main.c | 2985 u64 xdp_stats[XDP_STATS_TOTAL] = { 0 }; in fec_enet_get_xdp_stats() local 2993 xdp_stats[j] += rxq->stats[j]; in fec_enet_get_xdp_stats() 2996 memcpy(data, xdp_stats, sizeof(xdp_stats)); in fec_enet_get_xdp_stats()
|