Re: [PATCH net 4/4] virtio-net: allow more allocated space for mergeable XDP

2025-06-25 Thread Jason Wang
On Thu, Jun 26, 2025 at 12:10 AM Bui Quang Minh wrote: > > When the mergeable receive buffer is prefilled before XDP is set, it > does not reserve the space for XDP_PACKET_HEADROOM and skb_shared_info. > So when XDP is set and this buffer is used to receive frame, we need to > create a new buffer

[PATCH net 4/4] virtio-net: allow more allocated space for mergeable XDP

2025-06-25 Thread Bui Quang Minh
When the mergeable receive buffer is prefilled before XDP is set, it does not reserve the space for XDP_PACKET_HEADROOM and skb_shared_info. So when XDP is set and this buffer is used to receive frame, we need to create a new buffer with reserved headroom, tailroom and copy the frame data over. Cur