/kernel/linux/linux-5.10/net/core/ |
D | xdp.c | 113 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/ |
D | xdp.h | 213 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/ |
D | ice_base.c | 306 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()
|
D | ice_txrx.h | 300 struct xdp_rxq_info xdp_rxq; member
|
D | ice_txrx.c | 432 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/ |
D | page_pool.rst | 110 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/ |
D | veth.c | 65 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 …]
|
D | tun.c | 158 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 …]
|
D | virtio_net.c | 167 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()
|
D | xen-netfront.c | 159 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/ |
D | netvsc_bpf.c | 51 xdp->rxq = &nvchan->xdp_rxq; in netvsc_run_xdp()
|
D | netvsc.c | 126 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/ |
D | en_rx.c | 286 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/ |
D | netsec.c | 287 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/ |
D | ena_netdev.h | 265 struct xdp_rxq_info xdp_rxq; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.h | 390 struct xdp_rxq_info xdp_rxq; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_queues.h | 252 struct xdp_rxq_info xdp_rxq; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf.h | 115 struct xdp_rxq_info xdp_rxq; member
|
D | ethtool.c | 337 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/ |
D | bnxt_xdp.c | 140 xdp.rxq = &rxr->xdp_rxq; in bnxt_rx_xdp()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth.h | 458 struct xdp_rxq_info xdp_rxq; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
D | cpsw_priv.h | 378 struct xdp_rxq_info xdp_rxq[CPSW_MAX_QUEUES]; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/ |
D | qede.h | 370 struct xdp_rxq_info xdp_rxq; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/ |
D | igb.h | 359 struct xdp_rxq_info xdp_rxq; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/ |
D | mvneta.c | 680 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()
|