On Fri, 19 Mar 2021 20:13:20 +0800 "Min Hu (Connor)" <humi...@huawei.com> wrote:
> Hi, all, > DPDK has introduced one offload: DEV_RX_OFFLOAD_KEEP_CRC. It means that > the device has the ablility of keeping CRC(four bytes at the end of > packet)of packet in RX. > In common scenarios, When one packet enter into NIC device, NIC > will check the CRC and then strip the CRC,at last send the packet into > the buffer. > So my question is: > why the DEV_RX_OFFLOAD_KEEP_CRC is introduced into DPDK? I think that > when the packet enter into the NIC, the CRC will has no significance to > APP. Or is there any scenarios that CRC is useful for APP? > Thanks for your reply. Your right it doesn't make sense for almost all applications. Maybe an application testing for bad NIC hardware might use it. It is one of those features introduced in DPDK because "our hardware can do it, therefore it ought to be exposed in DPDK API"...