// 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<