On Thu, Nov 24, 2022 at 6:31 AM Mike Pattrick <[email protected]> wrote: > > From: Flavio Leitner <[email protected]> > > The netdev receiving packets is supposed to provide the flags > indicating if the L4 checksum was verified and it is OK or BAD, > otherwise the stack will check when appropriate by software. > > If the packet comes with good checksum, then postpone the > checksum calculation to the egress device if needed. > > When encapsulate a packet with that flag, set the checksum > of the inner L4 header since that is not yet supported. > > Calculate the L4 checksum when the packet is going to be sent > over a device that doesn't support the feature. > > Linux tap devices allows enabling L3 and L4 offload, so this > patch enables the feature. However, Linux socket interface > remains disabled because the API doesn't allow enabling > those two features without enabling TSO too. > > Signed-off-by: Flavio Leitner <[email protected]> > Co-authored-by: Mike Pattrick <[email protected]> > Signed-off-by: Mike Pattrick <[email protected]>
I tested tcp traffic in various setups (with mlx5 nic as physical port): - external host <-> ovs <-> kernel host - external host <-> ovs <-> kernel vm - kernel vm <-> ovs <-> kernel host - kernel vm1 <-> ovs <-> kernel vm2 The changes may need more eyes on the netdev-linux parts, but the rest looks good to me. Reviewed-by: David Marchand <[email protected]> -- David Marchand _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
