> -----Original Message-----
> From: Zhichao Zeng <[email protected]>
> Sent: Monday, September 26, 2022 1:17 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]>; Sinha, Abhijit
> <[email protected]>;
> Doherty, Declan <[email protected]>; Nicolau, Radu
> <[email protected]>
> 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 <[email protected]>
Tested and passed.
Tested-bu: Ke Xu <[email protected]>
> ---
> drivers/common/iavf/iavf_osdep.h | 2 +
> drivers/net/iavf/iavf_rxtx.c | 95 +++++++++++++++++++-------------
> 2 files changed, 59 insertions(+), 38 deletions(-)