Re: [dpdk-dev] [PATCH] net/af_xdp: fix unchecked return of recvfrom()

2021-03-30 Thread Ferruh Yigit
On 3/25/2021 8:22 AM, Ciara Loftus wrote: Coverity complains that the return value of recvfrom() in the AF_XDP datapath is not checked. We don't care about the return value because in the case of an error we still return 0 from the receive function to indicate no packets were received. So to make

[dpdk-dev] [PATCH] net/af_xdp: fix unchecked return of recvfrom()

2021-03-25 Thread Ciara Loftus
Coverity complains that the return value of recvfrom() in the AF_XDP datapath is not checked. We don't care about the return value because in the case of an error we still return 0 from the receive function to indicate no packets were received. So to make Coverity happy we cast the return to 'void'