Home
last modified time | relevance | path

Searched refs:bq (Results 1 – 23 of 23) sorted by relevance

/linux/include/net/libeth/
H A Dxdp.h402 #define LIBETH_XDP_ONSTACK_BULK(bq) \ argument
403 struct libeth_xdp_tx_bulk bq __uninitialized
598 static inline bool libeth_xdp_tx_queue_head(struct libeth_xdp_tx_bulk *bq, in libeth_xdp_tx_queue_head() argument
603 bq->bulk[bq->count++] = (typeof(*bq->bulk)){ in libeth_xdp_tx_queue_head()
612 bq->bulk[bq->count - 1].len_fl |= LIBETH_XDP_TX_MULTI; in libeth_xdp_tx_queue_head()
622 static inline void libeth_xdp_tx_queue_frag(struct libeth_xdp_tx_bulk *bq, in libeth_xdp_tx_queue_frag() argument
625 bq->bulk[bq->count++].frag = *frag; in libeth_xdp_tx_queue_frag()
637 libeth_xdp_tx_queue_bulk(struct libeth_xdp_tx_bulk *bq, in libeth_xdp_tx_queue_bulk() argument
639 bool (*flush_bulk)(struct libeth_xdp_tx_bulk *bq, in libeth_xdp_tx_queue_bulk() argument
646 if (unlikely(bq->count == LIBETH_XDP_TX_BULK) && in libeth_xdp_tx_queue_bulk()
[all …]
H A Dxsk.h19 * @bq: XDP Tx bulk to queue the head frag to
24 static inline bool libeth_xsk_tx_queue_head(struct libeth_xdp_tx_bulk *bq, in libeth_xsk_tx_queue_head() argument
27 bq->bulk[bq->count++] = (typeof(*bq->bulk)){ in libeth_xsk_tx_queue_head()
36 bq->bulk[bq->count - 1].flags |= LIBETH_XDP_TX_MULTI; in libeth_xsk_tx_queue_head()
43 * @bq: XDP Tx bulk to queue the frag to
46 static inline void libeth_xsk_tx_queue_frag(struct libeth_xdp_tx_bulk *bq, in libeth_xsk_tx_queue_frag() argument
49 bq in libeth_xsk_tx_queue_frag()
64 libeth_xsk_tx_queue_bulk(struct libeth_xdp_tx_bulk * bq,struct libeth_xdp_buff * xdp,bool (* flush_bulk)(struct libeth_xdp_tx_bulk * bq,u32 flags)) libeth_xsk_tx_queue_bulk() argument
66 libeth_xsk_tx_queue_bulk(struct libeth_xdp_tx_bulk * bq,struct libeth_xdp_buff * xdp,bool (* flush_bulk)(struct libeth_xdp_tx_bulk * bq,u32 flags)) libeth_xsk_tx_queue_bulk() argument
149 libeth_xsk_tx_flush_bulk(bq,flags,prep,xmit) global() argument
329 libeth_xsk_tx_init_bulk(bq,prog,dev,xdpsqs,num) global() argument
391 __libeth_xsk_run_prog(struct libeth_xdp_buff * xdp,const struct libeth_xdp_tx_bulk * bq) __libeth_xsk_run_prog() argument
419 libeth_xsk_run_prog(xdp,bq,fl) global() argument
442 __libeth_xsk_run_pass(struct libeth_xdp_buff * xdp,struct libeth_xdp_tx_bulk * bq,struct napi_struct * napi,struct libeth_rq_napi_stats * rs,const void * md,void (* prep)(struct libeth_xdp_buff * xdp,const void * md),u32 (* run)(struct libeth_xdp_buff * xdp,struct libeth_xdp_tx_bulk * bq),bool (* populate)(struct sk_buff * skb,const struct libeth_xdp_buff * xdp,struct libeth_rq_napi_stats * rs)) __libeth_xsk_run_pass() argument
447 __libeth_xsk_run_pass(struct libeth_xdp_buff * xdp,struct libeth_xdp_tx_bulk * bq,struct napi_struct * napi,struct libeth_rq_napi_stats * rs,const void * md,void (* prep)(struct libeth_xdp_buff * xdp,const void * md),u32 (* run)(struct libeth_xdp_buff * xdp,struct libeth_xdp_tx_bulk * bq),bool (* populate)(struct sk_buff * skb,const struct libeth_xdp_buff * xdp,struct libeth_rq_napi_stats * rs)) __libeth_xsk_run_pass() argument
500 libeth_xsk_run_pass(xdp,bq,napi,rs,desc,run,populate) global() argument
513 libeth_xsk_finalize_rx(bq,flush,finalize) global() argument
[all...]
H A Dtx.h105 struct xdp_frame_bulk *bq; member
/linux/drivers/net/ethernet/intel/libeth/
H A Dxdp.c94 libeth_xdp_tx_return_bulk(const struct libeth_xdp_tx_frame *bq, u32 count) in libeth_xdp_tx_return_bulk() argument
97 const struct libeth_xdp_tx_frame *frm = &bq[i]; in libeth_xdp_tx_return_bulk()
123 void __cold libeth_xdp_tx_exception(struct libeth_xdp_tx_bulk *bq, u32 sent, in libeth_xdp_tx_exception() argument
126 const struct libeth_xdp_tx_frame *pos = &bq->bulk[sent]; in libeth_xdp_tx_exception()
127 u32 left = bq->count - sent; in libeth_xdp_tx_exception()
130 libeth_trace_xdp_exception(bq->dev, bq->prog, XDP_TX); in libeth_xdp_tx_exception()
133 memmove(bq->bulk, pos, left * sizeof(*bq->bulk)); in libeth_xdp_tx_exception()
134 bq->count = left; in libeth_xdp_tx_exception()
144 libeth_xdp_xmit_return_bulk(pos, left, bq->dev); in libeth_xdp_tx_exception()
146 bq->count = 0; in libeth_xdp_tx_exception()
[all …]
H A Dxsk.c14 void __cold libeth_xsk_tx_return_bulk(const struct libeth_xdp_tx_frame *bq, in libeth_xsk_tx_return_bulk() argument
18 libeth_xsk_buff_free_slow(bq[i].xsk); in libeth_xsk_tx_return_bulk()
99 const struct libeth_xdp_tx_bulk *bq, in __libeth_xsk_run_prog_slow() argument
115 return libeth_xdp_prog_exception(bq, xdp, act, ret); in __libeth_xsk_run_prog_slow()
H A Dpriv.h19 void libeth_xsk_tx_return_bulk(const struct libeth_xdp_tx_frame *bq,
26 struct xdp_frame_bulk *bq, bool frags);
/linux/kernel/bpf/
H A Dcpumap.c456 struct xdp_bulk_queue *bq; in __cpu_map_entry_alloc()
472 bq = per_cpu_ptr(rcpu->bulkq, i); in __cpu_map_entry_alloc()
473 bq->obj = rcpu; in __cpu_map_entry_alloc()
474 local_lock_init(&bq->bq_lock); in __cpu_map_entry_alloc()
738 static void bq_flush_to_queue(struct xdp_bulk_queue *bq) in bq_flush_to_queue()
740 struct bpf_cpu_map_entry *rcpu = bq->obj; in bq_flush_to_queue()
746 lockdep_assert_held(&bq->bq_lock); in bq_flush_to_queue()
748 if (unlikely(!bq->count)) in bq_flush_to_queue()
754 for (i = 0; i < bq->count; i++) { in bq_flush_to_queue()
755 struct xdp_frame *xdpf = bq in bq_flush_to_queue()
441 struct xdp_bulk_queue *bq; __cpu_map_entry_alloc() local
723 bq_flush_to_queue(struct xdp_bulk_queue * bq) bq_flush_to_queue() argument
765 struct xdp_bulk_queue *bq; bq_enqueue() local
824 struct xdp_bulk_queue *bq, *tmp; __cpu_map_flush() local
[all...]
/linux/drivers/net/ethernet/intel/idpf/
H A Dxsk.c177 struct xdp_frame_bulk bq; in idpf_xsksq_clean()
180 .bq = &bq, in idpf_xsksq_clean()
185 xdp_frame_bulk_init(&bq); in idpf_xsksq_clean()
199 xdp_flush_frame_bulk(&bq);
211 struct xdp_frame_bulk bq; in idpf_xsksq_complete_slow()
214 .bq = &bq, in idpf_xsksq_complete_slow()
220 xdp_frame_bulk_init(&bq); in idpf_xsksq_complete_slow()
234 xdp_flush_frame_bulk(&bq); in idpf_xsksq_complete_slow()
172 struct xdp_frame_bulk bq; idpf_xsksq_clean() local
206 struct xdp_frame_bulk bq; idpf_xsksq_complete_slow() local
[all...]
H A Dxdp.c302 struct xdp_frame_bulk bq; in idpf_xdpsq_complete() local
305 .bq = &bq, in idpf_xdpsq_complete()
315 xdp_frame_bulk_init(&bq); in idpf_xdpsq_complete()
324 xdp_flush_frame_bulk(&bq); in idpf_xdpsq_complete()
H A Didpf_txrx.c62 struct xdp_frame_bulk bq; in idpf_tx_buf_clean() local
65 .bq = &bq, in idpf_tx_buf_clean()
69 xdp_frame_bulk_init(&bq); in idpf_tx_buf_clean()
75 xdp_flush_frame_bulk(&bq); in idpf_tx_buf_clean()
3598 LIBETH_XDP_ONSTACK_BULK(bq); in idpf_rx_splitq_clean()
3600 libeth_xdp_tx_init_bulk(&bq, rxq->xdp_prog, rxq->xdp_rxq.dev, in idpf_rx_splitq_clean()
3697 idpf_xdp_run_pass(xdp, &bq, rxq->napi, &rs, rx_desc);
3700 idpf_xdp_finalize_rx(&bq); in idpf_rx_clean_refillq()
/linux/drivers/net/
H A Dveth.c581 static void veth_xdp_flush_bq(struct veth_rq *rq, struct veth_xdp_tx_bq *bq) in veth_xdp_flush_bq()
585 sent = veth_xdp_xmit(rq->dev, bq->count, bq->q, 0, false); in veth_xdp_flush_bq()
591 for (i = sent; unlikely(i < bq->count); i++) in veth_xdp_flush_bq()
592 xdp_return_frame(bq->q[i]); in veth_xdp_flush_bq()
594 drops = bq->count - sent; in veth_xdp_flush_bq()
602 bq->count = 0; in veth_xdp_flush()
605 static void veth_xdp_flush(struct veth_rq *rq, struct veth_xdp_tx_bq *bq) in veth_xdp_flush()
612 veth_xdp_flush_bq(rq, bq); in veth_xdp_flush()
629 struct veth_xdp_tx_bq *bq) in veth_xdp_tx()
576 veth_xdp_flush_bq(struct veth_rq * rq,struct veth_xdp_tx_bq * bq) veth_xdp_flush_bq() argument
600 veth_xdp_flush(struct veth_rq * rq,struct veth_xdp_tx_bq * bq) veth_xdp_flush() argument
624 veth_xdp_tx(struct veth_rq * rq,struct xdp_buff * xdp,struct veth_xdp_tx_bq * bq) veth_xdp_tx() argument
641 veth_xdp_rcv_one(struct veth_rq * rq,struct xdp_frame * frame,struct veth_xdp_tx_bq * bq,struct veth_stats * stats) veth_xdp_rcv_one() argument
711 veth_xdp_rcv_bulk_skb(struct veth_rq * rq,void ** frames,int n_xdpf,struct veth_xdp_tx_bq * bq,struct veth_stats * stats) veth_xdp_rcv_bulk_skb() argument
793 veth_xdp_rcv_skb(struct veth_rq * rq,struct sk_buff * skb,struct veth_xdp_tx_bq * bq,struct veth_stats * stats) veth_xdp_rcv_skb() argument
909 veth_xdp_rcv(struct veth_rq * rq,int budget,struct veth_xdp_tx_bq * bq,struct veth_stats * stats) veth_xdp_rcv() argument
975 struct veth_xdp_tx_bq bq; veth_poll() local
[all...]
/linux/include/net/
H A Dxdp.h330 static __always_inline void xdp_frame_bulk_init(struct xdp_frame_bulk *bq) in xdp_frame_bulk_init() argument
332 bq->count = 0; in xdp_frame_bulk_init()
459 struct xdp_frame_bulk *bq);
461 static inline void xdp_flush_frame_bulk(struct xdp_frame_bulk *bq) in xdp_flush_frame_bulk() argument
463 if (unlikely(!bq->count)) in xdp_flush_frame_bulk()
466 page_pool_put_netmem_bulk(bq->q, bq->count); in xdp_flush_frame_bulk()
467 bq->count = 0; in xdp_flush_frame_bulk()
/linux/arch/arm/boot/dts/mediatek/
H A Dmt6589-aquaris5.dts12 model = "bq Aquaris5";
13 compatible = "mundoreader,bq-aquaris5", "mediatek,mt6589";
/linux/net/core/
H A Dxdp.c511 struct xdp_frame_bulk *bq) in xdp_return_frame_bulk() argument
518 if (bq->count == XDP_BULK_QUEUE_SIZE) in xdp_return_frame_bulk()
519 xdp_flush_frame_bulk(bq); in xdp_return_frame_bulk()
529 bq->q[bq->count++] = skb_frag_netmem(frag); in xdp_return_frame_bulk()
530 if (bq->count == XDP_BULK_QUEUE_SIZE) in xdp_return_frame_bulk()
531 xdp_flush_frame_bulk(bq); in xdp_return_frame_bulk()
534 bq->q[bq->count++] = virt_to_netmem(xdpf->data); in xdp_return_frame_bulk()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dxdp.c671 struct xdp_frame_bulk *bq, in mlx5e_free_xdpsq_desc() argument
709 xdp_return_frame_bulk(xdpf, bq); in mlx5e_free_xdpsq_desc()
760 struct xdp_frame_bulk bq; in mlx5e_poll_xdpsq_cq() local
767 xdp_frame_bulk_init(&bq); in mlx5e_poll_xdpsq_cq()
800 mlx5e_free_xdpsq_desc(sq, wi, &xsk_frames, &bq, cq, cqe); in mlx5e_poll_xdpsq_cq()
813 xdp_flush_frame_bulk(&bq); in mlx5e_poll_xdpsq_cq()
831 struct xdp_frame_bulk bq; in mlx5e_free_xdpsq_descs() local
834 xdp_frame_bulk_init(&bq); in mlx5e_free_xdpsq_descs()
847 mlx5e_free_xdpsq_desc(sq, wi, &xsk_frames, &bq, NULL, NULL); in mlx5e_free_xdpsq_descs()
850 xdp_flush_frame_bulk(&bq); in mlx5e_free_xdpsq_descs()
[all...]
/linux/arch/arm/boot/dts/rockchip/
H A Drk3066a-bqcurie2.dts12 model = "bq Curie 2";
13 compatible = "mundoreader,bq-curie2", "rockchip,rk3066a";
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_txrx.c278 struct xdp_frame_bulk bq; in ionic_xdp_tx_desc_clean() local
283 xdp_frame_bulk_init(&bq); in ionic_xdp_tx_desc_clean()
293 xdp_return_frame_bulk(desc_info->xdpf, &bq); in ionic_xdp_tx_desc_clean()
296 xdp_flush_frame_bulk(&bq); in ionic_xdp_tx_desc_clean()
/linux/drivers/net/vmxnet3/
H A Dvmxnet3_drv.c398 struct xdp_frame_bulk *bq) in vmxnet3_unmap_pkt() argument
427 xdp_return_frame_bulk(tbi->xdpf, bq); in vmxnet3_unmap_pkt()
443 struct xdp_frame_bulk bq; in vmxnet3_tq_tx_complete() local
446 xdp_frame_bulk_init(&bq); in vmxnet3_tq_tx_complete()
458 adapter, &bq); in vmxnet3_tq_tx_complete()
463 xdp_flush_frame_bulk(&bq); in vmxnet3_tq_tx_complete()
484 struct xdp_frame_bulk bq; in vmxnet3_tq_cleanup() local
488 xdp_frame_bulk_init(&bq); in vmxnet3_tq_cleanup()
500 xdp_return_frame_bulk(tbi->xdpf, &bq); in vmxnet3_tq_cleanup()
508 xdp_flush_frame_bulk(&bq); in vmxnet3_tq_cleanup()
/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8916-longcheer-l8910.dts275 model = "bq-paella";
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c1409 struct xdp_frame_bulk *bq, bool napi) in mtk_tx_unmap() argument
1452 else if (bq) in mtk_tx_unmap()
1453 xdp_return_frame_bulk(xdpf, bq); in mtk_tx_unmap()
2476 struct xdp_frame_bulk bq; in mtk_poll_tx_qdma() local
2484 xdp_frame_bulk_init(&bq); in mtk_poll_tx_qdma()
2505 mtk_tx_unmap(eth, tx_buf, &bq, true); in mtk_poll_tx_qdma()
2512 xdp_flush_frame_bulk(&bq); in mtk_poll_tx_qdma()
2525 struct xdp_frame_bulk bq; in mtk_poll_tx_pdma() local
2531 xdp_frame_bulk_init(&bq); in mtk_poll_tx_pdma()
2543 mtk_tx_unmap(eth, tx_buf, &bq, tru in mtk_poll_tx_pdma()
[all...]
/linux/drivers/net/ethernet/socionext/
H A Dnetsec.c638 struct xdp_frame_bulk bq; in netsec_clean_tx_dring() local
647 xdp_frame_bulk_init(&bq); in netsec_clean_tx_dring()
679 xdp_return_frame_bulk(desc->xdpf, &bq); in netsec_clean_tx_dring()
698 xdp_flush_frame_bulk(&bq); in netsec_clean_tx_dring()
/linux/drivers/net/ethernet/marvell/
H A Dmvneta.c1873 struct xdp_frame_bulk bq; in mvneta_txq_bufs_free() local
1876 xdp_frame_bulk_init(&bq); in mvneta_txq_bufs_free()
1902 xdp_return_frame_bulk(buf->xdpf, &bq); in mvneta_txq_bufs_free()
1905 xdp_flush_frame_bulk(&bq); in mvneta_txq_bufs_free()
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c2812 struct xdp_frame_bulk bq; in mvpp2_txq_bufs_free()
2815 xdp_frame_bulk_init(&bq); in mvpp2_txq_bufs_free()
2831 xdp_return_frame_bulk(tx_buf->xdpf, &bq); in mvpp2_txq_bufs_free()
2835 xdp_flush_frame_bulk(&bq); in mvpp2_txq_bufs_free()
2813 struct xdp_frame_bulk bq; mvpp2_txq_bufs_free() local