> -----Original Message-----
> From: Zhichao Zeng <[email protected]>
> Sent: Thursday, September 29, 2022 1:27 PM
> To: [email protected]
> Cc: Yang, Qiming <[email protected]>; Zhou, YidingX
> <[email protected]>; Zhang, Qi Z <[email protected]>; Zeng,
> ZhichaoX <[email protected]>; Wu, Jingjing <[email protected]>;
> Xing, Beilei <[email protected]>; Nicolau, Radu
> <[email protected]>; Sinha, Abhijit <[email protected]>; Doherty,
> Declan <[email protected]>
> Subject: [PATCH v4] 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")
>
> Signed-off-by: Zhichao Zeng <[email protected]>
Tested and passed.
Tested-by: Ke Xu <[email protected]>
> ---
> v4: fix the IPsec TSO issue
> ---
> v3: move macros to iavf header file
> ---
> v2: rework patch
> ---
> drivers/net/iavf/iavf_rxtx.c | 99 ++++++++++++++++++++++--------------
> drivers/net/iavf/iavf_rxtx.h | 4 ++
> 2 files changed, 65 insertions(+), 38 deletions(-)
> --
> 2.25.1