• Home
  • Raw
  • Download

Lines Matching full:headroom

41 /* Amount of XDP headroom to prepend to packets for use by xdp_adjust_head */
475 unsigned int headroom) in mergeable_len_to_ctx() argument
477 return (void *)(unsigned long)((headroom << MRG_CTX_HEADER_SHIFT) | truesize); in mergeable_len_to_ctx()
491 unsigned int headroom, in virtnet_build_skb() argument
500 skb_reserve(skb, headroom); in virtnet_build_skb()
511 unsigned int headroom) in page_to_skb() argument
529 buf = p - headroom; in page_to_skb()
533 tailroom = truesize - headroom - hdr_padded_len - len; in page_to_skb()
850 if (unlikely(xdpf->headroom < vi->hdr_len)) in __virtnet_xdp_xmit_one()
862 * xdpf->headroom. Therefore, we need to update the value of in __virtnet_xdp_xmit_one()
863 * headroom synchronously here. in __virtnet_xdp_xmit_one()
865 xdpf->headroom -= vi->hdr_len; in __virtnet_xdp_xmit_one()
1079 * 2) Headroom space is insufficient.
1083 * with large buffers with sufficient headroom - so it should affect
1088 * have enough headroom.
1136 /* Headroom does not contribute to packet length */ in xdp_linearize_page()
1150 unsigned int headroom; in receive_small_build_skb() local
1155 headroom = vi->hdr_len + header_offset; in receive_small_build_skb()
1156 buflen = SKB_DATA_ALIGN(GOOD_PACKET_LEN + headroom) + in receive_small_build_skb()
1159 skb = virtnet_build_skb(buf, buflen, headroom, len); in receive_small_build_skb()
1180 unsigned int headroom = vi->hdr_len + header_offset; in receive_small_xdp() local
1193 buflen = SKB_DATA_ALIGN(GOOD_PACKET_LEN + headroom) + in receive_small_xdp()
1203 headroom = vi->hdr_len + header_offset; in receive_small_xdp()
1204 buflen = SKB_DATA_ALIGN(GOOD_PACKET_LEN + headroom) + in receive_small_xdp()
1361 unsigned int headroom, data_len; in build_skb_from_xdp_buff() local
1378 headroom = xdp->data - xdp->data_hard_start; in build_skb_from_xdp_buff()
1380 skb_reserve(skb, headroom); in build_skb_from_xdp_buff()
1410 unsigned int headroom, tailroom, room; in virtnet_build_xdp_buff_mrg() local
1457 headroom = mergeable_ctx_to_headroom(ctx); in virtnet_build_xdp_buff_mrg()
1458 tailroom = headroom ? sizeof(struct skb_shared_info) : 0; in virtnet_build_xdp_buff_mrg()
1459 room = SKB_DATA_ALIGN(headroom + tailroom); in virtnet_build_xdp_buff_mrg()
1499 unsigned int headroom = mergeable_ctx_to_headroom(ctx); in mergeable_xdp_get_buf() local
1511 * with headroom may add hole in truesize, which in mergeable_xdp_get_buf()
1517 if (likely(headroom >= virtnet_get_headroom(vi) && in mergeable_xdp_get_buf()
1522 /* This happens when headroom is not enough because in mergeable_xdp_get_buf()
1636 unsigned int headroom = mergeable_ctx_to_headroom(ctx); in receive_mergeable() local
1637 unsigned int tailroom = headroom ? sizeof(struct skb_shared_info) : 0; in receive_mergeable()
1638 unsigned int room = SKB_DATA_ALIGN(headroom + tailroom); in receive_mergeable()
1664 head_skb = page_to_skb(vi, rq, page, offset, len, truesize, headroom); in receive_mergeable()
1686 headroom = mergeable_ctx_to_headroom(ctx); in receive_mergeable()
1687 tailroom = headroom ? sizeof(struct skb_shared_info) : 0; in receive_mergeable()
1688 room = SKB_DATA_ALIGN(headroom + tailroom); in receive_mergeable()
1824 * same size, except for the headroom. For this reason we do
1826 * to store the headroom as the context ignoring the truesize.
1927 unsigned int headroom = virtnet_get_headroom(vi); in add_recvbuf_mergeable() local
1928 unsigned int tailroom = headroom ? sizeof(struct skb_shared_info) : 0; in add_recvbuf_mergeable()
1929 unsigned int room = SKB_DATA_ALIGN(headroom + tailroom); in add_recvbuf_mergeable()
1945 buf += headroom; /* advance address leaving hole at front of pkt */ in add_recvbuf_mergeable()
1954 if (!headroom) in add_recvbuf_mergeable()
1961 ctx = mergeable_len_to_ctx(len + room, headroom); in add_recvbuf_mergeable()
4258 unsigned int headroom = virtnet_get_headroom(vi); in mergeable_rx_buffer_size_show() local
4259 unsigned int tailroom = headroom ? sizeof(struct skb_shared_info) : 0; in mergeable_rx_buffer_size_show()
4266 SKB_DATA_ALIGN(headroom + tailroom))); in mergeable_rx_buffer_size_show()