summaryrefslogtreecommitdiffstats
path: root/binapi/vmxnet3/vmxnet3.ba.go
diff options
context:
space:
mode:
Diffstat (limited to 'binapi/vmxnet3/vmxnet3.ba.go')
-rw-r--r--binapi/vmxnet3/vmxnet3.ba.go181
1 files changed, 174 insertions, 7 deletions
diff --git a/binapi/vmxnet3/vmxnet3.ba.go b/binapi/vmxnet3/vmxnet3.ba.go
index 5aca3c9..0ddcb0d 100644
--- a/binapi/vmxnet3/vmxnet3.ba.go
+++ b/binapi/vmxnet3/vmxnet3.ba.go
@@ -1,14 +1,14 @@
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
-// binapi-generator: v0.4.0
-// VPP: 20.05.1-release
+// binapi-generator: v0.3.5-56-gc0da1f2-dirty
+// VPP: 21.06-release
// source: /usr/share/vpp/api/plugins/vmxnet3.api.json
// Package vmxnet3 contains generated bindings for API file vmxnet3.api.
//
// Contents:
// 2 structs
-// 6 messages
+// 8 messages
//
package vmxnet3
@@ -27,8 +27,8 @@ const _ = api.GoVppAPIPackageIsVersion2
const (
APIFile = "vmxnet3"
- APIVersion = "1.1.0"
- VersionCrc = 0x38928311
+ APIVersion = "1.2.0"
+ VersionCrc = 0x609454ea
)
// Vmxnet3RxList defines type 'vmxnet3_rx_list'.
@@ -48,6 +48,168 @@ type Vmxnet3TxList struct {
TxConsume uint16 `binapi:"u16,name=tx_consume" json:"tx_consume,omitempty"`
}
+// SwVmxnet3InterfaceDetails defines message 'sw_vmxnet3_interface_details'.
+type SwVmxnet3InterfaceDetails struct {
+ SwIfIndex interface_types.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 ethernet_types.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 *SwVmxnet3InterfaceDetails) Reset() { *m = SwVmxnet3InterfaceDetails{} }
+func (*SwVmxnet3InterfaceDetails) GetMessageName() string { return "sw_vmxnet3_interface_details" }
+func (*SwVmxnet3InterfaceDetails) GetCrcString() string { return "6a1a5498" }
+func (*SwVmxnet3InterfaceDetails) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *SwVmxnet3InterfaceDetails) 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 *SwVmxnet3InterfaceDetails) 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 *SwVmxnet3InterfaceDetails) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.SwIfIndex = interface_types.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
+}
+
+// SwVmxnet3InterfaceDump defines message 'sw_vmxnet3_interface_dump'.
+type SwVmxnet3InterfaceDump struct {
+ SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
+}
+
+func (m *SwVmxnet3InterfaceDump) Reset() { *m = SwVmxnet3InterfaceDump{} }
+func (*SwVmxnet3InterfaceDump) GetMessageName() string { return "sw_vmxnet3_interface_dump" }
+func (*SwVmxnet3InterfaceDump) GetCrcString() string { return "f9e6675e" }
+func (*SwVmxnet3InterfaceDump) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *SwVmxnet3InterfaceDump) Size() (size int) {
+ if m == nil {
+ return 0
+ }
+ size += 4 // m.SwIfIndex
+ return size
+}
+func (m *SwVmxnet3InterfaceDump) 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 *SwVmxnet3InterfaceDump) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ return nil
+}
+
// Vmxnet3Create defines message 'vmxnet3_create'.
type Vmxnet3Create struct {
PciAddr uint32 `binapi:"u32,name=pci_addr" json:"pci_addr,omitempty"`
@@ -228,7 +390,7 @@ type Vmxnet3Details struct {
func (m *Vmxnet3Details) Reset() { *m = Vmxnet3Details{} }
func (*Vmxnet3Details) GetMessageName() string { return "vmxnet3_details" }
-func (*Vmxnet3Details) GetCrcString() string { return "829ba055" }
+func (*Vmxnet3Details) GetCrcString() string { return "6a1a5498" }
func (*Vmxnet3Details) GetMessageType() api.MessageType {
return api.ReplyMessage
}
@@ -342,6 +504,7 @@ func (m *Vmxnet3Details) Unmarshal(b []byte) error {
}
// Vmxnet3Dump defines message 'vmxnet3_dump'.
+// Deprecated: the message will be removed in the future versions
type Vmxnet3Dump struct{}
func (m *Vmxnet3Dump) Reset() { *m = Vmxnet3Dump{} }
@@ -370,17 +533,21 @@ func (m *Vmxnet3Dump) Unmarshal(b []byte) error {
func init() { file_vmxnet3_binapi_init() }
func file_vmxnet3_binapi_init() {
+ api.RegisterMessage((*SwVmxnet3InterfaceDetails)(nil), "sw_vmxnet3_interface_details_6a1a5498")
+ api.RegisterMessage((*SwVmxnet3InterfaceDump)(nil), "sw_vmxnet3_interface_dump_f9e6675e")
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((*Vmxnet3Details)(nil), "vmxnet3_details_6a1a5498")
api.RegisterMessage((*Vmxnet3Dump)(nil), "vmxnet3_dump_51077d14")
}
// Messages returns list of all messages in this module.
func AllMessages() []api.Message {
return []api.Message{
+ (*SwVmxnet3InterfaceDetails)(nil),
+ (*SwVmxnet3InterfaceDump)(nil),
(*Vmxnet3Create)(nil),
(*Vmxnet3CreateReply)(nil),
(*Vmxnet3Delete)(nil),