Home
last modified time | relevance | path

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

1234

/openbmc/linux/net/core/
H A Dxdp.c135 void xdp_rxq_info_unreg_mem_model(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_unreg_mem_model() argument
137 if (xdp_rxq->reg_state != REG_STATE_REGISTERED) { in xdp_rxq_info_unreg_mem_model()
142 xdp_unreg_mem_model(&xdp_rxq->mem); in xdp_rxq_info_unreg_mem_model()
146 void xdp_rxq_info_unreg(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_unreg() argument
149 if (xdp_rxq->reg_state == REG_STATE_UNUSED) in xdp_rxq_info_unreg()
152 xdp_rxq_info_unreg_mem_model(xdp_rxq); in xdp_rxq_info_unreg()
154 xdp_rxq->reg_state = REG_STATE_UNREGISTERED; in xdp_rxq_info_unreg()
155 xdp_rxq->dev = NULL; in xdp_rxq_info_unreg()
159 static void xdp_rxq_info_init(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_init() argument
161 memset(xdp_rxq, 0, sizeof(*xdp_rxq)); in xdp_rxq_info_init()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A 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()
/openbmc/linux/include/net/
H A 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);
H A Dnetdev_rx_queue.h12 struct xdp_rxq_info xdp_rxq; member
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_base.c556 if (!xdp_rxq_info_is_reg(&ring->xdp_rxq)) { in ice_vsi_cfg_rxq()
557 err = __xdp_rxq_info_reg(&ring->xdp_rxq, ring->netdev, in ice_vsi_cfg_rxq()
567 xdp_rxq_info_unreg(&ring->xdp_rxq); in ice_vsi_cfg_rxq()
571 err = __xdp_rxq_info_reg(&ring->xdp_rxq, ring->netdev, in ice_vsi_cfg_rxq()
577 err = xdp_rxq_info_reg_mem_model(&ring->xdp_rxq, in ice_vsi_cfg_rxq()
582 xsk_pool_set_rxq_info(ring->xsk_pool, &ring->xdp_rxq); in ice_vsi_cfg_rxq()
587 if (!xdp_rxq_info_is_reg(&ring->xdp_rxq)) { in ice_vsi_cfg_rxq()
588 err = __xdp_rxq_info_reg(&ring->xdp_rxq, ring->netdev, in ice_vsi_cfg_rxq()
596 err = xdp_rxq_info_reg_mem_model(&ring->xdp_rxq, in ice_vsi_cfg_rxq()
604 xdp_init_buff(&ring->xdp, ice_get_frame_sz(ring), &ring->xdp_rxq); in ice_vsi_cfg_rxq()
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A 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()
H A Daq_ring.h154 struct xdp_rxq_info xdp_rxq; member
/openbmc/linux/drivers/net/ethernet/amazon/ena/
H A 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()
209 rc = xdp_rxq_info_reg_mem_model(&rx_ring->xdp_rxq, MEM_TYPE_PAGE_SHARED, NULL); in ena_xdp_register_rxq_info()
215 xdp_rxq_info_unreg(&rx_ring->xdp_rxq); in ena_xdp_register_rxq_info()
224 xdp_rxq_info_unreg_mem_model(&rx_ring->xdp_rxq); in ena_xdp_unregister_rxq_info()
225 xdp_rxq_info_unreg(&rx_ring->xdp_rxq); in ena_xdp_unregister_rxq_info()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A 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()
/openbmc/linux/Documentation/networking/
H A Dpage_pool.rst126 struct xdp_rxq_info xdp_rxq;
139 err = xdp_rxq_info_reg(&xdp_rxq, ndev, 0);
143 err = xdp_rxq_info_reg_mem_model(&xdp_rxq, MEM_TYPE_PAGE_POOL, page_pool);
191 xdp_rxq_info_unreg(&xdp_rxq);
/openbmc/linux/drivers/net/
H A Dveth.c68 struct xdp_rxq_info xdp_rxq; member
624 xdp->rxq = &rq->xdp_rxq; in veth_xdp_rcv_one()
803 xdp_init_buff(xdp, frame_sz, &rq->xdp_rxq); in veth_convert_skb_to_xdp_buff()
1140 err = xdp_rxq_info_reg(&rq->xdp_rxq, dev, i, rq->xdp_napi.napi_id); in veth_enable_xdp_range()
1144 err = xdp_rxq_info_reg_mem_model(&rq->xdp_rxq, in veth_enable_xdp_range()
1151 rq->xdp_mem = rq->xdp_rxq.mem; in veth_enable_xdp_range()
1156 xdp_rxq_info_unreg(&priv->rq[i].xdp_rxq); in veth_enable_xdp_range()
1161 xdp_rxq_info_unreg(&rq->xdp_rxq); in veth_enable_xdp_range()
1178 rq->xdp_rxq.mem = rq->xdp_mem; in veth_disable_xdp_range()
1179 xdp_rxq_info_unreg(&rq->xdp_rxq); in veth_disable_xdp_range()
[all …]
H A Dtun.c147 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 …]
/openbmc/linux/drivers/net/ethernet/fungible/funeth/
H A 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()
H A Dfuneth_txrx.h198 struct xdp_rxq_info xdp_rxq; member
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A 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()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_eth.h47 struct xdp_rxq_info xdp_rxq; member
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_txrx.h141 struct xdp_rxq_info xdp_rxq; member
/openbmc/linux/drivers/net/vmxnet3/
H A 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()
/openbmc/linux/drivers/net/ethernet/engleder/
H A Dtsnep.h140 struct xdp_rxq_info xdp_rxq; member
/openbmc/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_bpf.c93 xdp_init_buff(xdp, PAGE_SIZE, &rxq->xdp_rxq); in mana_run_xdp()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
H A Dsetup.c91 return xdp_rxq_info_reg(&rq->xdp_rxq, rq->netdev, rq_xdp_ix, c->napi.napi_id); in mlx5e_init_xsk_rq()
/openbmc/linux/net/bpf/
H A Dtest_run.c1116 if (!xdp_rxq_info_is_reg(&rxqueue->xdp_rxq)) in xdp_convert_md_to_buff()
1119 xdp->rxq = &rxqueue->xdp_rxq; in xdp_convert_md_to_buff()
1213 rxqueue->xdp_rxq.frag_size = headroom + max_data_sz + tailroom; in bpf_prog_test_run_xdp()
1214 xdp_init_buff(&xdp, rxqueue->xdp_rxq.frag_size, &rxqueue->xdp_rxq); in bpf_prog_test_run_xdp()
/openbmc/linux/drivers/net/ethernet/socionext/
H A 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()
1315 err = xdp_rxq_info_reg(&dring->xdp_rxq, priv->ndev, 0, priv->napi.napi_id); in netsec_setup_rx_dring()
1319 err = xdp_rxq_info_reg_mem_model(&dring->xdp_rxq, MEM_TYPE_PAGE_POOL, in netsec_setup_rx_dring()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_rx.c286 if (xdp_rxq_info_reg(&ring->xdp_rxq, priv->dev, queue_index, 0) < 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()
733 xdp_init_buff(&mxbuf.xdp, priv->frag_info[0].frag_stride, &ring->xdp_rxq); in mlx4_en_process_rx_cq()
/openbmc/linux/drivers/net/hyperv/
H A Dnetvsc_bpf.c56 xdp_init_buff(xdp, PAGE_SIZE, &nvchan->xdp_rxq); in netvsc_run_xdp()

1234