Home
last modified time | relevance | path

Searched refs:xdp_act (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/sfc/siena/
Drx.c259 u32 xdp_act; in efx_do_xdp() local
294 xdp_act = bpf_prog_run_xdp(xdp_prog, &xdp); in efx_do_xdp()
298 switch (xdp_act) { in efx_do_xdp()
320 trace_xdp_exception(efx->net_dev, xdp_prog, xdp_act); in efx_do_xdp()
334 trace_xdp_exception(efx->net_dev, xdp_prog, xdp_act); in efx_do_xdp()
341 bpf_warn_invalid_xdp_action(efx->net_dev, xdp_prog, xdp_act); in efx_do_xdp()
344 trace_xdp_exception(efx->net_dev, xdp_prog, xdp_act); in efx_do_xdp()
348 trace_xdp_exception(efx->net_dev, xdp_prog, xdp_act); in efx_do_xdp()
356 return xdp_act == XDP_PASS; in efx_do_xdp()
/linux-6.12.1/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-xsk.c41 u32 xdp_act = XDP_PASS; in dpaa2_xsk_run_xdp() local
59 xdp_act = bpf_prog_run_xdp(xdp_prog, xdp_buff); in dpaa2_xsk_run_xdp()
65 if (likely(xdp_act == XDP_REDIRECT)) { in dpaa2_xsk_run_xdp()
78 switch (xdp_act) { in dpaa2_xsk_run_xdp()
85 bpf_warn_invalid_xdp_action(priv->net_dev, xdp_prog, xdp_act); in dpaa2_xsk_run_xdp()
88 trace_xdp_exception(priv->net_dev, xdp_prog, xdp_act); in dpaa2_xsk_run_xdp()
97 ch->xdp.res |= xdp_act; in dpaa2_xsk_run_xdp()
99 return xdp_act; in dpaa2_xsk_run_xdp()
114 u32 xdp_act; in dpaa2_xsk_rx() local
127 xdp_act = dpaa2_xsk_run_xdp(priv, ch, fq, (struct dpaa2_fd *)fd, vaddr); in dpaa2_xsk_rx()
[all …]
Ddpaa2-eth.c433 u32 xdp_act = XDP_PASS; in dpaa2_eth_run_xdp() local
445 xdp_act = bpf_prog_run_xdp(xdp_prog, &xdp); in dpaa2_eth_run_xdp()
451 switch (xdp_act) { in dpaa2_eth_run_xdp()
458 bpf_warn_invalid_xdp_action(priv->net_dev, xdp_prog, xdp_act); in dpaa2_eth_run_xdp()
461 trace_xdp_exception(priv->net_dev, xdp_prog, xdp_act); in dpaa2_eth_run_xdp()
494 ch->xdp.res |= xdp_act; in dpaa2_eth_run_xdp()
496 return xdp_act; in dpaa2_eth_run_xdp()
592 u32 xdp_act; in dpaa2_eth_rx() local
608 xdp_act = dpaa2_eth_run_xdp(priv, ch, fq, (struct dpaa2_fd *)fd, vaddr); in dpaa2_eth_rx()
609 if (xdp_act != XDP_PASS) { in dpaa2_eth_rx()
/linux-6.12.1/drivers/net/ethernet/sfc/
Drx.c259 u32 xdp_act; in efx_do_xdp() local
294 xdp_act = bpf_prog_run_xdp(xdp_prog, &xdp); in efx_do_xdp()
298 switch (xdp_act) { in efx_do_xdp()
320 trace_xdp_exception(efx->net_dev, xdp_prog, xdp_act); in efx_do_xdp()
334 trace_xdp_exception(efx->net_dev, xdp_prog, xdp_act); in efx_do_xdp()
341 bpf_warn_invalid_xdp_action(efx->net_dev, xdp_prog, xdp_act); in efx_do_xdp()
344 trace_xdp_exception(efx->net_dev, xdp_prog, xdp_act); in efx_do_xdp()
348 trace_xdp_exception(efx->net_dev, xdp_prog, xdp_act); in efx_do_xdp()
356 return xdp_act == XDP_PASS; in efx_do_xdp()
/linux-6.12.1/drivers/net/ethernet/google/gve/
Dgve_rx.c752 int xdp_act) in gve_xdp_done() argument
758 switch (xdp_act) { in gve_xdp_done()
788 if ((u32)xdp_act < GVE_XDP_ACTIONS) in gve_xdp_done()
789 rx->xdp_actions[xdp_act]++; in gve_xdp_done()
856 int xdp_act; in gve_rx() local
863 xdp_act = bpf_prog_run_xdp(xprog, &xdp); in gve_rx()
864 if (xdp_act != XDP_PASS) { in gve_rx()
865 gve_xdp_done(priv, rx, &xdp, xprog, xdp_act); in gve_rx()
/linux-6.12.1/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c2413 np->xdp_act = 0; in dpaa_eth_poll()
2417 if (np->xdp_act & XDP_REDIRECT) in dpaa_eth_poll()
2577 u32 xdp_act; in dpaa_run_xdp() local
2603 xdp_act = bpf_prog_run_xdp(xdp_prog, &xdp); in dpaa_run_xdp()
2608 switch (xdp_act) { in dpaa_run_xdp()
2640 trace_xdp_exception(priv->net_dev, xdp_prog, xdp_act); in dpaa_run_xdp()
2645 bpf_warn_invalid_xdp_action(priv->net_dev, xdp_prog, xdp_act); in dpaa_run_xdp()
2648 trace_xdp_exception(priv->net_dev, xdp_prog, xdp_act); in dpaa_run_xdp()
2656 return xdp_act; in dpaa_run_xdp()
2681 u32 xdp_act; in rx_default_dqrr() local
[all …]
Ddpaa_eth.h102 int xdp_act; member
/linux-6.12.1/drivers/net/ethernet/freescale/enetc/
Denetc.c1540 u32 xdp_act; in enetc_clean_rx_ring_xdp() local
1581 xdp_act = bpf_prog_run_xdp(prog, &xdp_buff); in enetc_clean_rx_ring_xdp()
1583 switch (xdp_act) { in enetc_clean_rx_ring_xdp()
1585 bpf_warn_invalid_xdp_action(rx_ring->ndev, prog, xdp_act); in enetc_clean_rx_ring_xdp()
1588 trace_xdp_exception(rx_ring->ndev, prog, xdp_act); in enetc_clean_rx_ring_xdp()
/linux-6.12.1/drivers/net/ethernet/socionext/
Dnetsec.c960 u32 xdp_act = 0; in netsec_process_rx() local
1027 xdp_act |= xdp_result; in netsec_process_rx()
1073 netsec_finalize_xdp_rx(priv, xdp_act, xdp_xmit); in netsec_process_rx()