Re: [PATCH net v2] virtio-net: fix received length check in big packets

2025-07-16 Thread Michael S. Tsirkin
On Thu, Jul 10, 2025 at 06:44:03PM +0800, Jason Wang wrote: > On Thu, Jul 10, 2025 at 5:57 PM Paolo Abeni wrote: > > > > On 7/8/25 4:42 PM, Bui Quang Minh wrote: > > > Since commit 4959aebba8c0 ("virtio-net: use mtu size as buffer length > > > for big packets"), the allocated size for big packets

Re: [PATCH net v2] virtio-net: fix received length check in big packets

2025-07-16 Thread Michael S. Tsirkin
On Tue, Jul 08, 2025 at 09:42:06PM +0700, Bui Quang Minh wrote: > Since commit 4959aebba8c0 ("virtio-net: use mtu size as buffer length > for big packets"), the allocated size for big packets is not > MAX_SKB_FRAGS * PAGE_SIZE anymore but depends on negotiated MTU. The > number of allocated frags f

Re: [PATCH net v2] virtio-net: fix received length check in big packets

2025-07-15 Thread Lei Yang
Tested this patch with virtio-net regression tests, everything works fine. Tested-by: Lei Yang On Thu, Jul 10, 2025 at 6:44 PM Jason Wang wrote: > > On Thu, Jul 10, 2025 at 5:57 PM Paolo Abeni wrote: > > > > On 7/8/25 4:42 PM, Bui Quang Minh wrote: > > > Since commit 4959aebba8c0 ("virtio-net:

Re: [PATCH net v2] virtio-net: fix received length check in big packets

2025-07-10 Thread Jason Wang
On Thu, Jul 10, 2025 at 5:57 PM Paolo Abeni wrote: > > On 7/8/25 4:42 PM, Bui Quang Minh wrote: > > Since commit 4959aebba8c0 ("virtio-net: use mtu size as buffer length > > for big packets"), the allocated size for big packets is not > > MAX_SKB_FRAGS * PAGE_SIZE anymore but depends on negotiated

Re: [PATCH net v2] virtio-net: fix received length check in big packets

2025-07-10 Thread Paolo Abeni
On 7/8/25 4:42 PM, Bui Quang Minh wrote: > Since commit 4959aebba8c0 ("virtio-net: use mtu size as buffer length > for big packets"), the allocated size for big packets is not > MAX_SKB_FRAGS * PAGE_SIZE anymore but depends on negotiated MTU. The > number of allocated frags for big packets is store

Re: [PATCH net v2] virtio-net: fix received length check in big packets

2025-07-08 Thread Bui Quang Minh
On 7/8/25 21:52, Parav Pandit wrote: From: Bui Quang Minh Sent: 08 July 2025 08:12 PM Since commit 4959aebba8c0 ("virtio-net: use mtu size as buffer length for big packets"), the allocated size for big packets is not MAX_SKB_FRAGS * PAGE_SIZE anymore but depends on negotiated MTU. The number of

RE: [PATCH net v2] virtio-net: fix received length check in big packets

2025-07-08 Thread Parav Pandit
> From: Bui Quang Minh > Sent: 08 July 2025 08:12 PM > > Since commit 4959aebba8c0 ("virtio-net: use mtu size as buffer length for big > packets"), the allocated size for big packets is not MAX_SKB_FRAGS * > PAGE_SIZE anymore but depends on negotiated MTU. The number of > allocated frags for bi