From 00c59e4965c72d1d1ab77590fe57ee7f890546a8 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Fri, 15 Dec 2023 08:37:26 +0100 Subject: virtio: virtio_flags api use enumflag instead of enum In the API there is a difference between enum and enumflags. The latter one allowing multiple set entitires, while enum only allows one. Type: fix Change-Id: I5db88c15c85fc6c7130b7b35febcd1ea02ef8f76 Signed-off-by: Ole Troan --- src/vnet/devices/virtio/virtio.api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/devices/virtio') diff --git a/src/vnet/devices/virtio/virtio.api b/src/vnet/devices/virtio/virtio.api index bbe2341a001..a11492ec258 100644 --- a/src/vnet/devices/virtio/virtio.api +++ b/src/vnet/devices/virtio/virtio.api @@ -56,7 +56,7 @@ define virtio_pci_create_reply vl_api_interface_index_t sw_if_index; }; -enum virtio_flags { +enumflag virtio_flags { VIRTIO_API_FLAG_GSO = 1, /* enable gso on the interface */ VIRTIO_API_FLAG_CSUM_OFFLOAD = 2, /* enable checksum offload without gso on the interface */ VIRTIO_API_FLAG_GRO_COALESCE = 4, /* enable packet coalescing on tx side, provided gso enabled */ -- cgit 1.2.3-korg