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()
372 unsigned int headroom; in fun_handle_cqe_pkt() local
388 headroom = be16_to_cpu(rxreq->headroom); in fun_handle_cqe_pkt()
389 if (likely(headroom)) in fun_handle_cqe_pkt()
390 tot_len += FUN_RX_TAILROOM + headroom; in fun_handle_cqe_pkt()
394 if (xdp_q && headroom == FUN_XDP_HEADROOM) { in fun_handle_cqe_pkt()
398 headroom = 0; /* XDP_PASS trims it */ in fun_handle_cqe_pkt()
403 if (likely(headroom)) { in fun_handle_cqe_pkt()
404 /* headroom is either FUN_RX_HEADROOM or FUN_XDP_HEADROOM */ in fun_handle_cqe_pkt()
405 prefetch(va + headroom); in fun_handle_cqe_pkt()
410 skb_reserve(skb, headroom); in fun_handle_cqe_pkt()
591 u16 headroom; in fun_rxq_set_bpf() local
594 headroom = prog ? FUN_XDP_HEADROOM : FUN_RX_HEADROOM; in fun_rxq_set_bpf()
595 if (headroom != q->headroom) { in fun_rxq_set_bpf()
600 0, q->hw_cqid, headroom); in fun_rxq_set_bpf()
605 q->headroom = headroom; in fun_rxq_set_bpf()
725 q->headroom = fp->xdp_prog ? FUN_XDP_HEADROOM : FUN_RX_HEADROOM; in fun_rxq_create_dev()
738 q->cq_dma_addr, q->headroom, FUN_RX_TAILROOM, 0, 0, in fun_rxq_create_dev()
749 "Rx queue %u, depth %u/%u, HW qid %u/%u, IRQ idx %u, node %d, headroom %u\n", in fun_rxq_create_dev()
751 q->numa_node, q->headroom); in fun_rxq_create_dev()