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

2025-07-08 Thread Bui Quang Minh
On 7/8/25 21:26, Bui Quang Minh wrote: On 7/7/25 10:48, Jason Wang wrote: On Sun, Jul 6, 2025 at 10:12 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 b

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

2025-07-08 Thread Bui Quang Minh
On 7/7/25 10:48, Jason Wang wrote: On Sun, Jul 6, 2025 at 10:12 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

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

2025-07-06 Thread Jason Wang
On Mon, Jul 7, 2025 at 11:48 AM Jason Wang wrote: > > On Sun, Jul 6, 2025 at 10:12 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 d

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

2025-07-06 Thread Jason Wang
On Sun, Jul 6, 2025 at 10:12 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