From 58da9ac6e691a8c660eb8ca838a154e11da0db68 Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Wed, 22 Jul 2020 04:40:55 +0200 Subject: Fix binapigen decoding and minor improvements - fixed allocating byte slices before copying decoded data - simplified encoding functions - several minor improvements Change-Id: I6669424b89eb86333805cb1b57e4551169980cc2 Signed-off-by: Ondrej Fabry --- .../binapi2001/.vppapi/core/virtio_types.api.json | 93 ++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 internal/testbinapi/binapi2001/.vppapi/core/virtio_types.api.json (limited to 'internal/testbinapi/binapi2001/.vppapi/core/virtio_types.api.json') diff --git a/internal/testbinapi/binapi2001/.vppapi/core/virtio_types.api.json b/internal/testbinapi/binapi2001/.vppapi/core/virtio_types.api.json new file mode 100644 index 0000000..a4cc4cf --- /dev/null +++ b/internal/testbinapi/binapi2001/.vppapi/core/virtio_types.api.json @@ -0,0 +1,93 @@ +{ + "types": [], + "messages": [], + "unions": [], + "enums": [ + [ + "virtio_net_features_first_32", + [ + "VIRTIO_NET_F_API_CSUM", + 1 + ], + [ + "VIRTIO_NET_F_API_GUEST_CSUM", + 2 + ], + [ + "VIRTIO_NET_F_API_GUEST_TSO4", + 128 + ], + [ + "VIRTIO_NET_F_API_GUEST_TSO6", + 256 + ], + [ + "VIRTIO_NET_F_API_GUEST_UFO", + 1024 + ], + [ + "VIRTIO_NET_F_API_HOST_TSO4", + 2048 + ], + [ + "VIRTIO_NET_F_API_HOST_TSO6", + 4096 + ], + [ + "VIRTIO_NET_F_API_HOST_UFO", + 16384 + ], + [ + "VIRTIO_NET_F_API_MRG_RXBUF", + 32768 + ], + [ + "VIRTIO_NET_F_API_CTRL_VQ", + 131072 + ], + [ + "VIRTIO_NET_F_API_GUEST_ANNOUNCE", + 2097152 + ], + [ + "VIRTIO_NET_F_API_MQ", + 4194304 + ], + [ + "VHOST_F_API_LOG_ALL", + 67108864 + ], + [ + "VIRTIO_F_API_ANY_LAYOUT", + 134217728 + ], + [ + "VIRTIO_F_API_INDIRECT_DESC", + 268435456 + ], + [ + "VHOST_USER_F_API_PROTOCOL_FEATURES", + 1073741824 + ], + { + "enumtype": "u32" + } + ], + [ + "virtio_net_features_last_32", + [ + "VIRTIO_F_API_VERSION_1", + 1 + ], + { + "enumtype": "u32" + } + ] + ], + "services": {}, + "options": { + "version": "1.0.0" + }, + "aliases": {}, + "vl_api_version": "0x7a70a44e" +} -- cgit 1.2.3-korg