Lines Matching refs:xdp
18 if (priv->rx_ring[i]->xdp.prog) in enetc_num_stack_tx_queues()
523 rx_ring->xdp.xdp_tx_in_flight--; in enetc_recycle_xdp_tx_buff()
626 bool xdp = !!(rx_ring->xdp.prog); in enetc_new_page() local
635 rx_swbd->dir = xdp ? DMA_BIDIRECTIONAL : DMA_FROM_DEVICE; in enetc_new_page()
1165 xdp_init_buff(xdp_buff, ENETC_RXB_TRUESIZE, &rx_ring->xdp.rxq); in enetc_build_xdp_buff()
1308 rx_ring->xdp.xdp_tx_in_flight += xdp_tx_bd_cnt; in enetc_clean_rx_ring_xdp()
1368 if (cleaned_cnt > rx_ring->xdp.xdp_tx_in_flight) in enetc_clean_rx_ring_xdp()
1370 rx_ring->xdp.xdp_tx_in_flight); in enetc_clean_rx_ring_xdp()
1391 prog = rx_ring->xdp.prog; in enetc_poll()
1785 if (rx_ring->xdp.prog) in enetc_setup_rxbdr()
2219 rx_ring->xdp.prog = prog; in enetc_setup_xdp_prog()
2233 int enetc_setup_bpf(struct net_device *dev, struct netdev_bpf *xdp) in enetc_setup_bpf() argument
2235 switch (xdp->command) { in enetc_setup_bpf()
2237 return enetc_setup_xdp_prog(dev, xdp->prog, xdp->extack); in enetc_setup_bpf()
2449 err = xdp_rxq_info_reg(&bdr->xdp.rxq, priv->ndev, i, 0); in enetc_alloc_msix()
2455 err = xdp_rxq_info_reg_mem_model(&bdr->xdp.rxq, in enetc_alloc_msix()
2458 xdp_rxq_info_unreg(&bdr->xdp.rxq); in enetc_alloc_msix()
2498 xdp_rxq_info_unreg_mem_model(&rx_ring->xdp.rxq); in enetc_alloc_msix()
2499 xdp_rxq_info_unreg(&rx_ring->xdp.rxq); in enetc_alloc_msix()
2518 xdp_rxq_info_unreg_mem_model(&rx_ring->xdp.rxq); in enetc_free_msix()
2519 xdp_rxq_info_unreg(&rx_ring->xdp.rxq); in enetc_free_msix()