Subject: Re: [PATCH 1/2] virtio_net: checksum offloading handling fix

From: Jakub Kicinski <[email-masked]>
Date: Tue, 18 Jun 2024 18:15:16 -0700

On Tue, 18 Jun 2024 11:09:02 +0800 Heng Qi wrote:
> > (Should we manually do checksum if RXCUSM is disabled?)
> >   
> 
> Currently we do not allow RXCUSM to be disabled.

You don't have to disable checksuming in the device.
Just ignore VIRTIO_NET_HDR_F_DATA_VALID if user cleared NETIF_F_RXCSUM.
I know some paranoid workloads which do actually want the kernel to
calculate the checksum.