Home
last modified time | relevance | path

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

1234

/linux-6.12.1/net/core/
Dxdp.c136 void xdp_rxq_info_unreg_mem_model(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_unreg_mem_model() argument
138 if (xdp_rxq->reg_state != REG_STATE_REGISTERED) { in xdp_rxq_info_unreg_mem_model()
143 xdp_unreg_mem_model(&xdp_rxq->mem); in xdp_rxq_info_unreg_mem_model()
147 void xdp_rxq_info_unreg(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_unreg() argument
150 if (xdp_rxq->reg_state == REG_STATE_UNUSED) in xdp_rxq_info_unreg()
153 xdp_rxq_info_unreg_mem_model(xdp_rxq); in xdp_rxq_info_unreg()
155 xdp_rxq->reg_state = REG_STATE_UNREGISTERED; in xdp_rxq_info_unreg()
156 xdp_rxq->dev = NULL; in xdp_rxq_info_unreg()
160 static void xdp_rxq_info_init(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_init() argument
162 memset(xdp_rxq, 0, sizeof(*xdp_rxq)); in xdp_rxq_info_init()
[all …]
/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_xdp.c83 &port->xdp_rxq); in lan966x_xdp_run()
128 return xdp_rxq_info_reg(&port->xdp_rxq, port->dev, 0, in lan966x_xdp_port_init()
134 if (xdp_rxq_info_is_reg(&port->xdp_rxq)) in lan966x_xdp_port_deinit()
135 xdp_rxq_info_unreg(&port->xdp_rxq); in lan966x_xdp_port_deinit()
/linux-6.12.1/include/net/
Dxdp.h334 int __xdp_rxq_info_reg(struct xdp_rxq_info *xdp_rxq,
338 xdp_rxq_info_reg(struct xdp_rxq_info *xdp_rxq, in xdp_rxq_info_reg() argument
342 return __xdp_rxq_info_reg(xdp_rxq, dev, queue_index, napi_id, 0); in xdp_rxq_info_reg()
345 void xdp_rxq_info_unreg(struct xdp_rxq_info *xdp_rxq);
346 void xdp_rxq_info_unused(struct xdp_rxq_info *xdp_rxq);
347 bool xdp_rxq_info_is_reg(struct xdp_rxq_info *xdp_rxq);
348 int xdp_rxq_info_reg_mem_model(struct xdp_rxq_info *xdp_rxq,
350 void xdp_rxq_info_unreg_mem_model(struct xdp_rxq_info *xdp_rxq);
Dnetdev_rx_queue.h13 struct xdp_rxq_info xdp_rxq; member
/linux-6.12.1/drivers/net/ethernet/aquantia/atlantic/
Daq_vec.c149 if (xdp_rxq_info_reg(&ring->xdp_rxq, in aq_vec_ring_alloc()
155 if (xdp_rxq_info_reg_mem_model(&ring->xdp_rxq, in aq_vec_ring_alloc()
157 xdp_rxq_info_unreg(&ring->xdp_rxq); in aq_vec_ring_alloc()
164 xdp_rxq_info_unreg(&ring->xdp_rxq); in aq_vec_ring_alloc()
309 xdp_rxq_info_unreg(&ring[AQ_VEC_RX_ID].xdp_rxq); in aq_vec_ring_free()
Daq_ring.h154 struct xdp_rxq_info xdp_rxq; member
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_base.c547 if (!xdp_rxq_info_is_reg(&ring->xdp_rxq)) { in ice_vsi_cfg_rxq()
548 err = __xdp_rxq_info_reg(&ring->xdp_rxq, ring->netdev, in ice_vsi_cfg_rxq()
558 xdp_rxq_info_unreg(&ring->xdp_rxq); in ice_vsi_cfg_rxq()
562 err = __xdp_rxq_info_reg(&ring->xdp_rxq, ring->netdev, in ice_vsi_cfg_rxq()
568 err = xdp_rxq_info_reg_mem_model(&ring->xdp_rxq, in ice_vsi_cfg_rxq()
573 xsk_pool_set_rxq_info(ring->xsk_pool, &ring->xdp_rxq); in ice_vsi_cfg_rxq()
579 if (!xdp_rxq_info_is_reg(&ring->xdp_rxq)) { in ice_vsi_cfg_rxq()
580 err = __xdp_rxq_info_reg(&ring->xdp_rxq, ring->netdev, in ice_vsi_cfg_rxq()
588 err = xdp_rxq_info_reg_mem_model(&ring->xdp_rxq, in ice_vsi_cfg_rxq()
596 xdp_init_buff(&ring->xdp, ice_get_frame_sz(ring), &ring->xdp_rxq); in ice_vsi_cfg_rxq()
/linux-6.12.1/drivers/net/ethernet/amazon/ena/
Dena_xdp.c200 rc = xdp_rxq_info_reg(&rx_ring->xdp_rxq, rx_ring->netdev, rx_ring->qid, 0); in ena_xdp_register_rxq_info()
211 rc = xdp_rxq_info_reg_mem_model(&rx_ring->xdp_rxq, MEM_TYPE_PAGE_SHARED, NULL); in ena_xdp_register_rxq_info()
217 xdp_rxq_info_unreg(&rx_ring->xdp_rxq); in ena_xdp_register_rxq_info()
229 xdp_rxq_info_unreg_mem_model(&rx_ring->xdp_rxq); in ena_xdp_unregister_rxq_info()
230 xdp_rxq_info_unreg(&rx_ring->xdp_rxq); in ena_xdp_unregister_rxq_info()
/linux-6.12.1/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-xsk.c56 xdp_buff->rxq = &ch->xdp_rxq; in dpaa2_xsk_run_xdp()
191 err = xdp_rxq_info_reg_mem_model(&ch->xdp_rxq, in dpaa2_xsk_disable_pool()
252 err = xdp_rxq_info_reg_mem_model(&ch->xdp_rxq, MEM_TYPE_XSK_BUFF_POOL, NULL); in dpaa2_xsk_enable_pool()
257 xsk_pool_set_rxq_info(pool, &ch->xdp_rxq); in dpaa2_xsk_enable_pool()
290 err2 = xdp_rxq_info_reg_mem_model(&priv->channel[qid]->xdp_rxq, in dpaa2_xsk_enable_pool()
/linux-6.12.1/Documentation/networking/
Dpage_pool.rst134 struct xdp_rxq_info xdp_rxq;
147 err = xdp_rxq_info_reg(&xdp_rxq, ndev, 0);
151 err = xdp_rxq_info_reg_mem_model(&xdp_rxq, MEM_TYPE_PAGE_POOL, page_pool);
199 xdp_rxq_info_unreg(&xdp_rxq);
/linux-6.12.1/drivers/net/
Dveth.c69 struct xdp_rxq_info xdp_rxq; member
625 xdp->rxq = &rq->xdp_rxq; in veth_xdp_rcv_one()
742 xdp_init_buff(xdp, frame_sz, &rq->xdp_rxq); in veth_convert_skb_to_xdp_buff()
1079 err = xdp_rxq_info_reg(&rq->xdp_rxq, dev, i, rq->xdp_napi.napi_id); in veth_enable_xdp_range()
1083 err = xdp_rxq_info_reg_mem_model(&rq->xdp_rxq, in veth_enable_xdp_range()
1090 rq->xdp_mem = rq->xdp_rxq.mem; in veth_enable_xdp_range()
1095 xdp_rxq_info_unreg(&priv->rq[i].xdp_rxq); in veth_enable_xdp_range()
1100 xdp_rxq_info_unreg(&rq->xdp_rxq); in veth_enable_xdp_range()
1117 rq->xdp_rxq.mem = rq->xdp_mem; in veth_disable_xdp_range()
1118 xdp_rxq_info_unreg(&rq->xdp_rxq); in veth_disable_xdp_range()
[all …]
Dtun.c149 struct xdp_rxq_info xdp_rxq; member
656 ntfile->xdp_rxq.queue_index = index; in __tun_detach()
688 xdp_rxq_info_unreg(&tfile->xdp_rxq); in __tun_detach()
738 xdp_rxq_info_unreg(&tfile->xdp_rxq); in tun_detach_all()
745 xdp_rxq_info_unreg(&tfile->xdp_rxq); in tun_detach_all()
802 WARN_ON(!xdp_rxq_info_is_reg(&tfile->xdp_rxq)); in tun_attach()
804 if (tfile->xdp_rxq.queue_index != tfile->queue_index) in tun_attach()
805 tfile->xdp_rxq.queue_index = tfile->queue_index; in tun_attach()
808 err = xdp_rxq_info_reg(&tfile->xdp_rxq, in tun_attach()
812 err = xdp_rxq_info_reg_mem_model(&tfile->xdp_rxq, in tun_attach()
[all …]
/linux-6.12.1/drivers/net/ethernet/fungible/funeth/
Dfuneth_rx.c151 &q->xdp_rxq); in fun_run_xdp()
704 err = xdp_rxq_info_reg(&q->xdp_rxq, q->netdev, q->qidx, in fun_rxq_create_dev()
709 err = xdp_rxq_info_reg_mem_model(&q->xdp_rxq, MEM_TYPE_PAGE_SHARED, in fun_rxq_create_dev()
757 xdp_rxq_info_unreg(&q->xdp_rxq); in fun_rxq_create_dev()
779 xdp_rxq_info_unreg(&q->xdp_rxq); in fun_rxq_free_dev()
Dfuneth_txrx.h198 struct xdp_rxq_info xdp_rxq; member
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/
Dnfp_net_dp.c257 xdp_rxq_info_unreg(&rx_ring->xdp_rxq); in nfp_net_rx_ring_free()
299 err = xdp_rxq_info_reg(&rx_ring->xdp_rxq, dp->netdev, in nfp_net_rx_ring_alloc()
304 err = xdp_rxq_info_reg_mem_model(&rx_ring->xdp_rxq, mem_type, NULL); in nfp_net_rx_ring_alloc()
/linux-6.12.1/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.h43 struct xdp_rxq_info xdp_rxq; member
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.h144 struct xdp_rxq_info xdp_rxq; member
/linux-6.12.1/drivers/net/vmxnet3/
Dvmxnet3_xdp.c341 xdp_init_buff(&xdp, PAGE_SIZE, &rq->xdp_rxq); in vmxnet3_process_xdp_small()
388 xdp_init_buff(&xdp, PAGE_SIZE, &rq->xdp_rxq); in vmxnet3_process_xdp()
/linux-6.12.1/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.h59 struct xdp_rxq_info xdp_rxq[AM65_CPSW_MAX_QUEUES]; member
/linux-6.12.1/drivers/net/ethernet/microsoft/mana/
Dmana_bpf.c93 xdp_init_buff(xdp, PAGE_SIZE, &rxq->xdp_rxq); in mana_run_xdp()
/linux-6.12.1/drivers/net/ethernet/engleder/
Dtsnep.h140 struct xdp_rxq_info xdp_rxq; member
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dsetup.c90 return xdp_rxq_info_reg(&rq->xdp_rxq, rq->netdev, rq_xdp_ix, c->napi.napi_id); in mlx5e_init_xsk_rq()
/linux-6.12.1/net/bpf/
Dtest_run.c1172 if (!xdp_rxq_info_is_reg(&rxqueue->xdp_rxq)) in xdp_convert_md_to_buff()
1175 xdp->rxq = &rxqueue->xdp_rxq; in xdp_convert_md_to_buff()
1269 rxqueue->xdp_rxq.frag_size = headroom + max_data_sz + tailroom; in bpf_prog_test_run_xdp()
1270 xdp_init_buff(&xdp, rxqueue->xdp_rxq.frag_size, &rxqueue->xdp_rxq); in bpf_prog_test_run_xdp()
/linux-6.12.1/drivers/net/ethernet/socionext/
Dnetsec.c287 struct xdp_rxq_info xdp_rxq; member
963 xdp_init_buff(&xdp, PAGE_SIZE, &dring->xdp_rxq); in netsec_process_rx()
1225 if (xdp_rxq_info_is_reg(&dring->xdp_rxq)) in netsec_uninit_pkt_dring()
1226 xdp_rxq_info_unreg(&dring->xdp_rxq); in netsec_uninit_pkt_dring()
1317 err = xdp_rxq_info_reg(&dring->xdp_rxq, priv->ndev, 0, priv->napi.napi_id); in netsec_setup_rx_dring()
1321 err = xdp_rxq_info_reg_mem_model(&dring->xdp_rxq, MEM_TYPE_PAGE_POOL, in netsec_setup_rx_dring()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c289 if (xdp_rxq_info_reg(&ring->xdp_rxq, priv->dev, queue_index, 0) < 0) in mlx4_en_create_rx_ring()
321 xdp_rxq_info_unreg(&ring->xdp_rxq); in mlx4_en_create_rx_ring()
445 xdp_rxq_info_unreg(&ring->xdp_rxq); in mlx4_en_destroy_rx_ring()
736 xdp_init_buff(&mxbuf.xdp, priv->frag_info[0].frag_stride, &ring->xdp_rxq); in mlx4_en_process_rx_cq()

1234