Lines Matching full:headroom
22 /* Per packet headroom in non-XDP mode. Present only for 1-frag packets. */
149 /* VA includes the headroom, frag size includes headroom + tailroom */ in fun_run_xdp()
160 /* remove headroom, which may not be FUN_XDP_HEADROOM now */ in fun_run_xdp()
373 unsigned int headroom; in fun_handle_cqe_pkt() local
389 headroom = be16_to_cpu(rxreq->headroom); in fun_handle_cqe_pkt()
390 if (likely(headroom)) in fun_handle_cqe_pkt()
391 tot_len += FUN_RX_TAILROOM + headroom; in fun_handle_cqe_pkt()
395 if (xdp_q && headroom == FUN_XDP_HEADROOM) { in fun_handle_cqe_pkt()
399 headroom = 0; /* XDP_PASS trims it */ in fun_handle_cqe_pkt()
404 if (likely(headroom)) { in fun_handle_cqe_pkt()
405 /* headroom is either FUN_RX_HEADROOM or FUN_XDP_HEADROOM */ in fun_handle_cqe_pkt()
406 prefetch(va + headroom); in fun_handle_cqe_pkt()
411 skb_reserve(skb, headroom); in fun_handle_cqe_pkt()
592 u16 headroom; in fun_rxq_set_bpf() local
595 headroom = prog ? FUN_XDP_HEADROOM : FUN_RX_HEADROOM; in fun_rxq_set_bpf()
596 if (headroom != q->headroom) { in fun_rxq_set_bpf()
601 0, q->hw_cqid, headroom); in fun_rxq_set_bpf()
606 q->headroom = headroom; in fun_rxq_set_bpf()
726 q->headroom = fp->xdp_prog ? FUN_XDP_HEADROOM : FUN_RX_HEADROOM; in fun_rxq_create_dev()
739 q->cq_dma_addr, q->headroom, FUN_RX_TAILROOM, 0, 0, in fun_rxq_create_dev()
750 "Rx queue %u, depth %u/%u, HW qid %u/%u, IRQ idx %u, node %d, headroom %u\n", in fun_rxq_create_dev()
752 q->numa_node, q->headroom); in fun_rxq_create_dev()