This repository has been archived by the owner on Aug 3, 2020. It is now read-only.
forked from ligato/vpp-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vmxnet3.ba.go
185 lines (160 loc) · 4.57 KB
/
vmxnet3.ba.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
// Code generated by GoVPP binapi-generator. DO NOT EDIT.
// source: /usr/share/vpp/api/plugins/vmxnet3.api.json
/*
Package vmxnet3 is a generated from VPP binary API module 'vmxnet3'.
It contains following objects:
3 services
2 types
6 messages
*/
package vmxnet3
import api "git.fd.io/govpp.git/api"
import struc "github.com/lunixbochs/struc"
import bytes "bytes"
// Reference imports to suppress errors if they are not otherwise used.
var _ = api.RegisterMessage
var _ = struc.Pack
var _ = bytes.NewBuffer
// Services represents VPP binary API services:
type Services interface {
DumpVmxnet3(*Vmxnet3Dump) ([]*Vmxnet3Details, error)
Vmxnet3Create(*Vmxnet3Create) (*Vmxnet3CreateReply, error)
Vmxnet3Delete(*Vmxnet3Delete) (*Vmxnet3DeleteReply, error)
}
/* Types */
// Vmxnet3RxList represents VPP binary API type 'vmxnet3_rx_list':
type Vmxnet3RxList struct {
RxQsize uint16
RxFill []uint16 `struc:"[2]uint16"`
RxNext uint16
RxProduce []uint16 `struc:"[2]uint16"`
RxConsume []uint16 `struc:"[2]uint16"`
}
func (*Vmxnet3RxList) GetTypeName() string {
return "vmxnet3_rx_list"
}
func (*Vmxnet3RxList) GetCrcString() string {
return "ccb3fe88"
}
// Vmxnet3TxList represents VPP binary API type 'vmxnet3_tx_list':
type Vmxnet3TxList struct {
TxQsize uint16
TxNext uint16
TxProduce uint16
TxConsume uint16
}
func (*Vmxnet3TxList) GetTypeName() string {
return "vmxnet3_tx_list"
}
func (*Vmxnet3TxList) GetCrcString() string {
return "f5427b33"
}
/* Messages */
// Vmxnet3Create represents VPP binary API message 'vmxnet3_create':
type Vmxnet3Create struct {
PciAddr uint32
EnableElog int32
RxqSize uint16
RxqNum uint16
TxqSize uint16
TxqNum uint16
Bind uint8
}
func (*Vmxnet3Create) GetMessageName() string {
return "vmxnet3_create"
}
func (*Vmxnet3Create) GetCrcString() string {
return "6da613a5"
}
func (*Vmxnet3Create) GetMessageType() api.MessageType {
return api.RequestMessage
}
// Vmxnet3CreateReply represents VPP binary API message 'vmxnet3_create_reply':
type Vmxnet3CreateReply struct {
Retval int32
SwIfIndex uint32
}
func (*Vmxnet3CreateReply) GetMessageName() string {
return "vmxnet3_create_reply"
}
func (*Vmxnet3CreateReply) GetCrcString() string {
return "fda5941f"
}
func (*Vmxnet3CreateReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// Vmxnet3Delete represents VPP binary API message 'vmxnet3_delete':
type Vmxnet3Delete struct {
SwIfIndex uint32
}
func (*Vmxnet3Delete) GetMessageName() string {
return "vmxnet3_delete"
}
func (*Vmxnet3Delete) GetCrcString() string {
return "529cb13f"
}
func (*Vmxnet3Delete) GetMessageType() api.MessageType {
return api.RequestMessage
}
// Vmxnet3DeleteReply represents VPP binary API message 'vmxnet3_delete_reply':
type Vmxnet3DeleteReply struct {
Retval int32
}
func (*Vmxnet3DeleteReply) GetMessageName() string {
return "vmxnet3_delete_reply"
}
func (*Vmxnet3DeleteReply) GetCrcString() string {
return "e8d4e804"
}
func (*Vmxnet3DeleteReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// Vmxnet3Details represents VPP binary API message 'vmxnet3_details':
type Vmxnet3Details struct {
SwIfIndex uint32
IfName []byte `struc:"[64]byte"`
HwAddr []byte `struc:"[6]byte"`
PciAddr uint32
Version uint8
AdminUpDown uint8
RxCount uint8
RxList []Vmxnet3RxList `struc:"[16]Vmxnet3RxList"`
TxCount uint8
TxList []Vmxnet3TxList `struc:"[8]Vmxnet3TxList"`
}
func (*Vmxnet3Details) GetMessageName() string {
return "vmxnet3_details"
}
func (*Vmxnet3Details) GetCrcString() string {
return "f89fb33a"
}
func (*Vmxnet3Details) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// Vmxnet3Dump represents VPP binary API message 'vmxnet3_dump':
type Vmxnet3Dump struct{}
func (*Vmxnet3Dump) GetMessageName() string {
return "vmxnet3_dump"
}
func (*Vmxnet3Dump) GetCrcString() string {
return "51077d14"
}
func (*Vmxnet3Dump) GetMessageType() api.MessageType {
return api.RequestMessage
}
func init() {
api.RegisterMessage((*Vmxnet3Create)(nil), "vmxnet3.Vmxnet3Create")
api.RegisterMessage((*Vmxnet3CreateReply)(nil), "vmxnet3.Vmxnet3CreateReply")
api.RegisterMessage((*Vmxnet3Delete)(nil), "vmxnet3.Vmxnet3Delete")
api.RegisterMessage((*Vmxnet3DeleteReply)(nil), "vmxnet3.Vmxnet3DeleteReply")
api.RegisterMessage((*Vmxnet3Details)(nil), "vmxnet3.Vmxnet3Details")
api.RegisterMessage((*Vmxnet3Dump)(nil), "vmxnet3.Vmxnet3Dump")
}
var Messages = []api.Message{
(*Vmxnet3Create)(nil),
(*Vmxnet3CreateReply)(nil),
(*Vmxnet3Delete)(nil),
(*Vmxnet3DeleteReply)(nil),
(*Vmxnet3Details)(nil),
(*Vmxnet3Dump)(nil),
}