On 4/13/2023 11:04 AM, Zhichao Zeng wrote:
This commit supports UFO for both non-tunnel and tunneled packets.

Similar to TSO, the command "tso set <tso_segsz> <port_id>" or
"tunnel_tso set <tso_segsz> <port_id>" is used to enable UFO,
and the following conditions need to be met:
a. The NIC supports UFO;
b. For enabling UFO in tunnel packets, "csum parse_tunnel" must be set to
    recognize tunnel packets;
c. For IPv4 tunnel packets, "csum set outer-ip" must be set to hw, because
    UFO changes the total_len of the external IP header and the checksum
    calculated by SW becomes incorrect; This is not necessary for IPv6
    tunnel packets since there's no checksum field to fill in.

Signed-off-by: Zhichao Zeng <zhichaox.z...@intel.com>

Acked-by: Aman Singh <aman.deep.si...@intel.com>

<snip>

Reply via email to