Re: [PATCH] net-sysfs: export gso_max_size attribute

From: David Ahern
Date: Fri Nov 24 2017 - 12:15:05 EST


On 11/22/17 5:30 PM, Solio Sarabia wrote:
> The netdevice gso_max_size is exposed to allow users fine-control on
> systems with multiple NICs with different GSO buffer sizes, and where
> the virtual devices like bridge and veth, need to be aware of the GSO
> size of the underlying devices.
>
> In a virtualized environment, setting the right GSO sizes for physical
> and virtual devices makes all TSO work to be on physical NIC, improving
> throughput and reducing CPU util. If virtual devices send buffers
> greater than what NIC supports, it forces host to do TSO for buffers
> exceeding the limit, increasing CPU utilization in host.
>
> Suggested-by: Shiny Sebastian <shiny.sebastian@xxxxxxxxx>
> Signed-off-by: Solio Sarabia <solio.sarabia@xxxxxxxxx>
> ---

This should be added to rtnetlink rather than sysfs.