virtio: virtio_flags api use enumflag instead of enum
[vpp.git] / src / vnet / devices / virtio / virtio.api
index 143d25b..a11492e 100644 (file)
@@ -32,7 +32,7 @@ import "vlib/pci/pci_types.api";
 */
 define virtio_pci_create
 {
-  option deprecated="21.01";
+  option deprecated;
   u32 client_index;
   u32 context;
   vl_api_pci_address_t pci_addr;
@@ -50,18 +50,19 @@ define virtio_pci_create
 */
 define virtio_pci_create_reply
 {
-  option deprecated="21.01";
+  option deprecated;
   u32 context;
   i32 retval;
   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 */
         VIRTIO_API_FLAG_PACKED = 8, /* enable packed ring support, provided it is available from backend */
         VIRTIO_API_FLAG_IN_ORDER = 16, /* enable in order support, provided it is available from backend */
+        VIRTIO_API_FLAG_BUFFERING = 32 [backwards_compatible], /* enable buffering to handle backend jitter/delays */
 };
 
 /** \brief Initialize a new virtio pci interface with the given parameters