Re: [PATCH v4] net/hns3: fix Rx packet without CRC data

2024-12-02 Thread Stephen Hemminger
On Wed, 27 Nov 2024 18:08:07 +0800 Jie Hai wrote: > From: Dengdui Huang > > 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 engin

Re: [PATCH v4] net/hns3: fix Rx packet without CRC data

2024-11-29 Thread huangdengdui
On 2024/11/30 1:12, Stephen Hemminger wrote: > On Fri, 29 Nov 2024 09:36:43 +0800 > Jie Hai wrote: > >>> + >>> +static inline void >>> +hns3_recalculate_crc(struct rte_mbuf *m) >>> +{ >>> + char *append_data; >>> + uint32_t crc; >>> + >>> + crc = rte_net_crc_calc(rte_pktmbuf_mtod(m, void

Re: [PATCH v4] net/hns3: fix Rx packet without CRC data

2024-11-28 Thread Jie Hai
Hi, stephen, Kindly ping for review. Thanks, Jie Hai On 2024/11/27 18:08, Jie Hai wrote: From: Dengdui Huang 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 6