Home
last modified time | relevance | path

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

/Linux-v5.4/samples/bpf/
Dxdpsock_user.c47 #define BATCH_SIZE 64 macro
500 ndescs = (xsk->outstanding_tx > BATCH_SIZE) ? BATCH_SIZE : in complete_tx_l2fwd()
540 rcvd = xsk_ring_cons__peek(&xsk->umem->cq, BATCH_SIZE, &idx); in complete_tx_only()
554 rcvd = xsk_ring_cons__peek(&xsk->rx, BATCH_SIZE, &idx_rx); in rx_drop()
615 if (xsk_ring_prod__reserve(&xsk->tx, BATCH_SIZE, &idx) == BATCH_SIZE) { in tx_only()
618 for (i = 0; i < BATCH_SIZE; i++) { in tx_only()
625 xsk_ring_prod__submit(&xsk->tx, BATCH_SIZE); in tx_only()
626 xsk->outstanding_tx += BATCH_SIZE; in tx_only()
627 frame_nb += BATCH_SIZE; in tx_only()
669 rcvd = xsk_ring_cons__peek(&xsk->rx, BATCH_SIZE, &idx_rx); in l2fwd()