[PATCH v2] net/iavf: fix TSO offload for tunnel case

Xu, Ke1 ke1.xu at intel.com
Mon Sep 26 11:48:50 CEST 2022



> -----Original Message-----
> From: Zhichao Zeng <zhichaox.zeng at intel.com>
> Sent: Monday, September 26, 2022 1:17 PM
> To: dev at dpdk.org
> Cc: Yang, Qiming <qiming.yang at intel.com>; Zhou, YidingX
> <yidingx.zhou at intel.com>; Zhang, Qi Z <qi.z.zhang at intel.com>; Zeng,
> ZhichaoX <zhichaox.zeng at intel.com>; Wu, Jingjing <jingjing.wu at intel.com>;
> Xing, Beilei <beilei.xing at intel.com>; Sinha, Abhijit <abhijit.sinha at intel.com>;
> Doherty, Declan <declan.doherty at intel.com>; Nicolau, Radu
> <radu.nicolau at intel.com>
> Subject: [PATCH v2] net/iavf: fix TSO offload for tunnel case
> 
> This patch is to fix the tunnel TSO not enabling issue, simplify the logic of
> calculating 'Tx Buffer Size' of data descriptor with IPSec and fix handling that
> the mbuf size exceeds the TX descriptor hardware limit(1B-16KB) which
> causes malicious behavior to the NIC.
> 
> Fixes: 1e728b01120c ("net/iavf: rework Tx path")
> 
> ---
> v2: rework patch
> 
> Signed-off-by: Zhichao Zeng <zhichaox.zeng at intel.com>

Tested and passed.
Tested-bu: Ke Xu <ke1.xu at intel.com>

> ---
>  drivers/common/iavf/iavf_osdep.h |  2 +
>  drivers/net/iavf/iavf_rxtx.c     | 95 +++++++++++++++++++-------------
>  2 files changed, 59 insertions(+), 38 deletions(-)




More information about the dev mailing list