> -----Original Message-----
> From: Mingjin Ye <[email protected]>
> Sent: Wednesday, November 9, 2022 8:56 PM
> To: [email protected]
> Cc: Yang, Qiming <[email protected]>; [email protected]; Zhou, YidingX
> <[email protected]>; Ye, MingjinX <[email protected]>; Zhang, Qi
> Z <[email protected]>; Lu, Wenzhuo <[email protected]>; Wu,
> Jingjing <[email protected]>; Li, Xiaoyun <[email protected]>; Ferruh
> Yigit <[email protected]>
> Subject: [PATCH v2] net/ice: fix scalar Rx and Tx path segment
> 
> CRC is stripped by the hardware in the scattered Rx path. If the last buffer
> packet length is '0', the scalar Tx path would send empty buffer that causes
> the Tx queue to overflow.
> 
> This patch adds a judgment for the last buffer length to fix this issue, so 
> that
> it would free the mbuf associated to the last one if the last buffer is empty.
> 
> Fixes: 6eac0b7fde95 ("net/ice: support advance Rx/Tx")
> Cc: [email protected]
> 
> Signed-off-by: Mingjin Ye <[email protected]>

Tested and passed.

Tested-by: Ke XU <[email protected]>


> 
> v2:
>       * Fix log level in ice_rxtx.c source file.
> ---
>  drivers/net/ice/ice_rxtx.c | 53 ++++++++++++++++++++++++++++++++++++--
>  1 file changed, 51 insertions(+), 2 deletions(-)
> 

Reply via email to