> -----Original Message-----
> From: Mingjin Ye <[email protected]>
> Sent: Friday, November 4, 2022 1:21 AM
> To: [email protected]
> Cc: [email protected]; Zhou, YidingX <[email protected]>; Ye, MingjinX
> <[email protected]>; Yang, Qiming <[email protected]>; Zhang, Qi
> Z <[email protected]>; Wu, Jingjing <[email protected]>; Lu,
> Wenzhuo <[email protected]>; Ferruh Yigit <[email protected]>; Li,
> Xiaoyun <[email protected]>
> Subject: [PATCH] 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]>


V1 patch verified and passed. Remains some compile errors to fix for redhat.

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


> ---
>  drivers/net/ice/ice_rxtx.c | 53 ++++++++++++++++++++++++++++++++++++--
>  1 file changed, 51 insertions(+), 2 deletions(-)
> 

Reply via email to