• Home
  • Raw
  • Download

Lines Matching refs:bq

545 static void veth_xdp_flush_bq(struct veth_rq *rq, struct veth_xdp_tx_bq *bq)  in veth_xdp_flush_bq()  argument
549 sent = veth_xdp_xmit(rq->dev, bq->count, bq->q, 0, false); in veth_xdp_flush_bq()
555 for (i = sent; unlikely(i < bq->count); i++) in veth_xdp_flush_bq()
556 xdp_return_frame(bq->q[i]); in veth_xdp_flush_bq()
558 drops = bq->count - sent; in veth_xdp_flush_bq()
566 bq->count = 0; in veth_xdp_flush_bq()
569 static void veth_xdp_flush(struct veth_rq *rq, struct veth_xdp_tx_bq *bq) in veth_xdp_flush() argument
576 veth_xdp_flush_bq(rq, bq); in veth_xdp_flush()
593 struct veth_xdp_tx_bq *bq) in veth_xdp_tx() argument
600 if (unlikely(bq->count == VETH_XDP_TX_BULK_SIZE)) in veth_xdp_tx()
601 veth_xdp_flush_bq(rq, bq); in veth_xdp_tx()
603 bq->q[bq->count++] = frame; in veth_xdp_tx()
610 struct veth_xdp_tx_bq *bq, in veth_xdp_rcv_one() argument
637 if (unlikely(veth_xdp_tx(rq, xdp, bq) < 0)) { in veth_xdp_rcv_one()
680 int n_xdpf, struct veth_xdp_tx_bq *bq, in veth_xdp_rcv_bulk_skb() argument
825 struct veth_xdp_tx_bq *bq, in veth_xdp_rcv_skb() argument
861 if (unlikely(veth_xdp_tx(rq, xdp, bq) < 0)) { in veth_xdp_rcv_skb()
935 struct veth_xdp_tx_bq *bq, in veth_xdp_rcv() argument
952 frame = veth_xdp_rcv_one(rq, frame, bq, stats); in veth_xdp_rcv()
958 bq, stats); in veth_xdp_rcv()
967 skb = veth_xdp_rcv_skb(rq, skb, bq, stats); in veth_xdp_rcv()
979 veth_xdp_rcv_bulk_skb(rq, xdpf, n_xdpf, bq, stats); in veth_xdp_rcv()
997 struct veth_xdp_tx_bq bq; in veth_poll() local
1000 bq.count = 0; in veth_poll()
1003 done = veth_xdp_rcv(rq, budget, &bq, &stats); in veth_poll()
1020 veth_xdp_flush(rq, &bq); in veth_poll()