aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/virtio_types.api
blob: 4ed43cb45e817e4e7ac61901f1b47d22cc5ffbf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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:
 */