af_xdp: ensure at least one queue is created 32/33932/5
authorJoshua Roys <roysjosh@gmail.com>
Fri, 1 Oct 2021 20:41:04 +0000 (16:41 -0400)
committerBeno�t Ganne <bganne@cisco.com>
Mon, 11 Oct 2021 07:37:52 +0000 (07:37 +0000)
commit5e5f800480f4344a3bf22a6df937f94ce5c10ba1
treef7dd942bd8c04a67c3f4ff589e93f80c098533c2
parent6fff5ef8a91e9297b2477b5ee29750bf11dc96a9
af_xdp: ensure at least one queue is created

Attempting to create an af_xdp interface with zerocopy where the
underlying driver didn't support it would lead to a crash due to
queue creation silently failing.

Type: fix

Signed-off-by: Joshua Roys <roysjosh@gmail.com>
Change-Id: Ifd9070b8c2b3023d71120c5cf20f7e89d04e4cb3
src/plugins/af_xdp/device.c