On Sat, Dec 28, 2024 at 3:13 AM <chia-yu.chang@xxxxxxxxxxxxxxxxxxx> wrote: > > From: Chia-Yu Chang <chia-yu.chang@xxxxxxxxxxxxxxxxxxx> > > Unlike RFC 3168 ECN, accurate ECN uses the CWR flag as part of the ACE > field to count new packets with CE mark; however, it will be corrupted > by the RFC 3168 ECN-aware TSO. Therefore, fallback shall be applied by > seting NETIF_F_GSO_ACCECN to ensure that the CWR flag should not be > changed within a super-skb. > > To apply the aforementieond new AccECN GSO for virtio, new featue bits > for host and guest are added for feature negotiation between driver and > device. And the translation of Accurate ECN GSO flag between > virtio_net_hdr and skb header for NETIF_F_GSO_ACCECN is also added to > avoid CWR flag corruption due to RFC3168 ECN TSO. > > Signed-off-by: Chia-Yu Chang <chia-yu.chang@xxxxxxxxxxxxxxxxxxx> > --- > drivers/net/virtio_net.c | 14 +++++++++++--- > drivers/vdpa/pds/debugfs.c | 6 ++++++ > include/linux/virtio_net.h | 16 ++++++++++------ > include/uapi/linux/virtio_net.h | 5 +++++ > 4 files changed, 32 insertions(+), 9 deletions(-) Is there a link to the spec patch? It needs to be accepted first. Thanks