Re: [PATCH v2] virtio-net: Copy received packet to buffer

2025-04-26 Thread Lei Yang
QE tested this patch's v2 with virtio-net regression tests, everything works fine. Tested-by: Lei Yang On Thu, Apr 24, 2025 at 11:49 PM Antoine Damhet wrote: > > On Thu, Apr 24, 2025 at 06:49:57PM +0900, Akihiko Odaki wrote: > > Commit e28fbd1c525d ("Revert "virtio-net: Copy received header to

Re: [PATCH v2] virtio-net: Copy received packet to buffer

2025-04-24 Thread Antoine Damhet
On Thu, Apr 24, 2025 at 06:49:57PM +0900, Akihiko Odaki wrote: > Commit e28fbd1c525d ("Revert "virtio-net: Copy received header to > buffer"") reverted commit 7987d2be5a8b, which attempted to remove the > need to patch the (const) input buffer. > > Achieve the original goal by copying the header o

Re: [PATCH v2] virtio-net: Copy received packet to buffer

2025-04-24 Thread Michael S. Tsirkin
On Thu, Apr 24, 2025 at 06:49:57PM +0900, Akihiko Odaki wrote: > Commit e28fbd1c525d ("Revert "virtio-net: Copy received header to > buffer"") reverted commit 7987d2be5a8b, which attempted to remove the > need to patch the (const) input buffer. > > Achieve the original goal by copying the header o

[PATCH v2] virtio-net: Copy received packet to buffer

2025-04-24 Thread Akihiko Odaki
Commit e28fbd1c525d ("Revert "virtio-net: Copy received header to buffer"") reverted commit 7987d2be5a8b, which attempted to remove the need to patch the (const) input buffer. Achieve the original goal by copying the header or the entire packet to a writable buffer as necessary. Copy the virtio-ne