diff options
Diffstat (limited to 'src/vnet/devices/virtio/virtio_types.api')
-rw-r--r-- | src/vnet/devices/virtio/virtio_types.api | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/vnet/devices/virtio/virtio_types.api b/src/vnet/devices/virtio/virtio_types.api new file mode 100644 index 00000000000..4ed43cb45e8 --- /dev/null +++ b/src/vnet/devices/virtio/virtio_types.api @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2019 Cisco and/or its affiliates. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +option version = "1.0.0"; + +enum virtio_net_features_first_32 +{ + VIRTIO_NET_F_API_CSUM = 0x0001, /* 0 */ + VIRTIO_NET_F_API_GUEST_CSUM = 0x0002, /* 1 */ + VIRTIO_NET_F_API_GUEST_TSO4 = 0x0080, /* 7 */ + VIRTIO_NET_F_API_GUEST_TSO6 = 0x0100, /* 8 */ + VIRTIO_NET_F_API_GUEST_UFO = 0x0400, /* 10 */ + VIRTIO_NET_F_API_HOST_TSO4 = 0x0800, /* 11 */ + VIRTIO_NET_F_API_HOST_TSO6 = 0x1000, /* 12 */ + VIRTIO_NET_F_API_HOST_UFO = 0x4000, /* 14 */ + VIRTIO_NET_F_API_MRG_RXBUF = 0x8000, /* 15 */ + VIRTIO_NET_F_API_CTRL_VQ = 0x00020000, /* 17 */ + VIRTIO_NET_F_API_GUEST_ANNOUNCE = 0x00200000, /* 21 */ + VIRTIO_NET_F_API_MQ = 0x00400000, /* 22 */ + VHOST_F_API_LOG_ALL = 0x04000000, /* 26 */ + VIRTIO_F_API_ANY_LAYOUT = 0x08000000, /* 27 */ + VIRTIO_F_API_INDIRECT_DESC = 0x10000000, /* 28*/ + VHOST_USER_F_API_PROTOCOL_FEATURES = 0x40000000, /* 30 */ +}; + +enum virtio_net_features_last_32 +{ + VIRTIO_F_API_VERSION_1 = 0x0001, /* 32 */ +}; + +/* + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ |