Home
last modified time | relevance | path

Searched refs:xdp_rxq (Results 1 – 25 of 55) sorted by relevance

123

/kernel/linux/linux-5.10/net/core/
Dxdp.c113 void xdp_rxq_info_unreg_mem_model(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_unreg_mem_model() argument
116 int id = xdp_rxq->mem.id; in xdp_rxq_info_unreg_mem_model()
118 if (xdp_rxq->reg_state != REG_STATE_REGISTERED) { in xdp_rxq_info_unreg_mem_model()
126 if (xdp_rxq->mem.type == MEM_TYPE_PAGE_POOL) { in xdp_rxq_info_unreg_mem_model()
135 void xdp_rxq_info_unreg(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_unreg() argument
138 if (xdp_rxq->reg_state == REG_STATE_UNUSED) in xdp_rxq_info_unreg()
141 WARN(!(xdp_rxq->reg_state == REG_STATE_REGISTERED), "Driver BUG"); in xdp_rxq_info_unreg()
143 xdp_rxq_info_unreg_mem_model(xdp_rxq); in xdp_rxq_info_unreg()
145 xdp_rxq->reg_state = REG_STATE_UNREGISTERED; in xdp_rxq_info_unreg()
146 xdp_rxq->dev = NULL; in xdp_rxq_info_unreg()
[all …]
/kernel/linux/linux-5.10/include/net/
Dxdp.h213 int xdp_rxq_info_reg(struct xdp_rxq_info *xdp_rxq,
215 void xdp_rxq_info_unreg(struct xdp_rxq_info *xdp_rxq);
216 void xdp_rxq_info_unused(struct xdp_rxq_info *xdp_rxq);
217 bool xdp_rxq_info_is_reg(struct xdp_rxq_info *xdp_rxq);
218 int xdp_rxq_info_reg_mem_model(struct xdp_rxq_info *xdp_rxq,
220 void xdp_rxq_info_unreg_mem_model(struct xdp_rxq_info *xdp_rxq);
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_base.c306 if (!xdp_rxq_info_is_reg(&ring->xdp_rxq)) in ice_setup_rx_ctx()
308 xdp_rxq_info_reg(&ring->xdp_rxq, ring->netdev, in ice_setup_rx_ctx()
313 xdp_rxq_info_unreg_mem_model(&ring->xdp_rxq); in ice_setup_rx_ctx()
322 err = xdp_rxq_info_reg_mem_model(&ring->xdp_rxq, in ice_setup_rx_ctx()
327 xsk_pool_set_rxq_info(ring->xsk_pool, &ring->xdp_rxq); in ice_setup_rx_ctx()
332 if (!xdp_rxq_info_is_reg(&ring->xdp_rxq)) in ice_setup_rx_ctx()
334 xdp_rxq_info_reg(&ring->xdp_rxq, in ice_setup_rx_ctx()
338 err = xdp_rxq_info_reg_mem_model(&ring->xdp_rxq, in ice_setup_rx_ctx()
Dice_txrx.h300 struct xdp_rxq_info xdp_rxq; member
Dice_txrx.c432 if (xdp_rxq_info_is_reg(&rx_ring->xdp_rxq)) in ice_free_rx_ring()
433 xdp_rxq_info_unreg(&rx_ring->xdp_rxq); in ice_free_rx_ring()
484 !xdp_rxq_info_is_reg(&rx_ring->xdp_rxq)) in ice_setup_rx_ring()
485 if (xdp_rxq_info_reg(&rx_ring->xdp_rxq, rx_ring->netdev, in ice_setup_rx_ring()
1100 xdp.rxq = &rx_ring->xdp_rxq; in ice_clean_rx_irq()
/kernel/linux/linux-5.10/Documentation/networking/
Dpage_pool.rst110 struct xdp_rxq_info xdp_rxq;
122 err = xdp_rxq_info_reg(&xdp_rxq, ndev, 0);
126 err = xdp_rxq_info_reg_mem_model(&xdp_rxq, MEM_TYPE_PAGE_POOL, page_pool);
159 xdp_rxq_info_unreg(&xdp_rxq);
/kernel/linux/linux-5.10/drivers/net/
Dveth.c65 struct xdp_rxq_info xdp_rxq; member
585 xdp.rxq = &rq->xdp_rxq; in veth_xdp_rcv_one()
715 xdp.rxq = &rq->xdp_rxq; in veth_xdp_rcv_skb()
924 if (!xdp_rxq_info_is_reg(&priv->rq[0].xdp_rxq)) { in veth_enable_xdp()
928 err = xdp_rxq_info_reg(&rq->xdp_rxq, dev, i); in veth_enable_xdp()
932 err = xdp_rxq_info_reg_mem_model(&rq->xdp_rxq, in veth_enable_xdp()
939 rq->xdp_mem = rq->xdp_rxq.mem; in veth_enable_xdp()
952 xdp_rxq_info_unreg(&priv->rq[i].xdp_rxq); in veth_enable_xdp()
955 xdp_rxq_info_unreg(&priv->rq[i].xdp_rxq); in veth_enable_xdp()
971 rq->xdp_rxq.mem = rq->xdp_mem; in veth_disable_xdp()
[all …]
Dtun.c158 struct xdp_rxq_info xdp_rxq; member
699 xdp_rxq_info_unreg(&tfile->xdp_rxq); in __tun_detach()
749 xdp_rxq_info_unreg(&tfile->xdp_rxq); in tun_detach_all()
756 xdp_rxq_info_unreg(&tfile->xdp_rxq); in tun_detach_all()
813 WARN_ON(!xdp_rxq_info_is_reg(&tfile->xdp_rxq)); in tun_attach()
815 if (tfile->xdp_rxq.queue_index != tfile->queue_index) in tun_attach()
816 tfile->xdp_rxq.queue_index = tfile->queue_index; in tun_attach()
819 err = xdp_rxq_info_reg(&tfile->xdp_rxq, in tun_attach()
823 err = xdp_rxq_info_reg_mem_model(&tfile->xdp_rxq, in tun_attach()
826 xdp_rxq_info_unreg(&tfile->xdp_rxq); in tun_attach()
[all …]
Dvirtio_net.c167 struct xdp_rxq_info xdp_rxq; member
759 xdp.rxq = &rq->xdp_rxq; in receive_small()
936 xdp.rxq = &rq->xdp_rxq; in receive_mergeable()
1561 err = xdp_rxq_info_reg(&vi->rq[i].xdp_rxq, dev, i); in virtnet_open()
1565 err = xdp_rxq_info_reg_mem_model(&vi->rq[i].xdp_rxq, in virtnet_open()
1568 xdp_rxq_info_unreg(&vi->rq[i].xdp_rxq); in virtnet_open()
1931 xdp_rxq_info_unreg(&vi->rq[i].xdp_rxq); in virtnet_close()
Dxen-netfront.c159 struct xdp_rxq_info xdp_rxq; member
984 xdp->rxq = &queue->xdp_rxq; in xennet_run_xdp()
2212 err = xdp_rxq_info_reg(&queue->xdp_rxq, queue->info->netdev, in xennet_create_page_pool()
2219 err = xdp_rxq_info_reg_mem_model(&queue->xdp_rxq, in xennet_create_page_pool()
2228 xdp_rxq_info_unreg(&queue->xdp_rxq); in xennet_create_page_pool()
/kernel/linux/linux-5.10/drivers/net/hyperv/
Dnetvsc_bpf.c51 xdp->rxq = &nvchan->xdp_rxq; in netvsc_run_xdp()
Dnetvsc.c126 xdp_rxq_info_unreg(&nvdev->chan_table[i].xdp_rxq); in free_netvsc_device()
1509 ret = xdp_rxq_info_reg(&nvchan->xdp_rxq, ndev, i); in netvsc_device_add()
1516 ret = xdp_rxq_info_reg_mem_model(&nvchan->xdp_rxq, in netvsc_device_add()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c286 if (xdp_rxq_info_reg(&ring->xdp_rxq, priv->dev, queue_index) < 0) in mlx4_en_create_rx_ring()
318 xdp_rxq_info_unreg(&ring->xdp_rxq); in mlx4_en_create_rx_ring()
442 xdp_rxq_info_unreg(&ring->xdp_rxq); in mlx4_en_destroy_rx_ring()
685 xdp.rxq = &ring->xdp_rxq; in mlx4_en_process_rx_cq()
/kernel/linux/linux-5.10/drivers/net/ethernet/socionext/
Dnetsec.c287 struct xdp_rxq_info xdp_rxq; member
949 xdp.rxq = &dring->xdp_rxq; in netsec_process_rx()
1217 if (xdp_rxq_info_is_reg(&dring->xdp_rxq)) in netsec_uninit_pkt_dring()
1218 xdp_rxq_info_unreg(&dring->xdp_rxq); in netsec_uninit_pkt_dring()
1307 err = xdp_rxq_info_reg(&dring->xdp_rxq, priv->ndev, 0); in netsec_setup_rx_dring()
1311 err = xdp_rxq_info_reg_mem_model(&dring->xdp_rxq, MEM_TYPE_PAGE_POOL, in netsec_setup_rx_dring()
/kernel/linux/linux-5.10/drivers/net/ethernet/amazon/ena/
Dena_netdev.h265 struct xdp_rxq_info xdp_rxq; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h390 struct xdp_rxq_info xdp_rxq; member
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.h252 struct xdp_rxq_info xdp_rxq; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf.h115 struct xdp_rxq_info xdp_rxq; member
Dethtool.c337 memset(&rx_ring[i].xdp_rxq, 0, in ixgbevf_set_ringparam()
338 sizeof(rx_ring[i].xdp_rxq)); in ixgbevf_set_ringparam()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c140 xdp.rxq = &rxr->xdp_rxq; in bnxt_rx_xdp()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth.h458 struct xdp_rxq_info xdp_rxq; member
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpsw_priv.h378 struct xdp_rxq_info xdp_rxq[CPSW_MAX_QUEUES]; member
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
Dqede.h370 struct xdp_rxq_info xdp_rxq; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/
Digb.h359 struct xdp_rxq_info xdp_rxq; member
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
Dmvneta.c680 struct xdp_rxq_info xdp_rxq; member
1973 if (xdp_rxq_info_is_reg(&rxq->xdp_rxq)) in mvneta_rxq_drop_pkts()
1974 xdp_rxq_info_unreg(&rxq->xdp_rxq); in mvneta_rxq_drop_pkts()
2344 .rxq = &rxq->xdp_rxq, in mvneta_rx_swbm()
3223 err = xdp_rxq_info_reg(&rxq->xdp_rxq, pp->dev, rxq->id); in mvneta_create_page_pool()
3227 err = xdp_rxq_info_reg_mem_model(&rxq->xdp_rxq, MEM_TYPE_PAGE_POOL, in mvneta_create_page_pool()
3235 xdp_rxq_info_unreg(&rxq->xdp_rxq); in mvneta_create_page_pool()

123