[PATCH 24.11 2/2] net/hns3: fix Rx packet without CRC data
Kevin Traynor
ktraynor at redhat.com
Tue Jul 22 15:03:30 CEST 2025
On 22/07/2025 11:57, Dengdui Huang wrote:
> [ upstream commit 99c065da47c432e9529f761b457cde1fd8c89f20 ]
>
> When KEEP_CRC offload is enabled, the CRC data is still stripped
> in following cases:
> 1. For HIP08 network engine, the packet type is TCP and the length
> is less than or equal to 60B.
> 2. For HIP09 network engine, the packet type is IP and the length
> is less than or equal to 60B.
>
> So driver has to recaculate packet CRC for this rare scenarios.
>
> In addition, to avoid impacting performance, KEEP_CRC is not
> supported when NEON or SVE algorithm is used.
>
> Fixes: 8973d7c4ca12 ("net/hns3: support keeping CRC")
> Cc: stable at dpdk.org
>
> Signed-off-by: Dengdui Huang <huangdengdui at huawei.com>
> Acked-by: Huisong Li <lihuisong at huawei.com>
> Acked-by: Jie Hai <haijie1 at huawei.com>
> ---
> drivers/net/hns3/hns3_ethdev.c | 2 +
> drivers/net/hns3/hns3_ethdev.h | 23 +++++
> drivers/net/hns3/hns3_rxtx.c | 119 +++++++++++++++++++++-----
> drivers/net/hns3/hns3_rxtx.h | 3 +
> drivers/net/hns3/hns3_rxtx_vec.c | 3 +-
> drivers/net/hns3/hns3_rxtx_vec_neon.h | 19 ----
> drivers/net/hns3/hns3_rxtx_vec_sve.c | 3 +-
> 7 files changed, 128 insertions(+), 44 deletions(-)
>
Thanks Dengdui. I will apply this one with the batch in a couple of days.
More information about the stable
mailing list