virtio: virtio_flags api use enumflag instead of enum 11/40111/2
authorOle Troan <otroan@cisco.com>
Fri, 15 Dec 2023 07:37:26 +0000 (08:37 +0100)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 20 Dec 2023 20:52:33 +0000 (20:52 +0000)
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 <otroan@employees.org>
src/vnet/devices/virtio/virtio.api

index bbe2341..a11492e 100644 (file)
@@ -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 */