From c04d8c41d151c82559ddcb90aef3f6dea994b4e9 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Thu, 13 Oct 2022 14:01:03 +0200 Subject: virtio: add option to bind interface to uio driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Type: improvement Change-Id: I30e66370c927afeb62ba3a2b3334bdc2a31d4561 Signed-off-by: Benoît Ganne --- src/vnet/devices/virtio/pci.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/vnet/devices/virtio/pci.h') diff --git a/src/vnet/devices/virtio/pci.h b/src/vnet/devices/virtio/pci.h index db20537bc3f..0cada61d9b8 100644 --- a/src/vnet/devices/virtio/pci.h +++ b/src/vnet/devices/virtio/pci.h @@ -227,6 +227,13 @@ typedef enum #undef _ } virtio_flag_t; +typedef enum +{ + VIRTIO_BIND_NONE = 0, + VIRTIO_BIND_DEFAULT = 1, + VIRTIO_BIND_FORCE = 2, +} __clib_packed virtio_bind_t; + typedef struct { u32 addr; @@ -238,6 +245,7 @@ typedef struct u64 features; u8 gso_enabled; u8 checksum_offload_enabled; + virtio_bind_t bind; u32 buffering_size; u32 virtio_flags; clib_error_t *error; -- cgit 1.2.3-korg