binapi: remove internal/testbinapi
[govpp.git] / internal / testbinapi / binapi2001 / vmxnet3 / vmxnet3.ba.go
diff --git a/internal/testbinapi/binapi2001/vmxnet3/vmxnet3.ba.go b/internal/testbinapi/binapi2001/vmxnet3/vmxnet3.ba.go
deleted file mode 100644 (file)
index d048166..0000000
+++ /dev/null
@@ -1,682 +0,0 @@
-// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
-// versions:
-//  binapi-generator: v0.5.0-dev
-//  VPP:              20.01
-// source: .vppapi/plugins/vmxnet3.api.json
-
-// Package vmxnet3 contains generated bindings for API file vmxnet3.api.
-//
-// Contents:
-//   2 aliases
-//   6 enums
-//   2 structs
-//   6 messages
-//
-package vmxnet3
-
-import (
-       "net"
-       "strconv"
-
-       api "git.fd.io/govpp.git/api"
-       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    = "vmxnet3"
-       APIVersion = "1.1.0"
-       VersionCrc = 0xe89a60f7
-)
-
-// IfStatusFlags defines enum 'if_status_flags'.
-type IfStatusFlags uint32
-
-const (
-       IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1
-       IF_STATUS_API_FLAG_LINK_UP  IfStatusFlags = 2
-)
-
-var (
-       IfStatusFlags_name = map[uint32]string{
-               1: "IF_STATUS_API_FLAG_ADMIN_UP",
-               2: "IF_STATUS_API_FLAG_LINK_UP",
-       }
-       IfStatusFlags_value = map[string]uint32{
-               "IF_STATUS_API_FLAG_ADMIN_UP": 1,
-               "IF_STATUS_API_FLAG_LINK_UP":  2,
-       }
-)
-
-func (x IfStatusFlags) String() string {
-       s, ok := IfStatusFlags_name[uint32(x)]
-       if ok {
-               return s
-       }
-       str := func(n uint32) string {
-               s, ok := IfStatusFlags_name[uint32(n)]
-               if ok {
-                       return s
-               }
-               return "IfStatusFlags(" + strconv.Itoa(int(n)) + ")"
-       }
-       for i := uint32(0); i <= 32; i++ {
-               val := uint32(x)
-               if val&(1<<i) != 0 {
-                       if s != "" {
-                               s += "|"
-                       }
-                       s += str(1 << i)
-               }
-       }
-       if s == "" {
-               return str(uint32(x))
-       }
-       return s
-}
-
-// IfType defines enum 'if_type'.
-type IfType uint32
-
-const (
-       IF_API_TYPE_HARDWARE IfType = 1
-       IF_API_TYPE_SUB      IfType = 2
-       IF_API_TYPE_P2P      IfType = 3
-       IF_API_TYPE_PIPE     IfType = 4
-)
-
-var (
-       IfType_name = map[uint32]string{
-               1: "IF_API_TYPE_HARDWARE",
-               2: "IF_API_TYPE_SUB",
-               3: "IF_API_TYPE_P2P",
-               4: "IF_API_TYPE_PIPE",
-       }
-       IfType_value = map[string]uint32{
-               "IF_API_TYPE_HARDWARE": 1,
-               "IF_API_TYPE_SUB":      2,
-               "IF_API_TYPE_P2P":      3,
-               "IF_API_TYPE_PIPE":     4,
-       }
-)
-
-func (x IfType) String() string {
-       s, ok := IfType_name[uint32(x)]
-       if ok {
-               return s
-       }
-       return "IfType(" + strconv.Itoa(int(x)) + ")"
-}
-
-// LinkDuplex defines enum 'link_duplex'.
-type LinkDuplex uint32
-
-const (
-       LINK_DUPLEX_API_UNKNOWN LinkDuplex = 0
-       LINK_DUPLEX_API_HALF    LinkDuplex = 1
-       LINK_DUPLEX_API_FULL    LinkDuplex = 2
-)
-
-var (
-       LinkDuplex_name = map[uint32]string{
-               0: "LINK_DUPLEX_API_UNKNOWN",
-               1: "LINK_DUPLEX_API_HALF",
-               2: "LINK_DUPLEX_API_FULL",
-       }
-       LinkDuplex_value = map[string]uint32{
-               "LINK_DUPLEX_API_UNKNOWN": 0,
-               "LINK_DUPLEX_API_HALF":    1,
-               "LINK_DUPLEX_API_FULL":    2,
-       }
-)
-
-func (x LinkDuplex) String() string {
-       s, ok := LinkDuplex_name[uint32(x)]
-       if ok {
-               return s
-       }
-       return "LinkDuplex(" + strconv.Itoa(int(x)) + ")"
-}
-
-// MtuProto defines enum 'mtu_proto'.
-type MtuProto uint32
-
-const (
-       MTU_PROTO_API_L3   MtuProto = 1
-       MTU_PROTO_API_IP4  MtuProto = 2
-       MTU_PROTO_API_IP6  MtuProto = 3
-       MTU_PROTO_API_MPLS MtuProto = 4
-       MTU_PROTO_API_N    MtuProto = 5
-)
-
-var (
-       MtuProto_name = map[uint32]string{
-               1: "MTU_PROTO_API_L3",
-               2: "MTU_PROTO_API_IP4",
-               3: "MTU_PROTO_API_IP6",
-               4: "MTU_PROTO_API_MPLS",
-               5: "MTU_PROTO_API_N",
-       }
-       MtuProto_value = map[string]uint32{
-               "MTU_PROTO_API_L3":   1,
-               "MTU_PROTO_API_IP4":  2,
-               "MTU_PROTO_API_IP6":  3,
-               "MTU_PROTO_API_MPLS": 4,
-               "MTU_PROTO_API_N":    5,
-       }
-)
-
-func (x MtuProto) String() string {
-       s, ok := MtuProto_name[uint32(x)]
-       if ok {
-               return s
-       }
-       return "MtuProto(" + strconv.Itoa(int(x)) + ")"
-}
-
-// RxMode defines enum 'rx_mode'.
-type RxMode uint32
-
-const (
-       RX_MODE_API_UNKNOWN   RxMode = 0
-       RX_MODE_API_POLLING   RxMode = 1
-       RX_MODE_API_INTERRUPT RxMode = 2
-       RX_MODE_API_ADAPTIVE  RxMode = 3
-       RX_MODE_API_DEFAULT   RxMode = 4
-)
-
-var (
-       RxMode_name = map[uint32]string{
-               0: "RX_MODE_API_UNKNOWN",
-               1: "RX_MODE_API_POLLING",
-               2: "RX_MODE_API_INTERRUPT",
-               3: "RX_MODE_API_ADAPTIVE",
-               4: "RX_MODE_API_DEFAULT",
-       }
-       RxMode_value = map[string]uint32{
-               "RX_MODE_API_UNKNOWN":   0,
-               "RX_MODE_API_POLLING":   1,
-               "RX_MODE_API_INTERRUPT": 2,
-               "RX_MODE_API_ADAPTIVE":  3,
-               "RX_MODE_API_DEFAULT":   4,
-       }
-)
-
-func (x RxMode) String() string {
-       s, ok := RxMode_name[uint32(x)]
-       if ok {
-               return s
-       }
-       return "RxMode(" + strconv.Itoa(int(x)) + ")"
-}
-
-// SubIfFlags defines enum 'sub_if_flags'.
-type SubIfFlags uint32
-
-const (
-       SUB_IF_API_FLAG_NO_TAGS           SubIfFlags = 1
-       SUB_IF_API_FLAG_ONE_TAG           SubIfFlags = 2
-       SUB_IF_API_FLAG_TWO_TAGS          SubIfFlags = 4
-       SUB_IF_API_FLAG_DOT1AD            SubIfFlags = 8
-       SUB_IF_API_FLAG_EXACT_MATCH       SubIfFlags = 16
-       SUB_IF_API_FLAG_DEFAULT           SubIfFlags = 32
-       SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY SubIfFlags = 64
-       SUB_IF_API_FLAG_INNER_VLAN_ID_ANY SubIfFlags = 128
-       SUB_IF_API_FLAG_MASK_VNET         SubIfFlags = 254
-       SUB_IF_API_FLAG_DOT1AH            SubIfFlags = 256
-)
-
-var (
-       SubIfFlags_name = map[uint32]string{
-               1:   "SUB_IF_API_FLAG_NO_TAGS",
-               2:   "SUB_IF_API_FLAG_ONE_TAG",
-               4:   "SUB_IF_API_FLAG_TWO_TAGS",
-               8:   "SUB_IF_API_FLAG_DOT1AD",
-               16:  "SUB_IF_API_FLAG_EXACT_MATCH",
-               32:  "SUB_IF_API_FLAG_DEFAULT",
-               64:  "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY",
-               128: "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY",
-               254: "SUB_IF_API_FLAG_MASK_VNET",
-               256: "SUB_IF_API_FLAG_DOT1AH",
-       }
-       SubIfFlags_value = map[string]uint32{
-               "SUB_IF_API_FLAG_NO_TAGS":           1,
-               "SUB_IF_API_FLAG_ONE_TAG":           2,
-               "SUB_IF_API_FLAG_TWO_TAGS":          4,
-               "SUB_IF_API_FLAG_DOT1AD":            8,
-               "SUB_IF_API_FLAG_EXACT_MATCH":       16,
-               "SUB_IF_API_FLAG_DEFAULT":           32,
-               "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY": 64,
-               "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY": 128,
-               "SUB_IF_API_FLAG_MASK_VNET":         254,
-               "SUB_IF_API_FLAG_DOT1AH":            256,
-       }
-)
-
-func (x SubIfFlags) String() string {
-       s, ok := SubIfFlags_name[uint32(x)]
-       if ok {
-               return s
-       }
-       str := func(n uint32) string {
-               s, ok := SubIfFlags_name[uint32(n)]
-               if ok {
-                       return s
-               }
-               return "SubIfFlags(" + strconv.Itoa(int(n)) + ")"
-       }
-       for i := uint32(0); i <= 32; i++ {
-               val := uint32(x)
-               if val&(1<<i) != 0 {
-                       if s != "" {
-                               s += "|"
-                       }
-                       s += str(1 << i)
-               }
-       }
-       if s == "" {
-               return str(uint32(x))
-       }
-       return s
-}
-
-// InterfaceIndex defines alias 'interface_index'.
-type InterfaceIndex uint32
-
-// MacAddress defines alias 'mac_address'.
-type MacAddress [6]uint8
-
-func ParseMacAddress(s string) (MacAddress, error) {
-       var macaddr MacAddress
-       mac, err := net.ParseMAC(s)
-       if err != nil {
-               return macaddr, err
-       }
-       copy(macaddr[:], mac[:])
-       return macaddr, nil
-}
-
-func (x MacAddress) ToMAC() net.HardwareAddr {
-       return net.HardwareAddr(x[:])
-}
-
-func (x MacAddress) String() string {
-       return x.ToMAC().String()
-}
-
-func (x *MacAddress) MarshalText() ([]byte, error) {
-       return []byte(x.String()), nil
-}
-
-func (x *MacAddress) UnmarshalText(text []byte) error {
-       mac, err := ParseMacAddress(string(text))
-       if err != nil {
-               return err
-       }
-       *x = mac
-       return nil
-}
-
-// Vmxnet3RxList defines type 'vmxnet3_rx_list'.
-type Vmxnet3RxList struct {
-       RxQsize   uint16   `binapi:"u16,name=rx_qsize" json:"rx_qsize,omitempty"`
-       RxFill    []uint16 `binapi:"u16[2],name=rx_fill" json:"rx_fill,omitempty"`
-       RxNext    uint16   `binapi:"u16,name=rx_next" json:"rx_next,omitempty"`
-       RxProduce []uint16 `binapi:"u16[2],name=rx_produce" json:"rx_produce,omitempty"`
-       RxConsume []uint16 `binapi:"u16[2],name=rx_consume" json:"rx_consume,omitempty"`
-}
-
-// Vmxnet3TxList defines type 'vmxnet3_tx_list'.
-type Vmxnet3TxList struct {
-       TxQsize   uint16 `binapi:"u16,name=tx_qsize" json:"tx_qsize,omitempty"`
-       TxNext    uint16 `binapi:"u16,name=tx_next" json:"tx_next,omitempty"`
-       TxProduce uint16 `binapi:"u16,name=tx_produce" json:"tx_produce,omitempty"`
-       TxConsume uint16 `binapi:"u16,name=tx_consume" json:"tx_consume,omitempty"`
-}
-
-// Vmxnet3Create defines message 'vmxnet3_create'.
-type Vmxnet3Create struct {
-       PciAddr    uint32 `binapi:"u32,name=pci_addr" json:"pci_addr,omitempty"`
-       EnableElog int32  `binapi:"i32,name=enable_elog" json:"enable_elog,omitempty"`
-       RxqSize    uint16 `binapi:"u16,name=rxq_size" json:"rxq_size,omitempty"`
-       RxqNum     uint16 `binapi:"u16,name=rxq_num" json:"rxq_num,omitempty"`
-       TxqSize    uint16 `binapi:"u16,name=txq_size" json:"txq_size,omitempty"`
-       TxqNum     uint16 `binapi:"u16,name=txq_num" json:"txq_num,omitempty"`
-       Bind       uint8  `binapi:"u8,name=bind" json:"bind,omitempty"`
-       EnableGso  bool   `binapi:"bool,name=enable_gso" json:"enable_gso,omitempty"`
-}
-
-func (m *Vmxnet3Create) Reset()               { *m = Vmxnet3Create{} }
-func (*Vmxnet3Create) GetMessageName() string { return "vmxnet3_create" }
-func (*Vmxnet3Create) GetCrcString() string   { return "71a07314" }
-func (*Vmxnet3Create) GetMessageType() api.MessageType {
-       return api.RequestMessage
-}
-
-func (m *Vmxnet3Create) Size() (size int) {
-       if m == nil {
-               return 0
-       }
-       size += 4 // m.PciAddr
-       size += 4 // m.EnableElog
-       size += 2 // m.RxqSize
-       size += 2 // m.RxqNum
-       size += 2 // m.TxqSize
-       size += 2 // m.TxqNum
-       size += 1 // m.Bind
-       size += 1 // m.EnableGso
-       return size
-}
-func (m *Vmxnet3Create) Marshal(b []byte) ([]byte, error) {
-       if b == nil {
-               b = make([]byte, m.Size())
-       }
-       buf := codec.NewBuffer(b)
-       buf.EncodeUint32(m.PciAddr)
-       buf.EncodeInt32(m.EnableElog)
-       buf.EncodeUint16(m.RxqSize)
-       buf.EncodeUint16(m.RxqNum)
-       buf.EncodeUint16(m.TxqSize)
-       buf.EncodeUint16(m.TxqNum)
-       buf.EncodeUint8(m.Bind)
-       buf.EncodeBool(m.EnableGso)
-       return buf.Bytes(), nil
-}
-func (m *Vmxnet3Create) Unmarshal(b []byte) error {
-       buf := codec.NewBuffer(b)
-       m.PciAddr = buf.DecodeUint32()
-       m.EnableElog = buf.DecodeInt32()
-       m.RxqSize = buf.DecodeUint16()
-       m.RxqNum = buf.DecodeUint16()
-       m.TxqSize = buf.DecodeUint16()
-       m.TxqNum = buf.DecodeUint16()
-       m.Bind = buf.DecodeUint8()
-       m.EnableGso = buf.DecodeBool()
-       return nil
-}
-
-// Vmxnet3CreateReply defines message 'vmxnet3_create_reply'.
-type Vmxnet3CreateReply struct {
-       Retval    int32          `binapi:"i32,name=retval" json:"retval,omitempty"`
-       SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
-}
-
-func (m *Vmxnet3CreateReply) Reset()               { *m = Vmxnet3CreateReply{} }
-func (*Vmxnet3CreateReply) GetMessageName() string { return "vmxnet3_create_reply" }
-func (*Vmxnet3CreateReply) GetCrcString() string   { return "5383d31f" }
-func (*Vmxnet3CreateReply) GetMessageType() api.MessageType {
-       return api.ReplyMessage
-}
-
-func (m *Vmxnet3CreateReply) Size() (size int) {
-       if m == nil {
-               return 0
-       }
-       size += 4 // m.Retval
-       size += 4 // m.SwIfIndex
-       return size
-}
-func (m *Vmxnet3CreateReply) Marshal(b []byte) ([]byte, error) {
-       if b == nil {
-               b = make([]byte, m.Size())
-       }
-       buf := codec.NewBuffer(b)
-       buf.EncodeInt32(m.Retval)
-       buf.EncodeUint32(uint32(m.SwIfIndex))
-       return buf.Bytes(), nil
-}
-func (m *Vmxnet3CreateReply) Unmarshal(b []byte) error {
-       buf := codec.NewBuffer(b)
-       m.Retval = buf.DecodeInt32()
-       m.SwIfIndex = InterfaceIndex(buf.DecodeUint32())
-       return nil
-}
-
-// Vmxnet3Delete defines message 'vmxnet3_delete'.
-type Vmxnet3Delete struct {
-       SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
-}
-
-func (m *Vmxnet3Delete) Reset()               { *m = Vmxnet3Delete{} }
-func (*Vmxnet3Delete) GetMessageName() string { return "vmxnet3_delete" }
-func (*Vmxnet3Delete) GetCrcString() string   { return "f9e6675e" }
-func (*Vmxnet3Delete) GetMessageType() api.MessageType {
-       return api.RequestMessage
-}
-
-func (m *Vmxnet3Delete) Size() (size int) {
-       if m == nil {
-               return 0
-       }
-       size += 4 // m.SwIfIndex
-       return size
-}
-func (m *Vmxnet3Delete) Marshal(b []byte) ([]byte, error) {
-       if b == nil {
-               b = make([]byte, m.Size())
-       }
-       buf := codec.NewBuffer(b)
-       buf.EncodeUint32(uint32(m.SwIfIndex))
-       return buf.Bytes(), nil
-}
-func (m *Vmxnet3Delete) Unmarshal(b []byte) error {
-       buf := codec.NewBuffer(b)
-       m.SwIfIndex = InterfaceIndex(buf.DecodeUint32())
-       return nil
-}
-
-// Vmxnet3DeleteReply defines message 'vmxnet3_delete_reply'.
-type Vmxnet3DeleteReply struct {
-       Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
-}
-
-func (m *Vmxnet3DeleteReply) Reset()               { *m = Vmxnet3DeleteReply{} }
-func (*Vmxnet3DeleteReply) GetMessageName() string { return "vmxnet3_delete_reply" }
-func (*Vmxnet3DeleteReply) GetCrcString() string   { return "e8d4e804" }
-func (*Vmxnet3DeleteReply) GetMessageType() api.MessageType {
-       return api.ReplyMessage
-}
-
-func (m *Vmxnet3DeleteReply) Size() (size int) {
-       if m == nil {
-               return 0
-       }
-       size += 4 // m.Retval
-       return size
-}
-func (m *Vmxnet3DeleteReply) Marshal(b []byte) ([]byte, error) {
-       if b == nil {
-               b = make([]byte, m.Size())
-       }
-       buf := codec.NewBuffer(b)
-       buf.EncodeInt32(m.Retval)
-       return buf.Bytes(), nil
-}
-func (m *Vmxnet3DeleteReply) Unmarshal(b []byte) error {
-       buf := codec.NewBuffer(b)
-       m.Retval = buf.DecodeInt32()
-       return nil
-}
-
-// Vmxnet3Details defines message 'vmxnet3_details'.
-type Vmxnet3Details struct {
-       SwIfIndex   InterfaceIndex    `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
-       IfName      string            `binapi:"string[64],name=if_name" json:"if_name,omitempty"`
-       HwAddr      MacAddress        `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"`
-       PciAddr     uint32            `binapi:"u32,name=pci_addr" json:"pci_addr,omitempty"`
-       Version     uint8             `binapi:"u8,name=version" json:"version,omitempty"`
-       AdminUpDown bool              `binapi:"bool,name=admin_up_down" json:"admin_up_down,omitempty"`
-       RxCount     uint8             `binapi:"u8,name=rx_count" json:"rx_count,omitempty"`
-       RxList      [16]Vmxnet3RxList `binapi:"vmxnet3_rx_list[16],name=rx_list" json:"rx_list,omitempty"`
-       TxCount     uint8             `binapi:"u8,name=tx_count" json:"tx_count,omitempty"`
-       TxList      [8]Vmxnet3TxList  `binapi:"vmxnet3_tx_list[8],name=tx_list" json:"tx_list,omitempty"`
-}
-
-func (m *Vmxnet3Details) Reset()               { *m = Vmxnet3Details{} }
-func (*Vmxnet3Details) GetMessageName() string { return "vmxnet3_details" }
-func (*Vmxnet3Details) GetCrcString() string   { return "829ba055" }
-func (*Vmxnet3Details) GetMessageType() api.MessageType {
-       return api.ReplyMessage
-}
-
-func (m *Vmxnet3Details) Size() (size int) {
-       if m == nil {
-               return 0
-       }
-       size += 4     // m.SwIfIndex
-       size += 64    // m.IfName
-       size += 1 * 6 // m.HwAddr
-       size += 4     // m.PciAddr
-       size += 1     // m.Version
-       size += 1     // m.AdminUpDown
-       size += 1     // m.RxCount
-       for j1 := 0; j1 < 16; j1++ {
-               size += 2     // m.RxList[j1].RxQsize
-               size += 2 * 2 // m.RxList[j1].RxFill
-               size += 2     // m.RxList[j1].RxNext
-               size += 2 * 2 // m.RxList[j1].RxProduce
-               size += 2 * 2 // m.RxList[j1].RxConsume
-       }
-       size += 1 // m.TxCount
-       for j1 := 0; j1 < 8; j1++ {
-               size += 2 // m.TxList[j1].TxQsize
-               size += 2 // m.TxList[j1].TxNext
-               size += 2 // m.TxList[j1].TxProduce
-               size += 2 // m.TxList[j1].TxConsume
-       }
-       return size
-}
-func (m *Vmxnet3Details) Marshal(b []byte) ([]byte, error) {
-       if b == nil {
-               b = make([]byte, m.Size())
-       }
-       buf := codec.NewBuffer(b)
-       buf.EncodeUint32(uint32(m.SwIfIndex))
-       buf.EncodeString(m.IfName, 64)
-       buf.EncodeBytes(m.HwAddr[:], 6)
-       buf.EncodeUint32(m.PciAddr)
-       buf.EncodeUint8(m.Version)
-       buf.EncodeBool(m.AdminUpDown)
-       buf.EncodeUint8(m.RxCount)
-       for j0 := 0; j0 < 16; j0++ {
-               buf.EncodeUint16(m.RxList[j0].RxQsize)
-               for i := 0; i < 2; i++ {
-                       var x uint16
-                       if i < len(m.RxList[j0].RxFill) {
-                               x = uint16(m.RxList[j0].RxFill[i])
-                       }
-                       buf.EncodeUint16(x)
-               }
-               buf.EncodeUint16(m.RxList[j0].RxNext)
-               for i := 0; i < 2; i++ {
-                       var x uint16
-                       if i < len(m.RxList[j0].RxProduce) {
-                               x = uint16(m.RxList[j0].RxProduce[i])
-                       }
-                       buf.EncodeUint16(x)
-               }
-               for i := 0; i < 2; i++ {
-                       var x uint16
-                       if i < len(m.RxList[j0].RxConsume) {
-                               x = uint16(m.RxList[j0].RxConsume[i])
-                       }
-                       buf.EncodeUint16(x)
-               }
-       }
-       buf.EncodeUint8(m.TxCount)
-       for j0 := 0; j0 < 8; j0++ {
-               buf.EncodeUint16(m.TxList[j0].TxQsize)
-               buf.EncodeUint16(m.TxList[j0].TxNext)
-               buf.EncodeUint16(m.TxList[j0].TxProduce)
-               buf.EncodeUint16(m.TxList[j0].TxConsume)
-       }
-       return buf.Bytes(), nil
-}
-func (m *Vmxnet3Details) Unmarshal(b []byte) error {
-       buf := codec.NewBuffer(b)
-       m.SwIfIndex = InterfaceIndex(buf.DecodeUint32())
-       m.IfName = buf.DecodeString(64)
-       copy(m.HwAddr[:], buf.DecodeBytes(6))
-       m.PciAddr = buf.DecodeUint32()
-       m.Version = buf.DecodeUint8()
-       m.AdminUpDown = buf.DecodeBool()
-       m.RxCount = buf.DecodeUint8()
-       for j0 := 0; j0 < 16; j0++ {
-               m.RxList[j0].RxQsize = buf.DecodeUint16()
-               m.RxList[j0].RxFill = make([]uint16, 2)
-               for i := 0; i < len(m.RxList[j0].RxFill); i++ {
-                       m.RxList[j0].RxFill[i] = buf.DecodeUint16()
-               }
-               m.RxList[j0].RxNext = buf.DecodeUint16()
-               m.RxList[j0].RxProduce = make([]uint16, 2)
-               for i := 0; i < len(m.RxList[j0].RxProduce); i++ {
-                       m.RxList[j0].RxProduce[i] = buf.DecodeUint16()
-               }
-               m.RxList[j0].RxConsume = make([]uint16, 2)
-               for i := 0; i < len(m.RxList[j0].RxConsume); i++ {
-                       m.RxList[j0].RxConsume[i] = buf.DecodeUint16()
-               }
-       }
-       m.TxCount = buf.DecodeUint8()
-       for j0 := 0; j0 < 8; j0++ {
-               m.TxList[j0].TxQsize = buf.DecodeUint16()
-               m.TxList[j0].TxNext = buf.DecodeUint16()
-               m.TxList[j0].TxProduce = buf.DecodeUint16()
-               m.TxList[j0].TxConsume = buf.DecodeUint16()
-       }
-       return nil
-}
-
-// Vmxnet3Dump defines message 'vmxnet3_dump'.
-type Vmxnet3Dump struct{}
-
-func (m *Vmxnet3Dump) Reset()               { *m = Vmxnet3Dump{} }
-func (*Vmxnet3Dump) GetMessageName() string { return "vmxnet3_dump" }
-func (*Vmxnet3Dump) GetCrcString() string   { return "51077d14" }
-func (*Vmxnet3Dump) GetMessageType() api.MessageType {
-       return api.RequestMessage
-}
-
-func (m *Vmxnet3Dump) Size() (size int) {
-       if m == nil {
-               return 0
-       }
-       return size
-}
-func (m *Vmxnet3Dump) Marshal(b []byte) ([]byte, error) {
-       if b == nil {
-               b = make([]byte, m.Size())
-       }
-       buf := codec.NewBuffer(b)
-       return buf.Bytes(), nil
-}
-func (m *Vmxnet3Dump) Unmarshal(b []byte) error {
-       return nil
-}
-
-func init() { file_vmxnet3_binapi_init() }
-func file_vmxnet3_binapi_init() {
-       api.RegisterMessage((*Vmxnet3Create)(nil), "vmxnet3_create_71a07314")
-       api.RegisterMessage((*Vmxnet3CreateReply)(nil), "vmxnet3_create_reply_5383d31f")
-       api.RegisterMessage((*Vmxnet3Delete)(nil), "vmxnet3_delete_f9e6675e")
-       api.RegisterMessage((*Vmxnet3DeleteReply)(nil), "vmxnet3_delete_reply_e8d4e804")
-       api.RegisterMessage((*Vmxnet3Details)(nil), "vmxnet3_details_829ba055")
-       api.RegisterMessage((*Vmxnet3Dump)(nil), "vmxnet3_dump_51077d14")
-}
-
-// Messages returns list of all messages in this module.
-func AllMessages() []api.Message {
-       return []api.Message{
-               (*Vmxnet3Create)(nil),
-               (*Vmxnet3CreateReply)(nil),
-               (*Vmxnet3Delete)(nil),
-               (*Vmxnet3DeleteReply)(nil),
-               (*Vmxnet3Details)(nil),
-               (*Vmxnet3Dump)(nil),
-       }
-}