Re: [dpdk-dev] [PATCH] net/igc: fix Rx packet size error

2021-04-19 Thread Wang, Haiyue
> -Original Message- > From: Zhang, AlvinX > Sent: Monday, April 19, 2021 15:15 > To: Wang, Haiyue ; Guo, Jia > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: RE: [PATCH] net/igc: fix Rx packet size error > > Hi Haiyue, > > Thanks for your review. > > > -Original Message- > > Fro

Re: [dpdk-dev] [PATCH] net/igc: fix Rx packet size error

2021-04-19 Thread Zhang, AlvinX
Hi Haiyue, Thanks for your review. > -Original Message- > From: Wang, Haiyue > Sent: Friday, April 16, 2021 9:57 AM > To: Zhang, AlvinX ; Guo, Jia > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: RE: [PATCH] net/igc: fix Rx packet size error > > > -Original Message- > > From: Zha

Re: [dpdk-dev] [PATCH] net/igc: fix Rx packet size error

2021-04-15 Thread Wang, Haiyue
> -Original Message- > From: Zhang, AlvinX > Sent: Friday, April 16, 2021 09:14 > To: Wang, Haiyue ; Guo, Jia > Cc: dev@dpdk.org; Zhang, AlvinX ; sta...@dpdk.org > Subject: [PATCH] net/igc: fix Rx packet size error > > When DEV_RX_OFFLOAD_KEEP_CRC is enabled, the PMD will minus 4 bytes >

[dpdk-dev] [PATCH] net/igc: fix Rx packet size error

2021-04-15 Thread Alvin Zhang
When DEV_RX_OFFLOAD_KEEP_CRC is enabled, the PMD will minus 4 bytes of CRC from the size of a packet, but the NIC will strip the CRC because the CRC strip bit in DVMOLR register is not cleared. This will cause the size of a packet to be 4 bytes less. This patch updates the CRC strip bit according