Thread (2 messages) 2 messages, 2 authors, 2021-03-30

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

From: Ferruh Yigit <hidden>
Date: 2021-03-30 13:51:06

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 <redacted>
Applied to dpdk-next-net/main, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help