[dpdk-dev] [PATCH] net/af_xdp: fix unchecked return of recvfrom()
Ferruh Yigit
ferruh.yigit at intel.com
Tue Mar 30 15:50:57 CEST 2021
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 Coverity happy we cast the
> return to 'void'.
>
> Coverity issue: 369671
> Fixes: 63e8989fe5a4 ("net/af_xdp: use recvfrom instead of poll syscall")
>
> Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list