From debc52dea8a81417bb08ca5bb934c7876b6d65e0 Mon Sep 17 00:00:00 2001 From: mhalaj1 Date: Thu, 26 Aug 2021 13:10:48 +0200 Subject: regenerate binapi Signed-off-by: mhalaj1 Change-Id: I9bb6a5ca00aa542128bde0bfbbba7b57b9f16ed2 --- binapi/af_xdp/af_xdp.ba.go | 292 +++++++++++++++++++++++++++++++++++++++++ binapi/af_xdp/af_xdp_rpc.ba.go | 41 ++++++ 2 files changed, 333 insertions(+) create mode 100644 binapi/af_xdp/af_xdp.ba.go create mode 100644 binapi/af_xdp/af_xdp_rpc.ba.go (limited to 'binapi/af_xdp') diff --git a/binapi/af_xdp/af_xdp.ba.go b/binapi/af_xdp/af_xdp.ba.go new file mode 100644 index 0000000..e99892f --- /dev/null +++ b/binapi/af_xdp/af_xdp.ba.go @@ -0,0 +1,292 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. +// versions: +// binapi-generator: v0.3.5-56-gc0da1f2-dirty +// VPP: 21.06-release +// source: /usr/share/vpp/api/plugins/af_xdp.api.json + +// Package af_xdp contains generated bindings for API file af_xdp.api. +// +// Contents: +// 2 enums +// 4 messages +// +package af_xdp + +import ( + "strconv" + + api "git.fd.io/govpp.git/api" + interface_types "git.fd.io/govpp.git/binapi/interface_types" + codec "git.fd.io/govpp.git/codec" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the GoVPP api package it is being compiled against. +// A compilation error at this line likely means your copy of the +// GoVPP api package needs to be updated. +const _ = api.GoVppAPIPackageIsVersion2 + +const ( + APIFile = "af_xdp" + APIVersion = "0.2.0" + VersionCrc = 0x31450826 +) + +// AfXdpMode defines enum 'af_xdp_mode'. +type AfXdpMode uint32 + +const ( + AF_XDP_API_MODE_AUTO AfXdpMode = 0 + AF_XDP_API_MODE_COPY AfXdpMode = 1 + AF_XDP_API_MODE_ZERO_COPY AfXdpMode = 2 +) + +var ( + AfXdpMode_name = map[uint32]string{ + 0: "AF_XDP_API_MODE_AUTO", + 1: "AF_XDP_API_MODE_COPY", + 2: "AF_XDP_API_MODE_ZERO_COPY", + } + AfXdpMode_value = map[string]uint32{ + "AF_XDP_API_MODE_AUTO": 0, + "AF_XDP_API_MODE_COPY": 1, + "AF_XDP_API_MODE_ZERO_COPY": 2, + } +) + +func (x AfXdpMode) String() string { + s, ok := AfXdpMode_name[uint32(x)] + if ok { + return s + } + return "AfXdpMode(" + strconv.Itoa(int(x)) + ")" +} + +// AfXdpFlag defines enum 'af_xdp_flag'. +type AfXdpFlag uint8 + +const ( + AF_XDP_API_FLAGS_NO_SYSCALL_LOCK AfXdpFlag = 1 +) + +var ( + AfXdpFlag_name = map[uint8]string{ + 1: "AF_XDP_API_FLAGS_NO_SYSCALL_LOCK", + } + AfXdpFlag_value = map[string]uint8{ + "AF_XDP_API_FLAGS_NO_SYSCALL_LOCK": 1, + } +) + +func (x AfXdpFlag) String() string { + s, ok := AfXdpFlag_name[uint8(x)] + if ok { + return s + } + str := func(n uint8) string { + s, ok := AfXdpFlag_name[uint8(n)] + if ok { + return s + } + return "AfXdpFlag(" + strconv.Itoa(int(n)) + ")" + } + for i := uint8(0); i <= 8; i++ { + val := uint8(x) + if val&(1<