[PATCH] udp_vu: update segment size
In udp_vu_sock_recv(), collect a segment with a size defined to
IP_MAX_MTU + ETH_HLEN + sizeof(struct virtio_net_hdr_mrg_rxbuf)
Signed-off-by: Laurent Vivier
On Wed, Dec 04, 2024 at 05:58:06PM +0100, Stefano Brivio wrote:
On Wed, 4 Dec 2024 16:33:21 +0100 Laurent Vivier
wrote: In udp_vu_sock_recv(), collect a segment with a size defined to IP_MAX_MTU + ETH_HLEN + sizeof(struct virtio_net_hdr_mrg_rxbuf)
Can you briefly explain why, and what's the problem otherwise?
The original version double counted the IP header: IP_MAX_MTU includes the IP header, and so did hdrlen. -- David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson
participants (3)
-
David Gibson
-
Laurent Vivier
-
Stefano Brivio