[PATCH 2/4] app/testpmd: support UFO in checksum engine

Singh, Aman Deep aman.deep.singh at intel.com
Thu Jun 1 13:58:38 CEST 2023


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.zeng at intel.com>

Acked-by: Aman Singh <aman.deep.singh at intel.com>

<snip>



More information about the dev mailing list