[PATCH v2] app/testpmd: fix UDP cksum error for UFO enable

fengchengwen fengchengwen at huawei.com
Fri Oct 27 08:15:40 CEST 2023


Acked-by: Chengwen Feng <fengchengwen at huawei.com>

On 2023/8/2 10:55, Huisong Li wrote:
> The command "tso set <tso_segsz> <port_id>" is used to enable UFO, please
> see commit ce8e6e742807 ("app/testpmd: support UFO in checksum engine")
> 
> The above patch configures the RTE_MBUF_F_TX_UDP_SEG to enable UFO only if
> tso_segsz is set. Then tx_prepare() may call rte_net_intel_cksum_prepare()
> to compute pseudo header checksum (because some PMDs may supports TSO).
> As a result, if the peer sends UDP packets, all packets with UDP checksum
> error are received for the PMDs only supported TSO.
> 
> So enabling UFO also depends on if driver has RTE_ETH_TX_OFFLOAD_UDP_TSO
> capability. Similarly, TSO also need to do like this.
> 
> In addition, this patch also fixes cmd_tso_set_parsed() for UFO to make
> it better to support TSO and UFO.
> 
> Fixes: ce8e6e742807 ("app/testpmd: support UFO in checksum engine")
> 
> Signed-off-by: Huisong Li <lihuisong at huawei.com>

...


More information about the dev mailing list