net/virtio: check raw checksum failure
authorChas Williams <3chas3@gmail.com>
Thu, 1 Oct 2020 10:22:45 +0000 (06:22 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 12 Oct 2020 21:14:06 +0000 (23:14 +0200)
commitdd6d6704f5b83e42af6ef3674a54ce7fb80d0254
tree1cea7b70142fe6bfb4393be120690f7c311be2ec
parentd98b0fc1af6c3c752304f3910da1d97a57ddd53b
net/virtio: check raw checksum failure

rte_raw_cksum_mbuf can fail, so we should check to see if it
has. If so, return with an error.

Fixes: 96cb6711939e ("net/virtio: support Rx checksum offload")
Cc: stable@dpdk.org
Signed-off-by: Chas Williams <3chas3@gmail.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_rxtx.c
drivers/net/virtio/virtio_rxtx_packed_avx.c