nl-linux 0.4.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/NLSPEC_VERSION +1 -1
  4. data/generated/nl/linux/binder.rb +103 -187
  5. data/generated/nl/linux/conntrack.rb +1053 -1649
  6. data/generated/nl/linux/dev_energymodel.rb +303 -265
  7. data/generated/nl/linux/devlink.rb +4904 -5576
  8. data/generated/nl/linux/dpll.rb +1097 -1467
  9. data/generated/nl/linux/drm_ras.rb +235 -195
  10. data/generated/nl/linux/ethtool.rb +6652 -7415
  11. data/generated/nl/linux/fou.rb +234 -255
  12. data/generated/nl/linux/handshake.rb +208 -280
  13. data/generated/nl/linux/lockd.rb +99 -73
  14. data/generated/nl/linux/mptcp_pm.rb +589 -687
  15. data/generated/nl/linux/net_shaper.rb +520 -615
  16. data/generated/nl/linux/netdev.rb +1640 -1987
  17. data/generated/nl/linux/nfsd.rb +1341 -1215
  18. data/generated/nl/linux/nftables.rb +5143 -4870
  19. data/generated/nl/linux/nl80211.rb +2542 -6316
  20. data/generated/nl/linux/nlctrl.rb +338 -483
  21. data/generated/nl/linux/ovpn.rb +1006 -1522
  22. data/generated/nl/linux/ovs_datapath.rb +291 -186
  23. data/generated/nl/linux/ovs_flow.rb +1393 -2065
  24. data/generated/nl/linux/ovs_packet.rb +186 -223
  25. data/generated/nl/linux/ovs_vport.rb +328 -285
  26. data/generated/nl/linux/psp.rb +812 -717
  27. data/generated/nl/linux/rt_addr.rb +513 -243
  28. data/generated/nl/linux/rt_link.rb +4504 -7238
  29. data/generated/nl/linux/rt_neigh.rb +935 -847
  30. data/generated/nl/linux/rt_route.rb +1198 -871
  31. data/generated/nl/linux/rt_rule.rb +680 -659
  32. data/generated/nl/linux/sunrpc_cache.rb +323 -321
  33. data/generated/nl/linux/tc.rb +9058 -10454
  34. data/generated/nl/linux/tcp_metrics.rb +258 -367
  35. data/generated/nl/linux/team.rb +327 -345
  36. data/generated/nl/linux/wireguard.rb +270 -434
  37. data/lib/nl/linux/nlctrl_resolver.rb +1 -1
  38. data/lib/nl/linux/version.rb +1 -1
  39. data/linux/conntrack.yaml +18 -3
  40. data/linux/devlink.yaml +26 -4
  41. data/linux/dpll.yaml +19 -0
  42. data/linux/netdev.yaml +21 -0
  43. data/linux/nfsd.yaml +111 -0
  44. data/linux/nl80211.yaml +2 -2
  45. data/linux/rt-addr.yaml +4 -0
  46. data/linux/rt-link.yaml +7 -0
  47. data/linux/rt-neigh.yaml +3 -0
  48. data/linux/rt-route.yaml +83 -2
  49. data/sig/generated/nl/linux/binder.rbs +77 -220
  50. data/sig/generated/nl/linux/conntrack.rbs +770 -1954
  51. data/sig/generated/nl/linux/dev_energymodel.rbs +207 -291
  52. data/sig/generated/nl/linux/devlink.rbs +3318 -6068
  53. data/sig/generated/nl/linux/dpll.rbs +791 -1589
  54. data/sig/generated/nl/linux/drm_ras.rbs +160 -208
  55. data/sig/generated/nl/linux/ethtool.rbs +4205 -7581
  56. data/sig/generated/nl/linux/fou.rbs +139 -254
  57. data/sig/generated/nl/linux/handshake.rbs +144 -319
  58. data/sig/generated/nl/linux/lockd.rbs +64 -74
  59. data/sig/generated/nl/linux/mptcp_pm.rbs +426 -835
  60. data/sig/generated/nl/linux/net_shaper.rbs +351 -644
  61. data/sig/generated/nl/linux/netdev.rbs +1151 -2146
  62. data/sig/generated/nl/linux/nfsd.rbs +1047 -1409
  63. data/sig/generated/nl/linux/nftables.rbs +2907 -5030
  64. data/sig/generated/nl/linux/nl80211.rbs +1807 -7964
  65. data/sig/generated/nl/linux/nlctrl.rbs +220 -544
  66. data/sig/generated/nl/linux/ovpn.rbs +835 -1859
  67. data/sig/generated/nl/linux/ovs_datapath.rbs +141 -181
  68. data/sig/generated/nl/linux/ovs_flow.rbs +817 -2332
  69. data/sig/generated/nl/linux/ovs_packet.rbs +110 -237
  70. data/sig/generated/nl/linux/ovs_vport.rbs +174 -294
  71. data/sig/generated/nl/linux/psp.rbs +550 -741
  72. data/sig/generated/nl/linux/rt_addr.rbs +188 -226
  73. data/sig/generated/nl/linux/rt_link.rbs +2687 -8370
  74. data/sig/generated/nl/linux/rt_neigh.rbs +471 -1005
  75. data/sig/generated/nl/linux/rt_route.rbs +632 -862
  76. data/sig/generated/nl/linux/rt_rule.rbs +217 -639
  77. data/sig/generated/nl/linux/sunrpc_cache.rbs +233 -369
  78. data/sig/generated/nl/linux/tc.rbs +6199 -13391
  79. data/sig/generated/nl/linux/tcp_metrics.rbs +179 -421
  80. data/sig/generated/nl/linux/team.rbs +232 -391
  81. data/sig/generated/nl/linux/wireguard.rbs +197 -502
  82. metadata +6 -6
@@ -26,6 +26,10 @@ module Nl
26
26
  # @private
27
27
  MCAST_GROUPS: Hash[::Symbol, ::Nl::McastGroup]
28
28
 
29
+ module Constants
30
+ PAGE_SIZE: ::Integer
31
+ end
32
+
29
33
  module Enums
30
34
  module QueueType
31
35
  Rx: ::Integer
@@ -101,2034 +105,747 @@ module Nl
101
105
 
102
106
  module AttributeSets
103
107
  class Dev < ::Nl::AttributeSet
104
- # Abstract class
105
- class Attribute < ::Nl::AttributeSet::Attribute
106
- end
107
-
108
- # netdev ifindex
109
- class Ifindex < Attribute
110
- TYPE: ::Integer
111
-
112
- NAME: ::Symbol
113
-
114
- # @private
115
- ORDER: ::Integer
116
-
117
- # @private
118
- DATATYPE: untyped
119
- end
120
-
121
- class Pad < Attribute
122
- TYPE: ::Integer
123
-
124
- NAME: ::Symbol
125
-
126
- # @private
127
- ORDER: ::Integer
108
+ module Definitions
109
+ # netdev ifindex
110
+ # @rbs return: ::Integer
111
+ # @return [Integer]
112
+ def ifindex: () -> ::Integer
113
+
114
+ # Bitmask of enabled xdp-features.
115
+ #
116
+ # Known flags are defined in {Flags::XdpAct}.
117
+ # @rbs return: ::Integer
118
+ # @return [Integer]
119
+ def xdp_features: () -> ::Integer
120
+
121
+ # max fragment count supported by ZC driver
122
+ # @rbs return: ::Integer
123
+ # @return [Integer]
124
+ def xdp_zc_max_segs: () -> ::Integer
125
+
126
+ # Bitmask of supported XDP receive metadata features. See {https://docs.kernel.org/networking/xdp-rx-metadata.html Documentation/networking/xdp-rx-metadata.rst} for more details.
127
+ #
128
+ # Known flags are defined in {Flags::XdpRxMetadata}.
129
+ # @rbs return: ::Integer
130
+ # @return [Integer]
131
+ def xdp_rx_metadata_features: () -> ::Integer
132
+
133
+ # Bitmask of enabled AF_XDP features.
134
+ #
135
+ # Known flags are defined in {Flags::XskFlags}.
136
+ # @rbs return: ::Integer
137
+ # @return [Integer]
138
+ def xsk_features: () -> ::Integer
139
+ end
140
+
141
+ include Definitions
142
+
143
+ # Decodes attributes from the decoder into a new attribute set.
144
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
145
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
146
+ end
128
147
 
129
- # @private
130
- DATATYPE: untyped
148
+ class IoUringProviderInfo < ::Nl::AttributeSet
149
+ module Definitions
150
+ # RX buffer length in bytes for this io_uring memory provider.
151
+ # Reflects the rx_buf_len passed at io_uring zerocopy rx
152
+ # registration time.
153
+ # @rbs return: ::Integer
154
+ # @return [Integer]
155
+ def rx_buf_len: () -> ::Integer
131
156
  end
132
157
 
133
- # Bitmask of enabled xdp-features.
134
- #
135
- # Known flags are defined in {Flags::XdpAct}.
136
- class XdpFeatures < Attribute
137
- TYPE: ::Integer
158
+ include Definitions
138
159
 
139
- NAME: ::Symbol
160
+ # Decodes attributes from the decoder into a new attribute set.
161
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
162
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
163
+ end
140
164
 
141
- # @private
142
- ORDER: ::Integer
165
+ class PagePool < ::Nl::AttributeSet
166
+ module Definitions
167
+ # Unique ID of a Page Pool instance.
168
+ # @rbs return: ::Integer
169
+ # @return [Integer]
170
+ def id: () -> ::Integer
171
+
172
+ # ifindex of the netdev to which the pool belongs.
173
+ # May not be reported if the page pool was allocated for a netdev
174
+ # which got destroyed already (page pools may outlast their netdevs
175
+ # because they wait for all memory to be returned).
176
+ # @rbs return: ::Integer
177
+ # @return [Integer]
178
+ def ifindex: () -> ::Integer
179
+
180
+ # Id of NAPI using this Page Pool instance.
181
+ # @rbs return: ::Integer
182
+ # @return [Integer]
183
+ def napi_id: () -> ::Integer
184
+
185
+ # Number of outstanding references to this page pool (allocated
186
+ # but yet to be freed pages). Allocated pages may be held in
187
+ # socket receive queues, driver receive ring, page pool recycling
188
+ # ring, the page pool cache, etc.
189
+ # @rbs return: ::Integer
190
+ # @return [Integer]
191
+ def inflight: () -> ::Integer
192
+
193
+ # Amount of memory held by inflight pages.
194
+ # @rbs return: ::Integer
195
+ # @return [Integer]
196
+ def inflight_mem: () -> ::Integer
197
+
198
+ # Seconds in CLOCK_BOOTTIME of when Page Pool was detached by
199
+ # the driver. Once detached Page Pool can no longer be used to
200
+ # allocate memory.
201
+ # Page Pools wait for all the memory allocated from them to be freed
202
+ # before truly disappearing. "Detached" Page Pools cannot be
203
+ # "re-attached", they are just waiting to disappear.
204
+ # Attribute is absent if Page Pool has not been detached, and
205
+ # can still be used to allocate new memory.
206
+ # @rbs return: ::Integer
207
+ # @return [Integer]
208
+ def detach_time: () -> ::Integer
209
+
210
+ # ID of the dmabuf this page-pool is attached to.
211
+ # @rbs return: ::Integer
212
+ # @return [Integer]
213
+ def dmabuf: () -> ::Integer
214
+
215
+ # io-uring memory provider information.
216
+ # @rbs return: AttributeSets::IoUringProviderInfo
217
+ # @return [AttributeSets::IoUringProviderInfo]
218
+ def io_uring: () -> AttributeSets::IoUringProviderInfo
219
+ end
220
+
221
+ include Definitions
222
+
223
+ # Decodes attributes from the decoder into a new attribute set.
224
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
225
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
226
+ end
143
227
 
144
- # @private
145
- DATATYPE: untyped
146
- end
228
+ class PagePoolInfo < ::Nl::AttributeSet
229
+ module Definitions
230
+ # Unique ID of a Page Pool instance.
231
+ # @rbs return: ::Integer
232
+ # @return [Integer]
233
+ def id: () -> ::Integer
234
+
235
+ # ifindex of the netdev to which the pool belongs.
236
+ # May not be reported if the page pool was allocated for a netdev
237
+ # which got destroyed already (page pools may outlast their netdevs
238
+ # because they wait for all memory to be returned).
239
+ # @rbs return: ::Integer
240
+ # @return [Integer]
241
+ def ifindex: () -> ::Integer
242
+ end
243
+
244
+ include Definitions
245
+
246
+ # Decodes attributes from the decoder into a new attribute set.
247
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
248
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
249
+ end
147
250
 
148
- # max fragment count supported by ZC driver
149
- class XdpZcMaxSegs < Attribute
150
- TYPE: ::Integer
251
+ # Page pool statistics, see docs for struct page_pool_stats
252
+ # for information about individual statistics.
253
+ class PagePoolStats < ::Nl::AttributeSet
254
+ module Definitions
255
+ # Page pool identifying information.
256
+ # @rbs return: AttributeSets::PagePoolInfo
257
+ # @return [AttributeSets::PagePoolInfo]
258
+ def info: () -> AttributeSets::PagePoolInfo
151
259
 
152
- NAME: ::Symbol
260
+ # @rbs return: ::Integer
261
+ # @return [Integer]
262
+ def alloc_fast: () -> ::Integer
153
263
 
154
- # @private
155
- ORDER: ::Integer
264
+ # @rbs return: ::Integer
265
+ # @return [Integer]
266
+ def alloc_slow: () -> ::Integer
156
267
 
157
- # @private
158
- DATATYPE: untyped
159
- end
268
+ # @rbs return: ::Integer
269
+ # @return [Integer]
270
+ def alloc_slow_high_order: () -> ::Integer
160
271
 
161
- # Bitmask of supported XDP receive metadata features. See {https://docs.kernel.org/networking/xdp-rx-metadata.html Documentation/networking/xdp-rx-metadata.rst} for more details.
162
- #
163
- # Known flags are defined in {Flags::XdpRxMetadata}.
164
- class XdpRxMetadataFeatures < Attribute
165
- TYPE: ::Integer
272
+ # @rbs return: ::Integer
273
+ # @return [Integer]
274
+ def alloc_empty: () -> ::Integer
166
275
 
167
- NAME: ::Symbol
276
+ # @rbs return: ::Integer
277
+ # @return [Integer]
278
+ def alloc_refill: () -> ::Integer
168
279
 
169
- # @private
170
- ORDER: ::Integer
280
+ # @rbs return: ::Integer
281
+ # @return [Integer]
282
+ def alloc_waive: () -> ::Integer
171
283
 
172
- # @private
173
- DATATYPE: untyped
174
- end
284
+ # @rbs return: ::Integer
285
+ # @return [Integer]
286
+ def recycle_cached: () -> ::Integer
175
287
 
176
- # Bitmask of enabled AF_XDP features.
177
- #
178
- # Known flags are defined in {Flags::XskFlags}.
179
- class XskFeatures < Attribute
180
- TYPE: ::Integer
288
+ # @rbs return: ::Integer
289
+ # @return [Integer]
290
+ def recycle_cache_full: () -> ::Integer
181
291
 
182
- NAME: ::Symbol
292
+ # @rbs return: ::Integer
293
+ # @return [Integer]
294
+ def recycle_ring: () -> ::Integer
183
295
 
184
- # @private
185
- ORDER: ::Integer
296
+ # @rbs return: ::Integer
297
+ # @return [Integer]
298
+ def recycle_ring_full: () -> ::Integer
186
299
 
187
- # @private
188
- DATATYPE: untyped
300
+ # @rbs return: ::Integer
301
+ # @return [Integer]
302
+ def recycle_released_refcnt: () -> ::Integer
189
303
  end
190
304
 
191
- # @private
192
- BY_NAME: Hash[::Symbol, Attribute]
193
-
194
- # @private
195
- BY_TYPE: Hash[::Integer, Attribute]
196
-
197
- # netdev ifindex
198
- # @rbs return: ::Integer
199
- # @return [Integer]
200
- # @see Ifindex
201
- def ifindex: () -> ::Integer
202
-
203
- # Bitmask of enabled xdp-features.
204
- #
205
- # Known flags are defined in {Flags::XdpAct}.
206
- # @rbs return: ::Integer
207
- # @return [Integer]
208
- # @see XdpFeatures
209
- def xdp_features: () -> ::Integer
210
-
211
- # max fragment count supported by ZC driver
212
- # @rbs return: ::Integer
213
- # @return [Integer]
214
- # @see XdpZcMaxSegs
215
- def xdp_zc_max_segs: () -> ::Integer
216
-
217
- # Bitmask of supported XDP receive metadata features. See {https://docs.kernel.org/networking/xdp-rx-metadata.html Documentation/networking/xdp-rx-metadata.rst} for more details.
218
- #
219
- # Known flags are defined in {Flags::XdpRxMetadata}.
220
- # @rbs return: ::Integer
221
- # @return [Integer]
222
- # @see XdpRxMetadataFeatures
223
- def xdp_rx_metadata_features: () -> ::Integer
224
-
225
- # Bitmask of enabled AF_XDP features.
226
- #
227
- # Known flags are defined in {Flags::XskFlags}.
228
- # @rbs return: ::Integer
229
- # @return [Integer]
230
- # @see XskFeatures
231
- def xsk_features: () -> ::Integer
305
+ include Definitions
232
306
 
233
- # Looks up Attribute class by name.
234
- # @rbs name: Symbol
235
- # @rbs return: Attribute
236
- # @param [Symbol] name
237
- # @return [Attribute]
238
- def self.by_name: (Symbol name) -> Attribute
239
-
240
- # Looks up Attribute class by type value.
241
- # @rbs type: Integer
242
- # @rbs return: Attribute
243
- # @param [Integer] type
244
- # @return [Attribute]
245
- def self.by_type: (Integer type) -> Attribute
307
+ # Decodes attributes from the decoder into a new attribute set.
308
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
309
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
246
310
  end
247
311
 
248
- class IoUringProviderInfo < ::Nl::AttributeSet
249
- # Abstract class
250
- class Attribute < ::Nl::AttributeSet::Attribute
251
- end
252
-
253
- # RX buffer length in bytes for this io_uring memory provider.
254
- # Reflects the rx_buf_len passed at io_uring zerocopy rx
255
- # registration time.
256
- class RxBufLen < Attribute
257
- TYPE: ::Integer
258
-
259
- NAME: ::Symbol
260
-
261
- # @private
262
- ORDER: ::Integer
312
+ class Napi < ::Nl::AttributeSet
313
+ module Definitions
314
+ # ifindex of the netdevice to which NAPI instance belongs.
315
+ # @rbs return: ::Integer
316
+ # @return [Integer]
317
+ def ifindex: () -> ::Integer
318
+
319
+ # ID of the NAPI instance.
320
+ # @rbs return: ::Integer
321
+ # @return [Integer]
322
+ def id: () -> ::Integer
323
+
324
+ # The associated interrupt vector number for the napi
325
+ # @rbs return: ::Integer
326
+ # @return [Integer]
327
+ def irq: () -> ::Integer
328
+
329
+ # PID of the napi thread, if NAPI is configured to operate in threaded mode. If NAPI is not in threaded mode (i.e. uses normal softirq context), the attribute will be absent.
330
+ # @rbs return: ::Integer
331
+ # @return [Integer]
332
+ def pid: () -> ::Integer
333
+
334
+ # The number of consecutive empty polls before IRQ deferral ends and hardware IRQs are re-enabled.
335
+ # @rbs return: ::Integer
336
+ # @return [Integer]
337
+ def defer_hard_irqs: () -> ::Integer
338
+
339
+ # The timeout, in nanoseconds, of when to trigger the NAPI watchdog timer which schedules NAPI processing. Additionally, a non-zero value will also prevent GRO from flushing recent super-frames at the end of a NAPI cycle. This may add receive latency in exchange for reducing the number of frames processed by the network stack.
340
+ # @rbs return: ::Integer
341
+ # @return [Integer]
342
+ def gro_flush_timeout: () -> ::Integer
343
+
344
+ # The timeout, in nanoseconds, of how long to suspend irq processing, if event polling finds events
345
+ # @rbs return: ::Integer
346
+ # @return [Integer]
347
+ def irq_suspend_timeout: () -> ::Integer
348
+
349
+ # Whether the NAPI is configured to operate in threaded polling mode. If this is set to enabled then the NAPI context operates in threaded polling mode. If this is set to busy-poll, then the threaded polling mode also busy polls.
350
+ #
351
+ # Known enum values are defined in {Enums::NapiThreaded}.
352
+ # @rbs return: ::Integer
353
+ # @return [Integer]
354
+ def threaded: () -> ::Integer
355
+ end
356
+
357
+ include Definitions
358
+
359
+ # Decodes attributes from the decoder into a new attribute set.
360
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
361
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
362
+ end
263
363
 
264
- # @private
265
- DATATYPE: untyped
364
+ class XskInfo < ::Nl::AttributeSet
365
+ module Definitions
266
366
  end
267
367
 
268
- # @private
269
- BY_NAME: Hash[::Symbol, Attribute]
270
-
271
- # @private
272
- BY_TYPE: Hash[::Integer, Attribute]
273
-
274
- # RX buffer length in bytes for this io_uring memory provider.
275
- # Reflects the rx_buf_len passed at io_uring zerocopy rx
276
- # registration time.
277
- # @rbs return: ::Integer
278
- # @return [Integer]
279
- # @see RxBufLen
280
- def rx_buf_len: () -> ::Integer
281
-
282
- # Looks up Attribute class by name.
283
- # @rbs name: Symbol
284
- # @rbs return: Attribute
285
- # @param [Symbol] name
286
- # @return [Attribute]
287
- def self.by_name: (Symbol name) -> Attribute
368
+ include Definitions
288
369
 
289
- # Looks up Attribute class by type value.
290
- # @rbs type: Integer
291
- # @rbs return: Attribute
292
- # @param [Integer] type
293
- # @return [Attribute]
294
- def self.by_type: (Integer type) -> Attribute
370
+ # Decodes attributes from the decoder into a new attribute set.
371
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
372
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
295
373
  end
296
374
 
297
- class PagePool < ::Nl::AttributeSet
298
- # Abstract class
299
- class Attribute < ::Nl::AttributeSet::Attribute
300
- end
301
-
302
- # Unique ID of a Page Pool instance.
303
- class Id < Attribute
304
- TYPE: ::Integer
375
+ class Queue < ::Nl::AttributeSet
376
+ module Definitions
377
+ # Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
378
+ # @rbs return: ::Integer
379
+ # @return [Integer]
380
+ def id: () -> ::Integer
381
+
382
+ # ifindex of the netdevice to which the queue belongs.
383
+ # @rbs return: ::Integer
384
+ # @return [Integer]
385
+ def ifindex: () -> ::Integer
386
+
387
+ # Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.
388
+ #
389
+ # Known enum values are defined in {Enums::QueueType}.
390
+ # @rbs return: ::Integer
391
+ # @return [Integer]
392
+ def type: () -> ::Integer
393
+
394
+ # ID of the NAPI instance which services this queue.
395
+ # @rbs return: ::Integer
396
+ # @return [Integer]
397
+ def napi_id: () -> ::Integer
398
+
399
+ # ID of the dmabuf attached to this queue, if any.
400
+ # @rbs return: ::Integer
401
+ # @return [Integer]
402
+ def dmabuf: () -> ::Integer
403
+
404
+ # io_uring memory provider information.
405
+ # @rbs return: AttributeSets::IoUringProviderInfo
406
+ # @return [AttributeSets::IoUringProviderInfo]
407
+ def io_uring: () -> AttributeSets::IoUringProviderInfo
408
+
409
+ # XSK information for this queue, if any.
410
+ # @rbs return: AttributeSets::XskInfo
411
+ # @return [AttributeSets::XskInfo]
412
+ def xsk: () -> AttributeSets::XskInfo
413
+
414
+ # A queue from a virtual device can have a lease which refers to
415
+ # another queue from a physical device. This is useful for memory
416
+ # providers and AF_XDP operations which take an ifindex and queue id
417
+ # to allow applications to bind against virtual devices in containers.
418
+ # @rbs return: AttributeSets::Lease
419
+ # @return [AttributeSets::Lease]
420
+ def lease: () -> AttributeSets::Lease
421
+ end
422
+
423
+ include Definitions
424
+
425
+ # Decodes attributes from the decoder into a new attribute set.
426
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
427
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
428
+ end
305
429
 
306
- NAME: ::Symbol
430
+ # Get device statistics, scoped to a device or a queue.
431
+ # These statistics extend (and partially duplicate) statistics available
432
+ # in struct rtnl_link_stats64.
433
+ # Value of the `scope` attribute determines how statistics are
434
+ # aggregated. When aggregated for the entire device the statistics
435
+ # represent the total number of events since last explicit reset of
436
+ # the device (i.e. not a reconfiguration like changing queue count).
437
+ # When reported per-queue, however, the statistics may not add
438
+ # up to the total number of events, will only be reported for currently
439
+ # active objects, and will likely report the number of events since last
440
+ # reconfiguration.
441
+ class Qstats < ::Nl::AttributeSet
442
+ module Definitions
443
+ # ifindex of the netdevice to which stats belong.
444
+ # @rbs return: ::Integer
445
+ # @return [Integer]
446
+ def ifindex: () -> ::Integer
447
+
448
+ # Queue type as rx, tx, for queue-id.
449
+ #
450
+ # Known enum values are defined in {Enums::QueueType}.
451
+ # @rbs return: ::Integer
452
+ # @return [Integer]
453
+ def queue_type: () -> ::Integer
454
+
455
+ # Queue ID, if stats are scoped to a single queue instance.
456
+ # @rbs return: ::Integer
457
+ # @return [Integer]
458
+ def queue_id: () -> ::Integer
459
+
460
+ # What object type should be used to iterate over the stats.
461
+ #
462
+ #
463
+ # Known flags are defined in {Flags::QstatsScope}.
464
+ # @rbs return: ::Integer
465
+ # @return [Integer]
466
+ def scope: () -> ::Integer
467
+
468
+ # Number of wire packets successfully received and passed to the stack.
469
+ # For drivers supporting XDP, XDP is considered the first layer
470
+ # of the stack, so packets consumed by XDP are still counted here.
471
+ # @rbs return: ::Integer
472
+ # @return [Integer]
473
+ def rx_packets: () -> ::Integer
474
+
475
+ # Successfully received bytes, see `rx-packets`.
476
+ # @rbs return: ::Integer
477
+ # @return [Integer]
478
+ def rx_bytes: () -> ::Integer
479
+
480
+ # Number of wire packets successfully sent. Packet is considered to be
481
+ # successfully sent once it is in device memory (usually this means
482
+ # the device has issued a DMA completion for the packet).
483
+ # @rbs return: ::Integer
484
+ # @return [Integer]
485
+ def tx_packets: () -> ::Integer
486
+
487
+ # Successfully sent bytes, see `tx-packets`.
488
+ # @rbs return: ::Integer
489
+ # @return [Integer]
490
+ def tx_bytes: () -> ::Integer
491
+
492
+ # Number of times skb or buffer allocation failed on the Rx datapath.
493
+ # Allocation failure may, or may not result in a packet drop, depending
494
+ # on driver implementation and whether system recovers quickly.
495
+ # @rbs return: ::Integer
496
+ # @return [Integer]
497
+ def rx_alloc_fail: () -> ::Integer
498
+
499
+ # Number of all packets which entered the device, but never left it,
500
+ # including but not limited to: packets dropped due to lack of buffer
501
+ # space, processing errors, explicit or implicit policies and packet
502
+ # filters.
503
+ # @rbs return: ::Integer
504
+ # @return [Integer]
505
+ def rx_hw_drops: () -> ::Integer
506
+
507
+ # Number of packets dropped due to transient lack of resources, such as
508
+ # buffer space, host descriptors etc.
509
+ # @rbs return: ::Integer
510
+ # @return [Integer]
511
+ def rx_hw_drop_overruns: () -> ::Integer
512
+
513
+ # Number of packets that were marked as CHECKSUM_COMPLETE.
514
+ # @rbs return: ::Integer
515
+ # @return [Integer]
516
+ def rx_csum_complete: () -> ::Integer
517
+
518
+ # Number of packets that were marked as CHECKSUM_UNNECESSARY.
519
+ # @rbs return: ::Integer
520
+ # @return [Integer]
521
+ def rx_csum_unnecessary: () -> ::Integer
522
+
523
+ # Number of packets that were not checksummed by device.
524
+ # @rbs return: ::Integer
525
+ # @return [Integer]
526
+ def rx_csum_none: () -> ::Integer
527
+
528
+ # Number of packets with bad checksum. The packets are not discarded,
529
+ # but still delivered to the stack.
530
+ # @rbs return: ::Integer
531
+ # @return [Integer]
532
+ def rx_csum_bad: () -> ::Integer
533
+
534
+ # Number of packets that were coalesced from smaller packets by the
535
+ # device. Counts only packets coalesced with the HW-GRO netdevice
536
+ # feature, LRO-coalesced packets are not counted.
537
+ # @rbs return: ::Integer
538
+ # @return [Integer]
539
+ def rx_hw_gro_packets: () -> ::Integer
540
+
541
+ # See `rx-hw-gro-packets`.
542
+ # @rbs return: ::Integer
543
+ # @return [Integer]
544
+ def rx_hw_gro_bytes: () -> ::Integer
545
+
546
+ # Number of packets that were coalesced to bigger packetss with the
547
+ # HW-GRO netdevice feature. LRO-coalesced packets are not counted.
548
+ # @rbs return: ::Integer
549
+ # @return [Integer]
550
+ def rx_hw_gro_wire_packets: () -> ::Integer
551
+
552
+ # See `rx-hw-gro-wire-packets`.
553
+ # @rbs return: ::Integer
554
+ # @return [Integer]
555
+ def rx_hw_gro_wire_bytes: () -> ::Integer
556
+
557
+ # Number of the packets dropped by the device due to the received
558
+ # packets bitrate exceeding the device rate limit.
559
+ # @rbs return: ::Integer
560
+ # @return [Integer]
561
+ def rx_hw_drop_ratelimits: () -> ::Integer
562
+
563
+ # Number of packets that arrived at the device but never left it,
564
+ # encompassing packets dropped for reasons such as processing errors, as
565
+ # well as those affected by explicitly defined policies and packet
566
+ # filtering criteria.
567
+ # @rbs return: ::Integer
568
+ # @return [Integer]
569
+ def tx_hw_drops: () -> ::Integer
570
+
571
+ # Number of packets dropped because they were invalid or malformed.
572
+ # @rbs return: ::Integer
573
+ # @return [Integer]
574
+ def tx_hw_drop_errors: () -> ::Integer
575
+
576
+ # Number of packets that did not require the device to calculate the
577
+ # checksum.
578
+ # @rbs return: ::Integer
579
+ # @return [Integer]
580
+ def tx_csum_none: () -> ::Integer
581
+
582
+ # Number of packets that required the device to calculate the checksum.
583
+ # This counter includes the number of GSO wire packets for which device
584
+ # calculated the L4 checksum.
585
+ # @rbs return: ::Integer
586
+ # @return [Integer]
587
+ def tx_needs_csum: () -> ::Integer
588
+
589
+ # Number of packets that necessitated segmentation into smaller packets
590
+ # by the device.
591
+ # @rbs return: ::Integer
592
+ # @return [Integer]
593
+ def tx_hw_gso_packets: () -> ::Integer
594
+
595
+ # See `tx-hw-gso-packets`.
596
+ # @rbs return: ::Integer
597
+ # @return [Integer]
598
+ def tx_hw_gso_bytes: () -> ::Integer
599
+
600
+ # Number of wire-sized packets generated by processing
601
+ # `tx-hw-gso-packets`
602
+ # @rbs return: ::Integer
603
+ # @return [Integer]
604
+ def tx_hw_gso_wire_packets: () -> ::Integer
605
+
606
+ # See `tx-hw-gso-wire-packets`.
607
+ # @rbs return: ::Integer
608
+ # @return [Integer]
609
+ def tx_hw_gso_wire_bytes: () -> ::Integer
610
+
611
+ # Number of the packets dropped by the device due to the transmit
612
+ # packets bitrate exceeding the device rate limit.
613
+ # @rbs return: ::Integer
614
+ # @return [Integer]
615
+ def tx_hw_drop_ratelimits: () -> ::Integer
616
+
617
+ # Number of times driver paused accepting new tx packets
618
+ # from the stack to this queue, because the queue was full.
619
+ # Note that if BQL is supported and enabled on the device
620
+ # the networking stack will avoid queuing a lot of data at once.
621
+ # @rbs return: ::Integer
622
+ # @return [Integer]
623
+ def tx_stop: () -> ::Integer
624
+
625
+ # Number of times driver re-started accepting send
626
+ # requests to this queue from the stack.
627
+ # @rbs return: ::Integer
628
+ # @return [Integer]
629
+ def tx_wake: () -> ::Integer
630
+ end
631
+
632
+ include Definitions
633
+
634
+ # Decodes attributes from the decoder into a new attribute set.
635
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
636
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
637
+ end
307
638
 
308
- # @private
309
- ORDER: ::Integer
639
+ class QueueId < ::Nl::AttributeSet
640
+ module Definitions
641
+ # Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
642
+ # @rbs return: ::Integer
643
+ # @return [Integer]
644
+ def id: () -> ::Integer
310
645
 
311
- # @private
312
- DATATYPE: untyped
646
+ # Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.
647
+ #
648
+ # Known enum values are defined in {Enums::QueueType}.
649
+ # @rbs return: ::Integer
650
+ # @return [Integer]
651
+ def type: () -> ::Integer
313
652
  end
314
653
 
315
- # ifindex of the netdev to which the pool belongs.
316
- # May not be reported if the page pool was allocated for a netdev
317
- # which got destroyed already (page pools may outlast their netdevs
318
- # because they wait for all memory to be returned).
319
- class Ifindex < Attribute
320
- TYPE: ::Integer
321
-
322
- NAME: ::Symbol
323
-
324
- # @private
325
- ORDER: ::Integer
326
-
327
- # @private
328
- DATATYPE: untyped
329
- end
654
+ include Definitions
330
655
 
331
- # Id of NAPI using this Page Pool instance.
332
- class NapiId < Attribute
333
- TYPE: ::Integer
656
+ # Decodes attributes from the decoder into a new attribute set.
657
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
658
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
659
+ end
334
660
 
335
- NAME: ::Symbol
661
+ class Lease < ::Nl::AttributeSet
662
+ module Definitions
663
+ # The netdev ifindex to lease the queue from.
664
+ # @rbs return: ::Integer
665
+ # @return [Integer]
666
+ def ifindex: () -> ::Integer
336
667
 
337
- # @private
338
- ORDER: ::Integer
668
+ # The netdev queue to lease from.
669
+ # @rbs return: AttributeSets::QueueId
670
+ # @return [AttributeSets::QueueId]
671
+ def queue: () -> AttributeSets::QueueId
339
672
 
340
- # @private
341
- DATATYPE: untyped
673
+ # The network namespace id of the netdev.
674
+ # @rbs return: ::Integer
675
+ # @return [Integer]
676
+ def netns_id: () -> ::Integer
342
677
  end
343
678
 
344
- # Number of outstanding references to this page pool (allocated
345
- # but yet to be freed pages). Allocated pages may be held in
346
- # socket receive queues, driver receive ring, page pool recycling
347
- # ring, the page pool cache, etc.
348
- class Inflight < Attribute
349
- TYPE: ::Integer
350
-
351
- NAME: ::Symbol
352
-
353
- # @private
354
- ORDER: ::Integer
355
-
356
- # @private
357
- DATATYPE: untyped
358
- end
679
+ include Definitions
359
680
 
360
- # Amount of memory held by inflight pages.
361
- class InflightMem < Attribute
362
- TYPE: ::Integer
681
+ # Decodes attributes from the decoder into a new attribute set.
682
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
683
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
684
+ end
363
685
 
364
- NAME: ::Symbol
686
+ class Dmabuf < ::Nl::AttributeSet
687
+ module Definitions
688
+ # netdev ifindex to bind the dmabuf to.
689
+ # @rbs return: ::Integer
690
+ # @return [Integer]
691
+ def ifindex: () -> ::Integer
692
+
693
+ # receive queues to bind the dmabuf to.
694
+ # @rbs return: ::Array[AttributeSets::QueueId]
695
+ # @return [Array<AttributeSets::QueueId>]
696
+ def queues: () -> ::Array[AttributeSets::QueueId]
697
+
698
+ # dmabuf file descriptor to bind.
699
+ # @rbs return: ::Integer
700
+ # @return [Integer]
701
+ def fd: () -> ::Integer
702
+
703
+ # id of the dmabuf binding
704
+ # @rbs return: ::Integer
705
+ # @return [Integer]
706
+ def id: () -> ::Integer
707
+
708
+ # Size in bytes of each device page the NIC writes into from the bound
709
+ # dmabuf. Must be a power of two and >= PAGE_SIZE; defaults to
710
+ # PAGE_SIZE.
711
+ # @rbs return: ::Integer
712
+ # @return [Integer]
713
+ def rx_page_size: () -> ::Integer
714
+ end
715
+
716
+ include Definitions
717
+
718
+ # Decodes attributes from the decoder into a new attribute set.
719
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
720
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
721
+ end
722
+ end
365
723
 
724
+ module AttributeSets
725
+ class Dev
726
+ module Definitions
366
727
  # @private
367
- ORDER: ::Integer
728
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
368
729
 
369
730
  # @private
370
- DATATYPE: untyped
731
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
371
732
  end
733
+ end
372
734
 
373
- # Seconds in CLOCK_BOOTTIME of when Page Pool was detached by
374
- # the driver. Once detached Page Pool can no longer be used to
375
- # allocate memory.
376
- # Page Pools wait for all the memory allocated from them to be freed
377
- # before truly disappearing. "Detached" Page Pools cannot be
378
- # "re-attached", they are just waiting to disappear.
379
- # Attribute is absent if Page Pool has not been detached, and
380
- # can still be used to allocate new memory.
381
- class DetachTime < Attribute
382
- TYPE: ::Integer
383
-
384
- NAME: ::Symbol
385
-
735
+ class IoUringProviderInfo
736
+ module Definitions
386
737
  # @private
387
- ORDER: ::Integer
738
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
388
739
 
389
740
  # @private
390
- DATATYPE: untyped
741
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
391
742
  end
743
+ end
392
744
 
393
- # ID of the dmabuf this page-pool is attached to.
394
- class Dmabuf < Attribute
395
- TYPE: ::Integer
396
-
397
- NAME: ::Symbol
398
-
399
- # @private
400
- ORDER: ::Integer
401
-
745
+ class PagePool
746
+ module Definitions
402
747
  # @private
403
- DATATYPE: untyped
404
- end
405
-
406
- # io-uring memory provider information.
407
- class IoUring < Attribute
408
- TYPE: ::Integer
409
-
410
- NAME: ::Symbol
748
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
411
749
 
412
750
  # @private
413
- ORDER: ::Integer
751
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
414
752
  end
415
-
416
- # @private
417
- BY_NAME: Hash[::Symbol, Attribute]
418
-
419
- # @private
420
- BY_TYPE: Hash[::Integer, Attribute]
421
-
422
- # Unique ID of a Page Pool instance.
423
- # @rbs return: ::Integer
424
- # @return [Integer]
425
- # @see Id
426
- def id: () -> ::Integer
427
-
428
- # ifindex of the netdev to which the pool belongs.
429
- # May not be reported if the page pool was allocated for a netdev
430
- # which got destroyed already (page pools may outlast their netdevs
431
- # because they wait for all memory to be returned).
432
- # @rbs return: ::Integer
433
- # @return [Integer]
434
- # @see Ifindex
435
- def ifindex: () -> ::Integer
436
-
437
- # Id of NAPI using this Page Pool instance.
438
- # @rbs return: ::Integer
439
- # @return [Integer]
440
- # @see NapiId
441
- def napi_id: () -> ::Integer
442
-
443
- # Number of outstanding references to this page pool (allocated
444
- # but yet to be freed pages). Allocated pages may be held in
445
- # socket receive queues, driver receive ring, page pool recycling
446
- # ring, the page pool cache, etc.
447
- # @rbs return: ::Integer
448
- # @return [Integer]
449
- # @see Inflight
450
- def inflight: () -> ::Integer
451
-
452
- # Amount of memory held by inflight pages.
453
- # @rbs return: ::Integer
454
- # @return [Integer]
455
- # @see InflightMem
456
- def inflight_mem: () -> ::Integer
457
-
458
- # Seconds in CLOCK_BOOTTIME of when Page Pool was detached by
459
- # the driver. Once detached Page Pool can no longer be used to
460
- # allocate memory.
461
- # Page Pools wait for all the memory allocated from them to be freed
462
- # before truly disappearing. "Detached" Page Pools cannot be
463
- # "re-attached", they are just waiting to disappear.
464
- # Attribute is absent if Page Pool has not been detached, and
465
- # can still be used to allocate new memory.
466
- # @rbs return: ::Integer
467
- # @return [Integer]
468
- # @see DetachTime
469
- def detach_time: () -> ::Integer
470
-
471
- # ID of the dmabuf this page-pool is attached to.
472
- # @rbs return: ::Integer
473
- # @return [Integer]
474
- # @see Dmabuf
475
- def dmabuf: () -> ::Integer
476
-
477
- # io-uring memory provider information.
478
- # @rbs return: AttributeSets::IoUringProviderInfo
479
- # @return [AttributeSets::IoUringProviderInfo]
480
- # @see IoUring
481
- def io_uring: () -> AttributeSets::IoUringProviderInfo
482
-
483
- # Looks up Attribute class by name.
484
- # @rbs name: Symbol
485
- # @rbs return: Attribute
486
- # @param [Symbol] name
487
- # @return [Attribute]
488
- def self.by_name: (Symbol name) -> Attribute
489
-
490
- # Looks up Attribute class by type value.
491
- # @rbs type: Integer
492
- # @rbs return: Attribute
493
- # @param [Integer] type
494
- # @return [Attribute]
495
- def self.by_type: (Integer type) -> Attribute
496
753
  end
497
754
 
498
- class PagePoolInfo < ::Nl::AttributeSet
499
- # Abstract class
500
- class Attribute < ::Nl::AttributeSet::Attribute
501
- end
502
-
503
- # Unique ID of a Page Pool instance.
504
- class Id < Attribute
505
- TYPE: ::Integer
506
-
507
- NAME: ::Symbol
508
-
755
+ class PagePoolInfo
756
+ module Definitions
509
757
  # @private
510
- ORDER: ::Integer
758
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
511
759
 
512
760
  # @private
513
- DATATYPE: untyped
761
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
514
762
  end
763
+ end
515
764
 
516
- # ifindex of the netdev to which the pool belongs.
517
- # May not be reported if the page pool was allocated for a netdev
518
- # which got destroyed already (page pools may outlast their netdevs
519
- # because they wait for all memory to be returned).
520
- class Ifindex < Attribute
521
- TYPE: ::Integer
522
-
523
- NAME: ::Symbol
524
-
765
+ class PagePoolStats
766
+ module Definitions
525
767
  # @private
526
- ORDER: ::Integer
768
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
527
769
 
528
770
  # @private
529
- DATATYPE: untyped
771
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
530
772
  end
531
-
532
- # @private
533
- BY_NAME: Hash[::Symbol, Attribute]
534
-
535
- # @private
536
- BY_TYPE: Hash[::Integer, Attribute]
537
-
538
- # Unique ID of a Page Pool instance.
539
- # @rbs return: ::Integer
540
- # @return [Integer]
541
- # @see Id
542
- def id: () -> ::Integer
543
-
544
- # ifindex of the netdev to which the pool belongs.
545
- # May not be reported if the page pool was allocated for a netdev
546
- # which got destroyed already (page pools may outlast their netdevs
547
- # because they wait for all memory to be returned).
548
- # @rbs return: ::Integer
549
- # @return [Integer]
550
- # @see Ifindex
551
- def ifindex: () -> ::Integer
552
-
553
- # Looks up Attribute class by name.
554
- # @rbs name: Symbol
555
- # @rbs return: Attribute
556
- # @param [Symbol] name
557
- # @return [Attribute]
558
- def self.by_name: (Symbol name) -> Attribute
559
-
560
- # Looks up Attribute class by type value.
561
- # @rbs type: Integer
562
- # @rbs return: Attribute
563
- # @param [Integer] type
564
- # @return [Attribute]
565
- def self.by_type: (Integer type) -> Attribute
566
- end
567
-
568
- # Page pool statistics, see docs for struct page_pool_stats
569
- # for information about individual statistics.
570
- class PagePoolStats < ::Nl::AttributeSet
571
- # Abstract class
572
- class Attribute < ::Nl::AttributeSet::Attribute
573
- end
574
-
575
- # Page pool identifying information.
576
- class Info < Attribute
577
- TYPE: ::Integer
578
-
579
- NAME: ::Symbol
580
-
581
- # @private
582
- ORDER: ::Integer
583
- end
584
-
585
- class AllocFast < Attribute
586
- TYPE: ::Integer
587
-
588
- NAME: ::Symbol
589
-
590
- # @private
591
- ORDER: ::Integer
592
-
593
- # @private
594
- DATATYPE: untyped
595
- end
596
-
597
- class AllocSlow < Attribute
598
- TYPE: ::Integer
599
-
600
- NAME: ::Symbol
601
-
602
- # @private
603
- ORDER: ::Integer
604
-
605
- # @private
606
- DATATYPE: untyped
607
- end
608
-
609
- class AllocSlowHighOrder < Attribute
610
- TYPE: ::Integer
611
-
612
- NAME: ::Symbol
613
-
614
- # @private
615
- ORDER: ::Integer
616
-
617
- # @private
618
- DATATYPE: untyped
619
- end
620
-
621
- class AllocEmpty < Attribute
622
- TYPE: ::Integer
623
-
624
- NAME: ::Symbol
625
-
626
- # @private
627
- ORDER: ::Integer
628
-
629
- # @private
630
- DATATYPE: untyped
631
- end
632
-
633
- class AllocRefill < Attribute
634
- TYPE: ::Integer
635
-
636
- NAME: ::Symbol
637
-
638
- # @private
639
- ORDER: ::Integer
640
-
641
- # @private
642
- DATATYPE: untyped
643
- end
644
-
645
- class AllocWaive < Attribute
646
- TYPE: ::Integer
647
-
648
- NAME: ::Symbol
649
-
650
- # @private
651
- ORDER: ::Integer
652
-
653
- # @private
654
- DATATYPE: untyped
655
- end
656
-
657
- class RecycleCached < Attribute
658
- TYPE: ::Integer
659
-
660
- NAME: ::Symbol
661
-
662
- # @private
663
- ORDER: ::Integer
664
-
665
- # @private
666
- DATATYPE: untyped
667
- end
668
-
669
- class RecycleCacheFull < Attribute
670
- TYPE: ::Integer
671
-
672
- NAME: ::Symbol
673
-
674
- # @private
675
- ORDER: ::Integer
676
-
677
- # @private
678
- DATATYPE: untyped
679
- end
680
-
681
- class RecycleRing < Attribute
682
- TYPE: ::Integer
683
-
684
- NAME: ::Symbol
685
-
686
- # @private
687
- ORDER: ::Integer
688
-
689
- # @private
690
- DATATYPE: untyped
691
- end
692
-
693
- class RecycleRingFull < Attribute
694
- TYPE: ::Integer
695
-
696
- NAME: ::Symbol
697
-
698
- # @private
699
- ORDER: ::Integer
700
-
701
- # @private
702
- DATATYPE: untyped
703
- end
704
-
705
- class RecycleReleasedRefcnt < Attribute
706
- TYPE: ::Integer
707
-
708
- NAME: ::Symbol
709
-
710
- # @private
711
- ORDER: ::Integer
712
-
713
- # @private
714
- DATATYPE: untyped
715
- end
716
-
717
- # @private
718
- BY_NAME: Hash[::Symbol, Attribute]
719
-
720
- # @private
721
- BY_TYPE: Hash[::Integer, Attribute]
722
-
723
- # Page pool identifying information.
724
- # @rbs return: AttributeSets::PagePoolInfo
725
- # @return [AttributeSets::PagePoolInfo]
726
- # @see Info
727
- def info: () -> AttributeSets::PagePoolInfo
728
-
729
- # @rbs return: ::Integer
730
- # @return [Integer]
731
- # @see AllocFast
732
- def alloc_fast: () -> ::Integer
733
-
734
- # @rbs return: ::Integer
735
- # @return [Integer]
736
- # @see AllocSlow
737
- def alloc_slow: () -> ::Integer
738
-
739
- # @rbs return: ::Integer
740
- # @return [Integer]
741
- # @see AllocSlowHighOrder
742
- def alloc_slow_high_order: () -> ::Integer
743
-
744
- # @rbs return: ::Integer
745
- # @return [Integer]
746
- # @see AllocEmpty
747
- def alloc_empty: () -> ::Integer
748
-
749
- # @rbs return: ::Integer
750
- # @return [Integer]
751
- # @see AllocRefill
752
- def alloc_refill: () -> ::Integer
753
-
754
- # @rbs return: ::Integer
755
- # @return [Integer]
756
- # @see AllocWaive
757
- def alloc_waive: () -> ::Integer
758
-
759
- # @rbs return: ::Integer
760
- # @return [Integer]
761
- # @see RecycleCached
762
- def recycle_cached: () -> ::Integer
763
-
764
- # @rbs return: ::Integer
765
- # @return [Integer]
766
- # @see RecycleCacheFull
767
- def recycle_cache_full: () -> ::Integer
768
-
769
- # @rbs return: ::Integer
770
- # @return [Integer]
771
- # @see RecycleRing
772
- def recycle_ring: () -> ::Integer
773
-
774
- # @rbs return: ::Integer
775
- # @return [Integer]
776
- # @see RecycleRingFull
777
- def recycle_ring_full: () -> ::Integer
778
-
779
- # @rbs return: ::Integer
780
- # @return [Integer]
781
- # @see RecycleReleasedRefcnt
782
- def recycle_released_refcnt: () -> ::Integer
783
-
784
- # Looks up Attribute class by name.
785
- # @rbs name: Symbol
786
- # @rbs return: Attribute
787
- # @param [Symbol] name
788
- # @return [Attribute]
789
- def self.by_name: (Symbol name) -> Attribute
790
-
791
- # Looks up Attribute class by type value.
792
- # @rbs type: Integer
793
- # @rbs return: Attribute
794
- # @param [Integer] type
795
- # @return [Attribute]
796
- def self.by_type: (Integer type) -> Attribute
797
- end
798
-
799
- class Napi < ::Nl::AttributeSet
800
- # Abstract class
801
- class Attribute < ::Nl::AttributeSet::Attribute
802
- end
803
-
804
- # ifindex of the netdevice to which NAPI instance belongs.
805
- class Ifindex < Attribute
806
- TYPE: ::Integer
807
-
808
- NAME: ::Symbol
809
-
810
- # @private
811
- ORDER: ::Integer
812
-
813
- # @private
814
- DATATYPE: untyped
815
- end
816
-
817
- # ID of the NAPI instance.
818
- class Id < Attribute
819
- TYPE: ::Integer
820
-
821
- NAME: ::Symbol
822
-
823
- # @private
824
- ORDER: ::Integer
825
-
826
- # @private
827
- DATATYPE: untyped
828
- end
829
-
830
- # The associated interrupt vector number for the napi
831
- class Irq < Attribute
832
- TYPE: ::Integer
833
-
834
- NAME: ::Symbol
835
-
836
- # @private
837
- ORDER: ::Integer
838
-
839
- # @private
840
- DATATYPE: untyped
841
- end
842
-
843
- # PID of the napi thread, if NAPI is configured to operate in threaded mode. If NAPI is not in threaded mode (i.e. uses normal softirq context), the attribute will be absent.
844
- class Pid < Attribute
845
- TYPE: ::Integer
846
-
847
- NAME: ::Symbol
848
-
849
- # @private
850
- ORDER: ::Integer
851
-
852
- # @private
853
- DATATYPE: untyped
854
- end
855
-
856
- # The number of consecutive empty polls before IRQ deferral ends and hardware IRQs are re-enabled.
857
- class DeferHardIrqs < Attribute
858
- TYPE: ::Integer
859
-
860
- NAME: ::Symbol
861
-
862
- # @private
863
- ORDER: ::Integer
864
-
865
- # @private
866
- DATATYPE: untyped
867
- end
868
-
869
- # The timeout, in nanoseconds, of when to trigger the NAPI watchdog timer which schedules NAPI processing. Additionally, a non-zero value will also prevent GRO from flushing recent super-frames at the end of a NAPI cycle. This may add receive latency in exchange for reducing the number of frames processed by the network stack.
870
- class GroFlushTimeout < Attribute
871
- TYPE: ::Integer
872
-
873
- NAME: ::Symbol
874
-
875
- # @private
876
- ORDER: ::Integer
877
-
878
- # @private
879
- DATATYPE: untyped
880
- end
881
-
882
- # The timeout, in nanoseconds, of how long to suspend irq processing, if event polling finds events
883
- class IrqSuspendTimeout < Attribute
884
- TYPE: ::Integer
885
-
886
- NAME: ::Symbol
887
-
888
- # @private
889
- ORDER: ::Integer
890
-
891
- # @private
892
- DATATYPE: untyped
893
- end
894
-
895
- # Whether the NAPI is configured to operate in threaded polling mode. If this is set to enabled then the NAPI context operates in threaded polling mode. If this is set to busy-poll, then the threaded polling mode also busy polls.
896
- #
897
- # Known enum values are defined in {Enums::NapiThreaded}.
898
- class Threaded < Attribute
899
- TYPE: ::Integer
900
-
901
- NAME: ::Symbol
902
-
903
- # @private
904
- ORDER: ::Integer
905
-
906
- # @private
907
- DATATYPE: untyped
908
- end
909
-
910
- # @private
911
- BY_NAME: Hash[::Symbol, Attribute]
912
-
913
- # @private
914
- BY_TYPE: Hash[::Integer, Attribute]
915
-
916
- # ifindex of the netdevice to which NAPI instance belongs.
917
- # @rbs return: ::Integer
918
- # @return [Integer]
919
- # @see Ifindex
920
- def ifindex: () -> ::Integer
921
-
922
- # ID of the NAPI instance.
923
- # @rbs return: ::Integer
924
- # @return [Integer]
925
- # @see Id
926
- def id: () -> ::Integer
927
-
928
- # The associated interrupt vector number for the napi
929
- # @rbs return: ::Integer
930
- # @return [Integer]
931
- # @see Irq
932
- def irq: () -> ::Integer
933
-
934
- # PID of the napi thread, if NAPI is configured to operate in threaded mode. If NAPI is not in threaded mode (i.e. uses normal softirq context), the attribute will be absent.
935
- # @rbs return: ::Integer
936
- # @return [Integer]
937
- # @see Pid
938
- def pid: () -> ::Integer
939
-
940
- # The number of consecutive empty polls before IRQ deferral ends and hardware IRQs are re-enabled.
941
- # @rbs return: ::Integer
942
- # @return [Integer]
943
- # @see DeferHardIrqs
944
- def defer_hard_irqs: () -> ::Integer
945
-
946
- # The timeout, in nanoseconds, of when to trigger the NAPI watchdog timer which schedules NAPI processing. Additionally, a non-zero value will also prevent GRO from flushing recent super-frames at the end of a NAPI cycle. This may add receive latency in exchange for reducing the number of frames processed by the network stack.
947
- # @rbs return: ::Integer
948
- # @return [Integer]
949
- # @see GroFlushTimeout
950
- def gro_flush_timeout: () -> ::Integer
951
-
952
- # The timeout, in nanoseconds, of how long to suspend irq processing, if event polling finds events
953
- # @rbs return: ::Integer
954
- # @return [Integer]
955
- # @see IrqSuspendTimeout
956
- def irq_suspend_timeout: () -> ::Integer
957
-
958
- # Whether the NAPI is configured to operate in threaded polling mode. If this is set to enabled then the NAPI context operates in threaded polling mode. If this is set to busy-poll, then the threaded polling mode also busy polls.
959
- #
960
- # Known enum values are defined in {Enums::NapiThreaded}.
961
- # @rbs return: ::Integer
962
- # @return [Integer]
963
- # @see Threaded
964
- def threaded: () -> ::Integer
965
-
966
- # Looks up Attribute class by name.
967
- # @rbs name: Symbol
968
- # @rbs return: Attribute
969
- # @param [Symbol] name
970
- # @return [Attribute]
971
- def self.by_name: (Symbol name) -> Attribute
972
-
973
- # Looks up Attribute class by type value.
974
- # @rbs type: Integer
975
- # @rbs return: Attribute
976
- # @param [Integer] type
977
- # @return [Attribute]
978
- def self.by_type: (Integer type) -> Attribute
979
- end
980
-
981
- class XskInfo < ::Nl::AttributeSet
982
- # Abstract class
983
- class Attribute < ::Nl::AttributeSet::Attribute
984
- end
985
-
986
- # @private
987
- BY_NAME: Hash[::Symbol, Attribute]
988
-
989
- # @private
990
- BY_TYPE: Hash[::Integer, Attribute]
991
-
992
- # Looks up Attribute class by name.
993
- # @rbs name: Symbol
994
- # @rbs return: Attribute
995
- # @param [Symbol] name
996
- # @return [Attribute]
997
- def self.by_name: (Symbol name) -> Attribute
998
-
999
- # Looks up Attribute class by type value.
1000
- # @rbs type: Integer
1001
- # @rbs return: Attribute
1002
- # @param [Integer] type
1003
- # @return [Attribute]
1004
- def self.by_type: (Integer type) -> Attribute
1005
- end
1006
-
1007
- class Queue < ::Nl::AttributeSet
1008
- # Abstract class
1009
- class Attribute < ::Nl::AttributeSet::Attribute
1010
- end
1011
-
1012
- # Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
1013
- class Id < Attribute
1014
- TYPE: ::Integer
1015
-
1016
- NAME: ::Symbol
1017
-
1018
- # @private
1019
- ORDER: ::Integer
1020
-
1021
- # @private
1022
- DATATYPE: untyped
1023
- end
1024
-
1025
- # ifindex of the netdevice to which the queue belongs.
1026
- class Ifindex < Attribute
1027
- TYPE: ::Integer
1028
-
1029
- NAME: ::Symbol
1030
-
1031
- # @private
1032
- ORDER: ::Integer
1033
-
1034
- # @private
1035
- DATATYPE: untyped
1036
- end
1037
-
1038
- # Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.
1039
- #
1040
- # Known enum values are defined in {Enums::QueueType}.
1041
- class Type < Attribute
1042
- TYPE: ::Integer
1043
-
1044
- NAME: ::Symbol
1045
-
1046
- # @private
1047
- ORDER: ::Integer
1048
-
1049
- # @private
1050
- DATATYPE: untyped
1051
- end
1052
-
1053
- # ID of the NAPI instance which services this queue.
1054
- class NapiId < Attribute
1055
- TYPE: ::Integer
1056
-
1057
- NAME: ::Symbol
1058
-
1059
- # @private
1060
- ORDER: ::Integer
1061
-
1062
- # @private
1063
- DATATYPE: untyped
1064
- end
1065
-
1066
- # ID of the dmabuf attached to this queue, if any.
1067
- class Dmabuf < Attribute
1068
- TYPE: ::Integer
1069
-
1070
- NAME: ::Symbol
1071
-
1072
- # @private
1073
- ORDER: ::Integer
1074
-
1075
- # @private
1076
- DATATYPE: untyped
1077
- end
1078
-
1079
- # io_uring memory provider information.
1080
- class IoUring < Attribute
1081
- TYPE: ::Integer
1082
-
1083
- NAME: ::Symbol
1084
-
1085
- # @private
1086
- ORDER: ::Integer
1087
- end
1088
-
1089
- # XSK information for this queue, if any.
1090
- class Xsk < Attribute
1091
- TYPE: ::Integer
1092
-
1093
- NAME: ::Symbol
1094
-
1095
- # @private
1096
- ORDER: ::Integer
1097
- end
1098
-
1099
- # A queue from a virtual device can have a lease which refers to
1100
- # another queue from a physical device. This is useful for memory
1101
- # providers and AF_XDP operations which take an ifindex and queue id
1102
- # to allow applications to bind against virtual devices in containers.
1103
- class Lease < Attribute
1104
- TYPE: ::Integer
1105
-
1106
- NAME: ::Symbol
1107
-
1108
- # @private
1109
- ORDER: ::Integer
1110
- end
1111
-
1112
- # @private
1113
- BY_NAME: Hash[::Symbol, Attribute]
1114
-
1115
- # @private
1116
- BY_TYPE: Hash[::Integer, Attribute]
1117
-
1118
- # Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
1119
- # @rbs return: ::Integer
1120
- # @return [Integer]
1121
- # @see Id
1122
- def id: () -> ::Integer
1123
-
1124
- # ifindex of the netdevice to which the queue belongs.
1125
- # @rbs return: ::Integer
1126
- # @return [Integer]
1127
- # @see Ifindex
1128
- def ifindex: () -> ::Integer
1129
-
1130
- # Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.
1131
- #
1132
- # Known enum values are defined in {Enums::QueueType}.
1133
- # @rbs return: ::Integer
1134
- # @return [Integer]
1135
- # @see Type
1136
- def type: () -> ::Integer
1137
-
1138
- # ID of the NAPI instance which services this queue.
1139
- # @rbs return: ::Integer
1140
- # @return [Integer]
1141
- # @see NapiId
1142
- def napi_id: () -> ::Integer
1143
-
1144
- # ID of the dmabuf attached to this queue, if any.
1145
- # @rbs return: ::Integer
1146
- # @return [Integer]
1147
- # @see Dmabuf
1148
- def dmabuf: () -> ::Integer
1149
-
1150
- # io_uring memory provider information.
1151
- # @rbs return: AttributeSets::IoUringProviderInfo
1152
- # @return [AttributeSets::IoUringProviderInfo]
1153
- # @see IoUring
1154
- def io_uring: () -> AttributeSets::IoUringProviderInfo
1155
-
1156
- # XSK information for this queue, if any.
1157
- # @rbs return: AttributeSets::XskInfo
1158
- # @return [AttributeSets::XskInfo]
1159
- # @see Xsk
1160
- def xsk: () -> AttributeSets::XskInfo
1161
-
1162
- # A queue from a virtual device can have a lease which refers to
1163
- # another queue from a physical device. This is useful for memory
1164
- # providers and AF_XDP operations which take an ifindex and queue id
1165
- # to allow applications to bind against virtual devices in containers.
1166
- # @rbs return: AttributeSets::Lease
1167
- # @return [AttributeSets::Lease]
1168
- # @see Lease
1169
- def lease: () -> AttributeSets::Lease
1170
-
1171
- # Looks up Attribute class by name.
1172
- # @rbs name: Symbol
1173
- # @rbs return: Attribute
1174
- # @param [Symbol] name
1175
- # @return [Attribute]
1176
- def self.by_name: (Symbol name) -> Attribute
1177
-
1178
- # Looks up Attribute class by type value.
1179
- # @rbs type: Integer
1180
- # @rbs return: Attribute
1181
- # @param [Integer] type
1182
- # @return [Attribute]
1183
- def self.by_type: (Integer type) -> Attribute
1184
- end
1185
-
1186
- # Get device statistics, scoped to a device or a queue.
1187
- # These statistics extend (and partially duplicate) statistics available
1188
- # in struct rtnl_link_stats64.
1189
- # Value of the `scope` attribute determines how statistics are
1190
- # aggregated. When aggregated for the entire device the statistics
1191
- # represent the total number of events since last explicit reset of
1192
- # the device (i.e. not a reconfiguration like changing queue count).
1193
- # When reported per-queue, however, the statistics may not add
1194
- # up to the total number of events, will only be reported for currently
1195
- # active objects, and will likely report the number of events since last
1196
- # reconfiguration.
1197
- class Qstats < ::Nl::AttributeSet
1198
- # Abstract class
1199
- class Attribute < ::Nl::AttributeSet::Attribute
1200
- end
1201
-
1202
- # ifindex of the netdevice to which stats belong.
1203
- class Ifindex < Attribute
1204
- TYPE: ::Integer
1205
-
1206
- NAME: ::Symbol
1207
-
1208
- # @private
1209
- ORDER: ::Integer
1210
-
1211
- # @private
1212
- DATATYPE: untyped
1213
- end
1214
-
1215
- # Queue type as rx, tx, for queue-id.
1216
- #
1217
- # Known enum values are defined in {Enums::QueueType}.
1218
- class QueueType < Attribute
1219
- TYPE: ::Integer
1220
-
1221
- NAME: ::Symbol
1222
-
1223
- # @private
1224
- ORDER: ::Integer
1225
-
1226
- # @private
1227
- DATATYPE: untyped
1228
- end
1229
-
1230
- # Queue ID, if stats are scoped to a single queue instance.
1231
- class QueueId < Attribute
1232
- TYPE: ::Integer
1233
-
1234
- NAME: ::Symbol
1235
-
1236
- # @private
1237
- ORDER: ::Integer
1238
-
1239
- # @private
1240
- DATATYPE: untyped
1241
- end
1242
-
1243
- # What object type should be used to iterate over the stats.
1244
- #
1245
- #
1246
- # Known flags are defined in {Flags::QstatsScope}.
1247
- class Scope < Attribute
1248
- TYPE: ::Integer
1249
-
1250
- NAME: ::Symbol
1251
-
1252
- # @private
1253
- ORDER: ::Integer
1254
-
1255
- # @private
1256
- DATATYPE: untyped
1257
- end
1258
-
1259
- # Number of wire packets successfully received and passed to the stack.
1260
- # For drivers supporting XDP, XDP is considered the first layer
1261
- # of the stack, so packets consumed by XDP are still counted here.
1262
- class RxPackets < Attribute
1263
- TYPE: ::Integer
1264
-
1265
- NAME: ::Symbol
1266
-
1267
- # @private
1268
- ORDER: ::Integer
1269
-
1270
- # @private
1271
- DATATYPE: untyped
1272
- end
1273
-
1274
- # Successfully received bytes, see `rx-packets`.
1275
- class RxBytes < Attribute
1276
- TYPE: ::Integer
1277
-
1278
- NAME: ::Symbol
1279
-
1280
- # @private
1281
- ORDER: ::Integer
1282
-
1283
- # @private
1284
- DATATYPE: untyped
1285
- end
1286
-
1287
- # Number of wire packets successfully sent. Packet is considered to be
1288
- # successfully sent once it is in device memory (usually this means
1289
- # the device has issued a DMA completion for the packet).
1290
- class TxPackets < Attribute
1291
- TYPE: ::Integer
1292
-
1293
- NAME: ::Symbol
1294
-
1295
- # @private
1296
- ORDER: ::Integer
1297
-
1298
- # @private
1299
- DATATYPE: untyped
1300
- end
1301
-
1302
- # Successfully sent bytes, see `tx-packets`.
1303
- class TxBytes < Attribute
1304
- TYPE: ::Integer
1305
-
1306
- NAME: ::Symbol
1307
-
1308
- # @private
1309
- ORDER: ::Integer
1310
-
1311
- # @private
1312
- DATATYPE: untyped
1313
- end
1314
-
1315
- # Number of times skb or buffer allocation failed on the Rx datapath.
1316
- # Allocation failure may, or may not result in a packet drop, depending
1317
- # on driver implementation and whether system recovers quickly.
1318
- class RxAllocFail < Attribute
1319
- TYPE: ::Integer
1320
-
1321
- NAME: ::Symbol
1322
-
1323
- # @private
1324
- ORDER: ::Integer
1325
-
1326
- # @private
1327
- DATATYPE: untyped
1328
- end
1329
-
1330
- # Number of all packets which entered the device, but never left it,
1331
- # including but not limited to: packets dropped due to lack of buffer
1332
- # space, processing errors, explicit or implicit policies and packet
1333
- # filters.
1334
- class RxHwDrops < Attribute
1335
- TYPE: ::Integer
1336
-
1337
- NAME: ::Symbol
1338
-
1339
- # @private
1340
- ORDER: ::Integer
1341
-
1342
- # @private
1343
- DATATYPE: untyped
1344
- end
1345
-
1346
- # Number of packets dropped due to transient lack of resources, such as
1347
- # buffer space, host descriptors etc.
1348
- class RxHwDropOverruns < Attribute
1349
- TYPE: ::Integer
1350
-
1351
- NAME: ::Symbol
1352
-
1353
- # @private
1354
- ORDER: ::Integer
1355
-
1356
- # @private
1357
- DATATYPE: untyped
1358
- end
1359
-
1360
- # Number of packets that were marked as CHECKSUM_COMPLETE.
1361
- class RxCsumComplete < Attribute
1362
- TYPE: ::Integer
1363
-
1364
- NAME: ::Symbol
1365
-
1366
- # @private
1367
- ORDER: ::Integer
1368
-
1369
- # @private
1370
- DATATYPE: untyped
1371
- end
1372
-
1373
- # Number of packets that were marked as CHECKSUM_UNNECESSARY.
1374
- class RxCsumUnnecessary < Attribute
1375
- TYPE: ::Integer
1376
-
1377
- NAME: ::Symbol
1378
-
1379
- # @private
1380
- ORDER: ::Integer
1381
-
1382
- # @private
1383
- DATATYPE: untyped
1384
- end
1385
-
1386
- # Number of packets that were not checksummed by device.
1387
- class RxCsumNone < Attribute
1388
- TYPE: ::Integer
1389
-
1390
- NAME: ::Symbol
1391
-
1392
- # @private
1393
- ORDER: ::Integer
1394
-
1395
- # @private
1396
- DATATYPE: untyped
1397
- end
1398
-
1399
- # Number of packets with bad checksum. The packets are not discarded,
1400
- # but still delivered to the stack.
1401
- class RxCsumBad < Attribute
1402
- TYPE: ::Integer
1403
-
1404
- NAME: ::Symbol
1405
-
1406
- # @private
1407
- ORDER: ::Integer
1408
-
1409
- # @private
1410
- DATATYPE: untyped
1411
- end
1412
-
1413
- # Number of packets that were coalesced from smaller packets by the
1414
- # device. Counts only packets coalesced with the HW-GRO netdevice
1415
- # feature, LRO-coalesced packets are not counted.
1416
- class RxHwGroPackets < Attribute
1417
- TYPE: ::Integer
1418
-
1419
- NAME: ::Symbol
1420
-
1421
- # @private
1422
- ORDER: ::Integer
1423
-
1424
- # @private
1425
- DATATYPE: untyped
1426
- end
1427
-
1428
- # See `rx-hw-gro-packets`.
1429
- class RxHwGroBytes < Attribute
1430
- TYPE: ::Integer
1431
-
1432
- NAME: ::Symbol
1433
-
1434
- # @private
1435
- ORDER: ::Integer
1436
-
1437
- # @private
1438
- DATATYPE: untyped
1439
- end
1440
-
1441
- # Number of packets that were coalesced to bigger packetss with the
1442
- # HW-GRO netdevice feature. LRO-coalesced packets are not counted.
1443
- class RxHwGroWirePackets < Attribute
1444
- TYPE: ::Integer
1445
-
1446
- NAME: ::Symbol
1447
-
1448
- # @private
1449
- ORDER: ::Integer
1450
-
1451
- # @private
1452
- DATATYPE: untyped
1453
- end
1454
-
1455
- # See `rx-hw-gro-wire-packets`.
1456
- class RxHwGroWireBytes < Attribute
1457
- TYPE: ::Integer
1458
-
1459
- NAME: ::Symbol
1460
-
1461
- # @private
1462
- ORDER: ::Integer
1463
-
1464
- # @private
1465
- DATATYPE: untyped
1466
- end
1467
-
1468
- # Number of the packets dropped by the device due to the received
1469
- # packets bitrate exceeding the device rate limit.
1470
- class RxHwDropRatelimits < Attribute
1471
- TYPE: ::Integer
1472
-
1473
- NAME: ::Symbol
1474
-
1475
- # @private
1476
- ORDER: ::Integer
1477
-
1478
- # @private
1479
- DATATYPE: untyped
1480
- end
1481
-
1482
- # Number of packets that arrived at the device but never left it,
1483
- # encompassing packets dropped for reasons such as processing errors, as
1484
- # well as those affected by explicitly defined policies and packet
1485
- # filtering criteria.
1486
- class TxHwDrops < Attribute
1487
- TYPE: ::Integer
1488
-
1489
- NAME: ::Symbol
1490
-
1491
- # @private
1492
- ORDER: ::Integer
1493
-
1494
- # @private
1495
- DATATYPE: untyped
1496
- end
1497
-
1498
- # Number of packets dropped because they were invalid or malformed.
1499
- class TxHwDropErrors < Attribute
1500
- TYPE: ::Integer
1501
-
1502
- NAME: ::Symbol
1503
-
1504
- # @private
1505
- ORDER: ::Integer
1506
-
1507
- # @private
1508
- DATATYPE: untyped
1509
- end
1510
-
1511
- # Number of packets that did not require the device to calculate the
1512
- # checksum.
1513
- class TxCsumNone < Attribute
1514
- TYPE: ::Integer
1515
-
1516
- NAME: ::Symbol
1517
-
1518
- # @private
1519
- ORDER: ::Integer
1520
-
1521
- # @private
1522
- DATATYPE: untyped
1523
- end
1524
-
1525
- # Number of packets that required the device to calculate the checksum.
1526
- # This counter includes the number of GSO wire packets for which device
1527
- # calculated the L4 checksum.
1528
- class TxNeedsCsum < Attribute
1529
- TYPE: ::Integer
1530
-
1531
- NAME: ::Symbol
1532
-
1533
- # @private
1534
- ORDER: ::Integer
1535
-
1536
- # @private
1537
- DATATYPE: untyped
1538
- end
1539
-
1540
- # Number of packets that necessitated segmentation into smaller packets
1541
- # by the device.
1542
- class TxHwGsoPackets < Attribute
1543
- TYPE: ::Integer
1544
-
1545
- NAME: ::Symbol
1546
-
1547
- # @private
1548
- ORDER: ::Integer
1549
-
1550
- # @private
1551
- DATATYPE: untyped
1552
- end
1553
-
1554
- # See `tx-hw-gso-packets`.
1555
- class TxHwGsoBytes < Attribute
1556
- TYPE: ::Integer
1557
-
1558
- NAME: ::Symbol
1559
-
1560
- # @private
1561
- ORDER: ::Integer
1562
-
1563
- # @private
1564
- DATATYPE: untyped
1565
- end
1566
-
1567
- # Number of wire-sized packets generated by processing
1568
- # `tx-hw-gso-packets`
1569
- class TxHwGsoWirePackets < Attribute
1570
- TYPE: ::Integer
1571
-
1572
- NAME: ::Symbol
1573
-
1574
- # @private
1575
- ORDER: ::Integer
1576
-
1577
- # @private
1578
- DATATYPE: untyped
1579
- end
1580
-
1581
- # See `tx-hw-gso-wire-packets`.
1582
- class TxHwGsoWireBytes < Attribute
1583
- TYPE: ::Integer
1584
-
1585
- NAME: ::Symbol
1586
-
1587
- # @private
1588
- ORDER: ::Integer
1589
-
1590
- # @private
1591
- DATATYPE: untyped
1592
- end
1593
-
1594
- # Number of the packets dropped by the device due to the transmit
1595
- # packets bitrate exceeding the device rate limit.
1596
- class TxHwDropRatelimits < Attribute
1597
- TYPE: ::Integer
1598
-
1599
- NAME: ::Symbol
1600
-
1601
- # @private
1602
- ORDER: ::Integer
1603
-
1604
- # @private
1605
- DATATYPE: untyped
1606
- end
1607
-
1608
- # Number of times driver paused accepting new tx packets
1609
- # from the stack to this queue, because the queue was full.
1610
- # Note that if BQL is supported and enabled on the device
1611
- # the networking stack will avoid queuing a lot of data at once.
1612
- class TxStop < Attribute
1613
- TYPE: ::Integer
1614
-
1615
- NAME: ::Symbol
1616
-
1617
- # @private
1618
- ORDER: ::Integer
1619
-
1620
- # @private
1621
- DATATYPE: untyped
1622
- end
1623
-
1624
- # Number of times driver re-started accepting send
1625
- # requests to this queue from the stack.
1626
- class TxWake < Attribute
1627
- TYPE: ::Integer
1628
-
1629
- NAME: ::Symbol
1630
-
1631
- # @private
1632
- ORDER: ::Integer
1633
-
1634
- # @private
1635
- DATATYPE: untyped
1636
- end
1637
-
1638
- # @private
1639
- BY_NAME: Hash[::Symbol, Attribute]
1640
-
1641
- # @private
1642
- BY_TYPE: Hash[::Integer, Attribute]
1643
-
1644
- # ifindex of the netdevice to which stats belong.
1645
- # @rbs return: ::Integer
1646
- # @return [Integer]
1647
- # @see Ifindex
1648
- def ifindex: () -> ::Integer
1649
-
1650
- # Queue type as rx, tx, for queue-id.
1651
- #
1652
- # Known enum values are defined in {Enums::QueueType}.
1653
- # @rbs return: ::Integer
1654
- # @return [Integer]
1655
- # @see QueueType
1656
- def queue_type: () -> ::Integer
1657
-
1658
- # Queue ID, if stats are scoped to a single queue instance.
1659
- # @rbs return: ::Integer
1660
- # @return [Integer]
1661
- # @see QueueId
1662
- def queue_id: () -> ::Integer
1663
-
1664
- # What object type should be used to iterate over the stats.
1665
- #
1666
- #
1667
- # Known flags are defined in {Flags::QstatsScope}.
1668
- # @rbs return: ::Integer
1669
- # @return [Integer]
1670
- # @see Scope
1671
- def scope: () -> ::Integer
1672
-
1673
- # Number of wire packets successfully received and passed to the stack.
1674
- # For drivers supporting XDP, XDP is considered the first layer
1675
- # of the stack, so packets consumed by XDP are still counted here.
1676
- # @rbs return: ::Integer
1677
- # @return [Integer]
1678
- # @see RxPackets
1679
- def rx_packets: () -> ::Integer
1680
-
1681
- # Successfully received bytes, see `rx-packets`.
1682
- # @rbs return: ::Integer
1683
- # @return [Integer]
1684
- # @see RxBytes
1685
- def rx_bytes: () -> ::Integer
1686
-
1687
- # Number of wire packets successfully sent. Packet is considered to be
1688
- # successfully sent once it is in device memory (usually this means
1689
- # the device has issued a DMA completion for the packet).
1690
- # @rbs return: ::Integer
1691
- # @return [Integer]
1692
- # @see TxPackets
1693
- def tx_packets: () -> ::Integer
1694
-
1695
- # Successfully sent bytes, see `tx-packets`.
1696
- # @rbs return: ::Integer
1697
- # @return [Integer]
1698
- # @see TxBytes
1699
- def tx_bytes: () -> ::Integer
1700
-
1701
- # Number of times skb or buffer allocation failed on the Rx datapath.
1702
- # Allocation failure may, or may not result in a packet drop, depending
1703
- # on driver implementation and whether system recovers quickly.
1704
- # @rbs return: ::Integer
1705
- # @return [Integer]
1706
- # @see RxAllocFail
1707
- def rx_alloc_fail: () -> ::Integer
1708
-
1709
- # Number of all packets which entered the device, but never left it,
1710
- # including but not limited to: packets dropped due to lack of buffer
1711
- # space, processing errors, explicit or implicit policies and packet
1712
- # filters.
1713
- # @rbs return: ::Integer
1714
- # @return [Integer]
1715
- # @see RxHwDrops
1716
- def rx_hw_drops: () -> ::Integer
1717
-
1718
- # Number of packets dropped due to transient lack of resources, such as
1719
- # buffer space, host descriptors etc.
1720
- # @rbs return: ::Integer
1721
- # @return [Integer]
1722
- # @see RxHwDropOverruns
1723
- def rx_hw_drop_overruns: () -> ::Integer
1724
-
1725
- # Number of packets that were marked as CHECKSUM_COMPLETE.
1726
- # @rbs return: ::Integer
1727
- # @return [Integer]
1728
- # @see RxCsumComplete
1729
- def rx_csum_complete: () -> ::Integer
1730
-
1731
- # Number of packets that were marked as CHECKSUM_UNNECESSARY.
1732
- # @rbs return: ::Integer
1733
- # @return [Integer]
1734
- # @see RxCsumUnnecessary
1735
- def rx_csum_unnecessary: () -> ::Integer
1736
-
1737
- # Number of packets that were not checksummed by device.
1738
- # @rbs return: ::Integer
1739
- # @return [Integer]
1740
- # @see RxCsumNone
1741
- def rx_csum_none: () -> ::Integer
1742
-
1743
- # Number of packets with bad checksum. The packets are not discarded,
1744
- # but still delivered to the stack.
1745
- # @rbs return: ::Integer
1746
- # @return [Integer]
1747
- # @see RxCsumBad
1748
- def rx_csum_bad: () -> ::Integer
1749
-
1750
- # Number of packets that were coalesced from smaller packets by the
1751
- # device. Counts only packets coalesced with the HW-GRO netdevice
1752
- # feature, LRO-coalesced packets are not counted.
1753
- # @rbs return: ::Integer
1754
- # @return [Integer]
1755
- # @see RxHwGroPackets
1756
- def rx_hw_gro_packets: () -> ::Integer
1757
-
1758
- # See `rx-hw-gro-packets`.
1759
- # @rbs return: ::Integer
1760
- # @return [Integer]
1761
- # @see RxHwGroBytes
1762
- def rx_hw_gro_bytes: () -> ::Integer
1763
-
1764
- # Number of packets that were coalesced to bigger packetss with the
1765
- # HW-GRO netdevice feature. LRO-coalesced packets are not counted.
1766
- # @rbs return: ::Integer
1767
- # @return [Integer]
1768
- # @see RxHwGroWirePackets
1769
- def rx_hw_gro_wire_packets: () -> ::Integer
1770
-
1771
- # See `rx-hw-gro-wire-packets`.
1772
- # @rbs return: ::Integer
1773
- # @return [Integer]
1774
- # @see RxHwGroWireBytes
1775
- def rx_hw_gro_wire_bytes: () -> ::Integer
1776
-
1777
- # Number of the packets dropped by the device due to the received
1778
- # packets bitrate exceeding the device rate limit.
1779
- # @rbs return: ::Integer
1780
- # @return [Integer]
1781
- # @see RxHwDropRatelimits
1782
- def rx_hw_drop_ratelimits: () -> ::Integer
1783
-
1784
- # Number of packets that arrived at the device but never left it,
1785
- # encompassing packets dropped for reasons such as processing errors, as
1786
- # well as those affected by explicitly defined policies and packet
1787
- # filtering criteria.
1788
- # @rbs return: ::Integer
1789
- # @return [Integer]
1790
- # @see TxHwDrops
1791
- def tx_hw_drops: () -> ::Integer
1792
-
1793
- # Number of packets dropped because they were invalid or malformed.
1794
- # @rbs return: ::Integer
1795
- # @return [Integer]
1796
- # @see TxHwDropErrors
1797
- def tx_hw_drop_errors: () -> ::Integer
1798
-
1799
- # Number of packets that did not require the device to calculate the
1800
- # checksum.
1801
- # @rbs return: ::Integer
1802
- # @return [Integer]
1803
- # @see TxCsumNone
1804
- def tx_csum_none: () -> ::Integer
1805
-
1806
- # Number of packets that required the device to calculate the checksum.
1807
- # This counter includes the number of GSO wire packets for which device
1808
- # calculated the L4 checksum.
1809
- # @rbs return: ::Integer
1810
- # @return [Integer]
1811
- # @see TxNeedsCsum
1812
- def tx_needs_csum: () -> ::Integer
1813
-
1814
- # Number of packets that necessitated segmentation into smaller packets
1815
- # by the device.
1816
- # @rbs return: ::Integer
1817
- # @return [Integer]
1818
- # @see TxHwGsoPackets
1819
- def tx_hw_gso_packets: () -> ::Integer
1820
-
1821
- # See `tx-hw-gso-packets`.
1822
- # @rbs return: ::Integer
1823
- # @return [Integer]
1824
- # @see TxHwGsoBytes
1825
- def tx_hw_gso_bytes: () -> ::Integer
1826
-
1827
- # Number of wire-sized packets generated by processing
1828
- # `tx-hw-gso-packets`
1829
- # @rbs return: ::Integer
1830
- # @return [Integer]
1831
- # @see TxHwGsoWirePackets
1832
- def tx_hw_gso_wire_packets: () -> ::Integer
1833
-
1834
- # See `tx-hw-gso-wire-packets`.
1835
- # @rbs return: ::Integer
1836
- # @return [Integer]
1837
- # @see TxHwGsoWireBytes
1838
- def tx_hw_gso_wire_bytes: () -> ::Integer
1839
-
1840
- # Number of the packets dropped by the device due to the transmit
1841
- # packets bitrate exceeding the device rate limit.
1842
- # @rbs return: ::Integer
1843
- # @return [Integer]
1844
- # @see TxHwDropRatelimits
1845
- def tx_hw_drop_ratelimits: () -> ::Integer
1846
-
1847
- # Number of times driver paused accepting new tx packets
1848
- # from the stack to this queue, because the queue was full.
1849
- # Note that if BQL is supported and enabled on the device
1850
- # the networking stack will avoid queuing a lot of data at once.
1851
- # @rbs return: ::Integer
1852
- # @return [Integer]
1853
- # @see TxStop
1854
- def tx_stop: () -> ::Integer
1855
-
1856
- # Number of times driver re-started accepting send
1857
- # requests to this queue from the stack.
1858
- # @rbs return: ::Integer
1859
- # @return [Integer]
1860
- # @see TxWake
1861
- def tx_wake: () -> ::Integer
1862
-
1863
- # Looks up Attribute class by name.
1864
- # @rbs name: Symbol
1865
- # @rbs return: Attribute
1866
- # @param [Symbol] name
1867
- # @return [Attribute]
1868
- def self.by_name: (Symbol name) -> Attribute
1869
-
1870
- # Looks up Attribute class by type value.
1871
- # @rbs type: Integer
1872
- # @rbs return: Attribute
1873
- # @param [Integer] type
1874
- # @return [Attribute]
1875
- def self.by_type: (Integer type) -> Attribute
1876
- end
1877
-
1878
- class QueueId < ::Nl::AttributeSet
1879
- # Abstract class
1880
- class Attribute < ::Nl::AttributeSet::Attribute
1881
- end
1882
-
1883
- # Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
1884
- class Id < Attribute
1885
- TYPE: ::Integer
1886
-
1887
- NAME: ::Symbol
1888
-
1889
- # @private
1890
- ORDER: ::Integer
1891
-
1892
- # @private
1893
- DATATYPE: untyped
1894
- end
1895
-
1896
- # Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.
1897
- #
1898
- # Known enum values are defined in {Enums::QueueType}.
1899
- class Type < Attribute
1900
- TYPE: ::Integer
1901
-
1902
- NAME: ::Symbol
1903
-
1904
- # @private
1905
- ORDER: ::Integer
1906
-
1907
- # @private
1908
- DATATYPE: untyped
1909
- end
1910
-
1911
- # @private
1912
- BY_NAME: Hash[::Symbol, Attribute]
1913
-
1914
- # @private
1915
- BY_TYPE: Hash[::Integer, Attribute]
1916
-
1917
- # Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
1918
- # @rbs return: ::Integer
1919
- # @return [Integer]
1920
- # @see Id
1921
- def id: () -> ::Integer
1922
-
1923
- # Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.
1924
- #
1925
- # Known enum values are defined in {Enums::QueueType}.
1926
- # @rbs return: ::Integer
1927
- # @return [Integer]
1928
- # @see Type
1929
- def type: () -> ::Integer
1930
-
1931
- # Looks up Attribute class by name.
1932
- # @rbs name: Symbol
1933
- # @rbs return: Attribute
1934
- # @param [Symbol] name
1935
- # @return [Attribute]
1936
- def self.by_name: (Symbol name) -> Attribute
1937
-
1938
- # Looks up Attribute class by type value.
1939
- # @rbs type: Integer
1940
- # @rbs return: Attribute
1941
- # @param [Integer] type
1942
- # @return [Attribute]
1943
- def self.by_type: (Integer type) -> Attribute
1944
- end
1945
-
1946
- class Lease < ::Nl::AttributeSet
1947
- # Abstract class
1948
- class Attribute < ::Nl::AttributeSet::Attribute
1949
- end
1950
-
1951
- # The netdev ifindex to lease the queue from.
1952
- class Ifindex < Attribute
1953
- TYPE: ::Integer
1954
-
1955
- NAME: ::Symbol
1956
-
1957
- # @private
1958
- ORDER: ::Integer
1959
-
1960
- # @private
1961
- DATATYPE: untyped
1962
- end
1963
-
1964
- # The netdev queue to lease from.
1965
- class Queue < Attribute
1966
- TYPE: ::Integer
1967
-
1968
- NAME: ::Symbol
1969
-
1970
- # @private
1971
- ORDER: ::Integer
1972
- end
1973
-
1974
- # The network namespace id of the netdev.
1975
- class NetnsId < Attribute
1976
- TYPE: ::Integer
1977
-
1978
- NAME: ::Symbol
1979
-
1980
- # @private
1981
- ORDER: ::Integer
1982
-
1983
- # @private
1984
- DATATYPE: untyped
1985
- end
1986
-
1987
- # @private
1988
- BY_NAME: Hash[::Symbol, Attribute]
1989
-
1990
- # @private
1991
- BY_TYPE: Hash[::Integer, Attribute]
1992
-
1993
- # The netdev ifindex to lease the queue from.
1994
- # @rbs return: ::Integer
1995
- # @return [Integer]
1996
- # @see Ifindex
1997
- def ifindex: () -> ::Integer
1998
-
1999
- # The netdev queue to lease from.
2000
- # @rbs return: AttributeSets::QueueId
2001
- # @return [AttributeSets::QueueId]
2002
- # @see Queue
2003
- def queue: () -> AttributeSets::QueueId
2004
-
2005
- # The network namespace id of the netdev.
2006
- # @rbs return: ::Integer
2007
- # @return [Integer]
2008
- # @see NetnsId
2009
- def netns_id: () -> ::Integer
2010
-
2011
- # Looks up Attribute class by name.
2012
- # @rbs name: Symbol
2013
- # @rbs return: Attribute
2014
- # @param [Symbol] name
2015
- # @return [Attribute]
2016
- def self.by_name: (Symbol name) -> Attribute
2017
-
2018
- # Looks up Attribute class by type value.
2019
- # @rbs type: Integer
2020
- # @rbs return: Attribute
2021
- # @param [Integer] type
2022
- # @return [Attribute]
2023
- def self.by_type: (Integer type) -> Attribute
2024
773
  end
2025
774
 
2026
- class Dmabuf < ::Nl::AttributeSet
2027
- # Abstract class
2028
- class Attribute < ::Nl::AttributeSet::Attribute
2029
- end
2030
-
2031
- # netdev ifindex to bind the dmabuf to.
2032
- class Ifindex < Attribute
2033
- TYPE: ::Integer
2034
-
2035
- NAME: ::Symbol
2036
-
775
+ class Napi
776
+ module Definitions
2037
777
  # @private
2038
- ORDER: ::Integer
778
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
2039
779
 
2040
780
  # @private
2041
- DATATYPE: untyped
781
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
2042
782
  end
783
+ end
2043
784
 
2044
- # receive queues to bind the dmabuf to.
2045
- class Queues < Attribute
2046
- TYPE: ::Integer
2047
-
2048
- NAME: ::Symbol
2049
-
785
+ class XskInfo
786
+ module Definitions
2050
787
  # @private
2051
- MULTI: bool
788
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
2052
789
 
2053
790
  # @private
2054
- ORDER: ::Integer
791
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
2055
792
  end
793
+ end
2056
794
 
2057
- # dmabuf file descriptor to bind.
2058
- class Fd < Attribute
2059
- TYPE: ::Integer
2060
-
2061
- NAME: ::Symbol
2062
-
795
+ class Queue
796
+ module Definitions
2063
797
  # @private
2064
- ORDER: ::Integer
798
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
2065
799
 
2066
800
  # @private
2067
- DATATYPE: untyped
801
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
2068
802
  end
803
+ end
2069
804
 
2070
- # id of the dmabuf binding
2071
- class Id < Attribute
2072
- TYPE: ::Integer
2073
-
2074
- NAME: ::Symbol
2075
-
805
+ class Qstats
806
+ module Definitions
2076
807
  # @private
2077
- ORDER: ::Integer
808
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
2078
809
 
2079
810
  # @private
2080
- DATATYPE: untyped
811
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
2081
812
  end
813
+ end
2082
814
 
2083
- # @private
2084
- BY_NAME: Hash[::Symbol, Attribute]
2085
-
2086
- # @private
2087
- BY_TYPE: Hash[::Integer, Attribute]
815
+ class QueueId
816
+ module Definitions
817
+ # @private
818
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
2088
819
 
2089
- # netdev ifindex to bind the dmabuf to.
2090
- # @rbs return: ::Integer
2091
- # @return [Integer]
2092
- # @see Ifindex
2093
- def ifindex: () -> ::Integer
820
+ # @private
821
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
822
+ end
823
+ end
2094
824
 
2095
- # receive queues to bind the dmabuf to.
2096
- # @rbs return: ::Array[AttributeSets::QueueId]
2097
- # @return [Array<AttributeSets::QueueId>]
2098
- # @see Queues
2099
- def queues: () -> ::Array[AttributeSets::QueueId]
825
+ class Lease
826
+ module Definitions
827
+ # @private
828
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
2100
829
 
2101
- # dmabuf file descriptor to bind.
2102
- # @rbs return: ::Integer
2103
- # @return [Integer]
2104
- # @see Fd
2105
- def fd: () -> ::Integer
830
+ # @private
831
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
832
+ end
833
+ end
2106
834
 
2107
- # id of the dmabuf binding
2108
- # @rbs return: ::Integer
2109
- # @return [Integer]
2110
- # @see Id
2111
- def id: () -> ::Integer
835
+ class Dmabuf
836
+ module Definitions
837
+ # @private
838
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
2112
839
 
2113
- # Looks up Attribute class by name.
2114
- # @rbs name: Symbol
2115
- # @rbs return: Attribute
2116
- # @param [Symbol] name
2117
- # @return [Attribute]
2118
- def self.by_name: (Symbol name) -> Attribute
2119
-
2120
- # Looks up Attribute class by type value.
2121
- # @rbs type: Integer
2122
- # @rbs return: Attribute
2123
- # @param [Integer] type
2124
- # @return [Attribute]
2125
- def self.by_type: (Integer type) -> Attribute
840
+ # @private
841
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
842
+ end
2126
843
  end
2127
844
  end
2128
845
 
2129
846
  module Messages
2130
847
  # Get / dump information about a netdev.
2131
- class DoDevGetRequest < ::Nl::Genl::Message
848
+ class DoDevGetRequest < ::Nl::Message
2132
849
  TYPE: ::Integer
2133
850
 
2134
851
  FIXED_HEADER: untyped
@@ -2137,15 +854,27 @@ module Nl
2137
854
 
2138
855
  ATTRIBUTES: untyped
2139
856
 
857
+ include ATTRIBUTE_SET::Definitions
858
+
859
+ def initialize: (?untyped attributes) -> untyped
860
+
861
+ # @private
862
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
863
+
864
+ # Decodes a message payload from the decoder into a new instance.
865
+ # @rbs (::Nl::Decoder decoder) -> instance
866
+ def self.decode: (::Nl::Decoder decoder) -> instance
867
+
868
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
869
+
2140
870
  # netdev ifindex
2141
871
  # @rbs return: ::Integer
2142
872
  # @return [Integer]
2143
- # @see AttributeSets::Dev::Ifindex
2144
873
  def ifindex: () -> ::Integer
2145
874
  end
2146
875
 
2147
876
  # Get / dump information about a netdev.
2148
- class DoDevGetReply < ::Nl::Genl::Message
877
+ class DoDevGetReply < ::Nl::Message
2149
878
  TYPE: ::Integer
2150
879
 
2151
880
  FIXED_HEADER: untyped
@@ -2154,10 +883,22 @@ module Nl
2154
883
 
2155
884
  ATTRIBUTES: untyped
2156
885
 
886
+ include ATTRIBUTE_SET::Definitions
887
+
888
+ def initialize: (?untyped attributes) -> untyped
889
+
890
+ # @private
891
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
892
+
893
+ # Decodes a message payload from the decoder into a new instance.
894
+ # @rbs (::Nl::Decoder decoder) -> instance
895
+ def self.decode: (::Nl::Decoder decoder) -> instance
896
+
897
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
898
+
2157
899
  # netdev ifindex
2158
900
  # @rbs return: ::Integer
2159
901
  # @return [Integer]
2160
- # @see AttributeSets::Dev::Ifindex
2161
902
  def ifindex: () -> ::Integer
2162
903
 
2163
904
  # Bitmask of enabled xdp-features.
@@ -2165,13 +906,11 @@ module Nl
2165
906
  # Known flags are defined in {Flags::XdpAct}.
2166
907
  # @rbs return: ::Integer
2167
908
  # @return [Integer]
2168
- # @see AttributeSets::Dev::XdpFeatures
2169
909
  def xdp_features: () -> ::Integer
2170
910
 
2171
911
  # max fragment count supported by ZC driver
2172
912
  # @rbs return: ::Integer
2173
913
  # @return [Integer]
2174
- # @see AttributeSets::Dev::XdpZcMaxSegs
2175
914
  def xdp_zc_max_segs: () -> ::Integer
2176
915
 
2177
916
  # Bitmask of supported XDP receive metadata features. See {https://docs.kernel.org/networking/xdp-rx-metadata.html Documentation/networking/xdp-rx-metadata.rst} for more details.
@@ -2179,7 +918,6 @@ module Nl
2179
918
  # Known flags are defined in {Flags::XdpRxMetadata}.
2180
919
  # @rbs return: ::Integer
2181
920
  # @return [Integer]
2182
- # @see AttributeSets::Dev::XdpRxMetadataFeatures
2183
921
  def xdp_rx_metadata_features: () -> ::Integer
2184
922
 
2185
923
  # Bitmask of enabled AF_XDP features.
@@ -2187,12 +925,11 @@ module Nl
2187
925
  # Known flags are defined in {Flags::XskFlags}.
2188
926
  # @rbs return: ::Integer
2189
927
  # @return [Integer]
2190
- # @see AttributeSets::Dev::XskFeatures
2191
928
  def xsk_features: () -> ::Integer
2192
929
  end
2193
930
 
2194
931
  # Get / dump information about a netdev.
2195
- class DumpDevGetRequest < ::Nl::Genl::Message
932
+ class DumpDevGetRequest < ::Nl::Message
2196
933
  TYPE: ::Integer
2197
934
 
2198
935
  FIXED_HEADER: untyped
@@ -2200,10 +937,23 @@ module Nl
2200
937
  ATTRIBUTE_SET: untyped
2201
938
 
2202
939
  ATTRIBUTES: untyped
940
+
941
+ include ATTRIBUTE_SET::Definitions
942
+
943
+ def initialize: (?untyped attributes) -> untyped
944
+
945
+ # @private
946
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
947
+
948
+ # Decodes a message payload from the decoder into a new instance.
949
+ # @rbs (::Nl::Decoder decoder) -> instance
950
+ def self.decode: (::Nl::Decoder decoder) -> instance
951
+
952
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2203
953
  end
2204
954
 
2205
955
  # Get / dump information about a netdev.
2206
- class DumpDevGetReply < ::Nl::Genl::Message
956
+ class DumpDevGetReply < ::Nl::Message
2207
957
  TYPE: ::Integer
2208
958
 
2209
959
  FIXED_HEADER: untyped
@@ -2212,10 +962,22 @@ module Nl
2212
962
 
2213
963
  ATTRIBUTES: untyped
2214
964
 
965
+ include ATTRIBUTE_SET::Definitions
966
+
967
+ def initialize: (?untyped attributes) -> untyped
968
+
969
+ # @private
970
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
971
+
972
+ # Decodes a message payload from the decoder into a new instance.
973
+ # @rbs (::Nl::Decoder decoder) -> instance
974
+ def self.decode: (::Nl::Decoder decoder) -> instance
975
+
976
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
977
+
2215
978
  # netdev ifindex
2216
979
  # @rbs return: ::Integer
2217
980
  # @return [Integer]
2218
- # @see AttributeSets::Dev::Ifindex
2219
981
  def ifindex: () -> ::Integer
2220
982
 
2221
983
  # Bitmask of enabled xdp-features.
@@ -2223,13 +985,11 @@ module Nl
2223
985
  # Known flags are defined in {Flags::XdpAct}.
2224
986
  # @rbs return: ::Integer
2225
987
  # @return [Integer]
2226
- # @see AttributeSets::Dev::XdpFeatures
2227
988
  def xdp_features: () -> ::Integer
2228
989
 
2229
990
  # max fragment count supported by ZC driver
2230
991
  # @rbs return: ::Integer
2231
992
  # @return [Integer]
2232
- # @see AttributeSets::Dev::XdpZcMaxSegs
2233
993
  def xdp_zc_max_segs: () -> ::Integer
2234
994
 
2235
995
  # Bitmask of supported XDP receive metadata features. See {https://docs.kernel.org/networking/xdp-rx-metadata.html Documentation/networking/xdp-rx-metadata.rst} for more details.
@@ -2237,7 +997,6 @@ module Nl
2237
997
  # Known flags are defined in {Flags::XdpRxMetadata}.
2238
998
  # @rbs return: ::Integer
2239
999
  # @return [Integer]
2240
- # @see AttributeSets::Dev::XdpRxMetadataFeatures
2241
1000
  def xdp_rx_metadata_features: () -> ::Integer
2242
1001
 
2243
1002
  # Bitmask of enabled AF_XDP features.
@@ -2245,7 +1004,6 @@ module Nl
2245
1004
  # Known flags are defined in {Flags::XskFlags}.
2246
1005
  # @rbs return: ::Integer
2247
1006
  # @return [Integer]
2248
- # @see AttributeSets::Dev::XskFeatures
2249
1007
  def xsk_features: () -> ::Integer
2250
1008
  end
2251
1009
 
@@ -2253,7 +1011,7 @@ module Nl
2253
1011
  # Only Page Pools associated by the driver with a net_device
2254
1012
  # can be listed. ifindex will not be reported if the net_device
2255
1013
  # no longer exists.
2256
- class DoPagePoolGetRequest < ::Nl::Genl::Message
1014
+ class DoPagePoolGetRequest < ::Nl::Message
2257
1015
  TYPE: ::Integer
2258
1016
 
2259
1017
  FIXED_HEADER: untyped
@@ -2262,10 +1020,22 @@ module Nl
2262
1020
 
2263
1021
  ATTRIBUTES: untyped
2264
1022
 
1023
+ include ATTRIBUTE_SET::Definitions
1024
+
1025
+ def initialize: (?untyped attributes) -> untyped
1026
+
1027
+ # @private
1028
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1029
+
1030
+ # Decodes a message payload from the decoder into a new instance.
1031
+ # @rbs (::Nl::Decoder decoder) -> instance
1032
+ def self.decode: (::Nl::Decoder decoder) -> instance
1033
+
1034
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1035
+
2265
1036
  # Unique ID of a Page Pool instance.
2266
1037
  # @rbs return: ::Integer
2267
1038
  # @return [Integer]
2268
- # @see AttributeSets::PagePool::Id
2269
1039
  def id: () -> ::Integer
2270
1040
  end
2271
1041
 
@@ -2273,7 +1043,7 @@ module Nl
2273
1043
  # Only Page Pools associated by the driver with a net_device
2274
1044
  # can be listed. ifindex will not be reported if the net_device
2275
1045
  # no longer exists.
2276
- class DoPagePoolGetReply < ::Nl::Genl::Message
1046
+ class DoPagePoolGetReply < ::Nl::Message
2277
1047
  TYPE: ::Integer
2278
1048
 
2279
1049
  FIXED_HEADER: untyped
@@ -2282,10 +1052,22 @@ module Nl
2282
1052
 
2283
1053
  ATTRIBUTES: untyped
2284
1054
 
1055
+ include ATTRIBUTE_SET::Definitions
1056
+
1057
+ def initialize: (?untyped attributes) -> untyped
1058
+
1059
+ # @private
1060
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1061
+
1062
+ # Decodes a message payload from the decoder into a new instance.
1063
+ # @rbs (::Nl::Decoder decoder) -> instance
1064
+ def self.decode: (::Nl::Decoder decoder) -> instance
1065
+
1066
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1067
+
2285
1068
  # Unique ID of a Page Pool instance.
2286
1069
  # @rbs return: ::Integer
2287
1070
  # @return [Integer]
2288
- # @see AttributeSets::PagePool::Id
2289
1071
  def id: () -> ::Integer
2290
1072
 
2291
1073
  # ifindex of the netdev to which the pool belongs.
@@ -2294,13 +1076,11 @@ module Nl
2294
1076
  # because they wait for all memory to be returned).
2295
1077
  # @rbs return: ::Integer
2296
1078
  # @return [Integer]
2297
- # @see AttributeSets::PagePool::Ifindex
2298
1079
  def ifindex: () -> ::Integer
2299
1080
 
2300
1081
  # Id of NAPI using this Page Pool instance.
2301
1082
  # @rbs return: ::Integer
2302
1083
  # @return [Integer]
2303
- # @see AttributeSets::PagePool::NapiId
2304
1084
  def napi_id: () -> ::Integer
2305
1085
 
2306
1086
  # Number of outstanding references to this page pool (allocated
@@ -2309,13 +1089,11 @@ module Nl
2309
1089
  # ring, the page pool cache, etc.
2310
1090
  # @rbs return: ::Integer
2311
1091
  # @return [Integer]
2312
- # @see AttributeSets::PagePool::Inflight
2313
1092
  def inflight: () -> ::Integer
2314
1093
 
2315
1094
  # Amount of memory held by inflight pages.
2316
1095
  # @rbs return: ::Integer
2317
1096
  # @return [Integer]
2318
- # @see AttributeSets::PagePool::InflightMem
2319
1097
  def inflight_mem: () -> ::Integer
2320
1098
 
2321
1099
  # Seconds in CLOCK_BOOTTIME of when Page Pool was detached by
@@ -2328,19 +1106,16 @@ module Nl
2328
1106
  # can still be used to allocate new memory.
2329
1107
  # @rbs return: ::Integer
2330
1108
  # @return [Integer]
2331
- # @see AttributeSets::PagePool::DetachTime
2332
1109
  def detach_time: () -> ::Integer
2333
1110
 
2334
1111
  # ID of the dmabuf this page-pool is attached to.
2335
1112
  # @rbs return: ::Integer
2336
1113
  # @return [Integer]
2337
- # @see AttributeSets::PagePool::Dmabuf
2338
1114
  def dmabuf: () -> ::Integer
2339
1115
 
2340
1116
  # io-uring memory provider information.
2341
1117
  # @rbs return: AttributeSets::IoUringProviderInfo
2342
1118
  # @return [AttributeSets::IoUringProviderInfo]
2343
- # @see AttributeSets::PagePool::IoUring
2344
1119
  def io_uring: () -> AttributeSets::IoUringProviderInfo
2345
1120
  end
2346
1121
 
@@ -2348,7 +1123,7 @@ module Nl
2348
1123
  # Only Page Pools associated by the driver with a net_device
2349
1124
  # can be listed. ifindex will not be reported if the net_device
2350
1125
  # no longer exists.
2351
- class DumpPagePoolGetRequest < ::Nl::Genl::Message
1126
+ class DumpPagePoolGetRequest < ::Nl::Message
2352
1127
  TYPE: ::Integer
2353
1128
 
2354
1129
  FIXED_HEADER: untyped
@@ -2357,13 +1132,25 @@ module Nl
2357
1132
 
2358
1133
  ATTRIBUTES: untyped
2359
1134
 
1135
+ include ATTRIBUTE_SET::Definitions
1136
+
1137
+ def initialize: (?untyped attributes) -> untyped
1138
+
1139
+ # @private
1140
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1141
+
1142
+ # Decodes a message payload from the decoder into a new instance.
1143
+ # @rbs (::Nl::Decoder decoder) -> instance
1144
+ def self.decode: (::Nl::Decoder decoder) -> instance
1145
+
1146
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1147
+
2360
1148
  # ifindex of the netdev to which the pool belongs.
2361
1149
  # May not be reported if the page pool was allocated for a netdev
2362
1150
  # which got destroyed already (page pools may outlast their netdevs
2363
1151
  # because they wait for all memory to be returned).
2364
1152
  # @rbs return: ::Integer
2365
1153
  # @return [Integer]
2366
- # @see AttributeSets::PagePool::Ifindex
2367
1154
  def ifindex: () -> ::Integer
2368
1155
  end
2369
1156
 
@@ -2371,7 +1158,7 @@ module Nl
2371
1158
  # Only Page Pools associated by the driver with a net_device
2372
1159
  # can be listed. ifindex will not be reported if the net_device
2373
1160
  # no longer exists.
2374
- class DumpPagePoolGetReply < ::Nl::Genl::Message
1161
+ class DumpPagePoolGetReply < ::Nl::Message
2375
1162
  TYPE: ::Integer
2376
1163
 
2377
1164
  FIXED_HEADER: untyped
@@ -2380,10 +1167,22 @@ module Nl
2380
1167
 
2381
1168
  ATTRIBUTES: untyped
2382
1169
 
1170
+ include ATTRIBUTE_SET::Definitions
1171
+
1172
+ def initialize: (?untyped attributes) -> untyped
1173
+
1174
+ # @private
1175
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1176
+
1177
+ # Decodes a message payload from the decoder into a new instance.
1178
+ # @rbs (::Nl::Decoder decoder) -> instance
1179
+ def self.decode: (::Nl::Decoder decoder) -> instance
1180
+
1181
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1182
+
2383
1183
  # Unique ID of a Page Pool instance.
2384
1184
  # @rbs return: ::Integer
2385
1185
  # @return [Integer]
2386
- # @see AttributeSets::PagePool::Id
2387
1186
  def id: () -> ::Integer
2388
1187
 
2389
1188
  # ifindex of the netdev to which the pool belongs.
@@ -2392,13 +1191,11 @@ module Nl
2392
1191
  # because they wait for all memory to be returned).
2393
1192
  # @rbs return: ::Integer
2394
1193
  # @return [Integer]
2395
- # @see AttributeSets::PagePool::Ifindex
2396
1194
  def ifindex: () -> ::Integer
2397
1195
 
2398
1196
  # Id of NAPI using this Page Pool instance.
2399
1197
  # @rbs return: ::Integer
2400
1198
  # @return [Integer]
2401
- # @see AttributeSets::PagePool::NapiId
2402
1199
  def napi_id: () -> ::Integer
2403
1200
 
2404
1201
  # Number of outstanding references to this page pool (allocated
@@ -2407,13 +1204,11 @@ module Nl
2407
1204
  # ring, the page pool cache, etc.
2408
1205
  # @rbs return: ::Integer
2409
1206
  # @return [Integer]
2410
- # @see AttributeSets::PagePool::Inflight
2411
1207
  def inflight: () -> ::Integer
2412
1208
 
2413
1209
  # Amount of memory held by inflight pages.
2414
1210
  # @rbs return: ::Integer
2415
1211
  # @return [Integer]
2416
- # @see AttributeSets::PagePool::InflightMem
2417
1212
  def inflight_mem: () -> ::Integer
2418
1213
 
2419
1214
  # Seconds in CLOCK_BOOTTIME of when Page Pool was detached by
@@ -2426,24 +1221,21 @@ module Nl
2426
1221
  # can still be used to allocate new memory.
2427
1222
  # @rbs return: ::Integer
2428
1223
  # @return [Integer]
2429
- # @see AttributeSets::PagePool::DetachTime
2430
1224
  def detach_time: () -> ::Integer
2431
1225
 
2432
1226
  # ID of the dmabuf this page-pool is attached to.
2433
1227
  # @rbs return: ::Integer
2434
1228
  # @return [Integer]
2435
- # @see AttributeSets::PagePool::Dmabuf
2436
1229
  def dmabuf: () -> ::Integer
2437
1230
 
2438
1231
  # io-uring memory provider information.
2439
1232
  # @rbs return: AttributeSets::IoUringProviderInfo
2440
1233
  # @return [AttributeSets::IoUringProviderInfo]
2441
- # @see AttributeSets::PagePool::IoUring
2442
1234
  def io_uring: () -> AttributeSets::IoUringProviderInfo
2443
1235
  end
2444
1236
 
2445
1237
  # Get page pool statistics.
2446
- class DoPagePoolStatsGetRequest < ::Nl::Genl::Message
1238
+ class DoPagePoolStatsGetRequest < ::Nl::Message
2447
1239
  TYPE: ::Integer
2448
1240
 
2449
1241
  FIXED_HEADER: untyped
@@ -2452,15 +1244,27 @@ module Nl
2452
1244
 
2453
1245
  ATTRIBUTES: untyped
2454
1246
 
1247
+ include ATTRIBUTE_SET::Definitions
1248
+
1249
+ def initialize: (?untyped attributes) -> untyped
1250
+
1251
+ # @private
1252
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1253
+
1254
+ # Decodes a message payload from the decoder into a new instance.
1255
+ # @rbs (::Nl::Decoder decoder) -> instance
1256
+ def self.decode: (::Nl::Decoder decoder) -> instance
1257
+
1258
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1259
+
2455
1260
  # Page pool identifying information.
2456
1261
  # @rbs return: AttributeSets::PagePoolInfo
2457
1262
  # @return [AttributeSets::PagePoolInfo]
2458
- # @see AttributeSets::PagePoolStats::Info
2459
1263
  def info: () -> AttributeSets::PagePoolInfo
2460
1264
  end
2461
1265
 
2462
1266
  # Get page pool statistics.
2463
- class DoPagePoolStatsGetReply < ::Nl::Genl::Message
1267
+ class DoPagePoolStatsGetReply < ::Nl::Message
2464
1268
  TYPE: ::Integer
2465
1269
 
2466
1270
  FIXED_HEADER: untyped
@@ -2469,70 +1273,71 @@ module Nl
2469
1273
 
2470
1274
  ATTRIBUTES: untyped
2471
1275
 
1276
+ include ATTRIBUTE_SET::Definitions
1277
+
1278
+ def initialize: (?untyped attributes) -> untyped
1279
+
1280
+ # @private
1281
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1282
+
1283
+ # Decodes a message payload from the decoder into a new instance.
1284
+ # @rbs (::Nl::Decoder decoder) -> instance
1285
+ def self.decode: (::Nl::Decoder decoder) -> instance
1286
+
1287
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1288
+
2472
1289
  # Page pool identifying information.
2473
1290
  # @rbs return: AttributeSets::PagePoolInfo
2474
1291
  # @return [AttributeSets::PagePoolInfo]
2475
- # @see AttributeSets::PagePoolStats::Info
2476
1292
  def info: () -> AttributeSets::PagePoolInfo
2477
1293
 
2478
1294
  # @rbs return: ::Integer
2479
1295
  # @return [Integer]
2480
- # @see AttributeSets::PagePoolStats::AllocFast
2481
1296
  def alloc_fast: () -> ::Integer
2482
1297
 
2483
1298
  # @rbs return: ::Integer
2484
1299
  # @return [Integer]
2485
- # @see AttributeSets::PagePoolStats::AllocSlow
2486
1300
  def alloc_slow: () -> ::Integer
2487
1301
 
2488
1302
  # @rbs return: ::Integer
2489
1303
  # @return [Integer]
2490
- # @see AttributeSets::PagePoolStats::AllocSlowHighOrder
2491
1304
  def alloc_slow_high_order: () -> ::Integer
2492
1305
 
2493
1306
  # @rbs return: ::Integer
2494
1307
  # @return [Integer]
2495
- # @see AttributeSets::PagePoolStats::AllocEmpty
2496
1308
  def alloc_empty: () -> ::Integer
2497
1309
 
2498
1310
  # @rbs return: ::Integer
2499
1311
  # @return [Integer]
2500
- # @see AttributeSets::PagePoolStats::AllocRefill
2501
1312
  def alloc_refill: () -> ::Integer
2502
1313
 
2503
1314
  # @rbs return: ::Integer
2504
1315
  # @return [Integer]
2505
- # @see AttributeSets::PagePoolStats::AllocWaive
2506
1316
  def alloc_waive: () -> ::Integer
2507
1317
 
2508
1318
  # @rbs return: ::Integer
2509
1319
  # @return [Integer]
2510
- # @see AttributeSets::PagePoolStats::RecycleCached
2511
1320
  def recycle_cached: () -> ::Integer
2512
1321
 
2513
1322
  # @rbs return: ::Integer
2514
1323
  # @return [Integer]
2515
- # @see AttributeSets::PagePoolStats::RecycleCacheFull
2516
1324
  def recycle_cache_full: () -> ::Integer
2517
1325
 
2518
1326
  # @rbs return: ::Integer
2519
1327
  # @return [Integer]
2520
- # @see AttributeSets::PagePoolStats::RecycleRing
2521
1328
  def recycle_ring: () -> ::Integer
2522
1329
 
2523
1330
  # @rbs return: ::Integer
2524
1331
  # @return [Integer]
2525
- # @see AttributeSets::PagePoolStats::RecycleRingFull
2526
1332
  def recycle_ring_full: () -> ::Integer
2527
1333
 
2528
1334
  # @rbs return: ::Integer
2529
1335
  # @return [Integer]
2530
- # @see AttributeSets::PagePoolStats::RecycleReleasedRefcnt
2531
1336
  def recycle_released_refcnt: () -> ::Integer
2532
1337
  end
2533
1338
 
2534
1339
  # Get page pool statistics.
2535
- class DumpPagePoolStatsGetRequest < ::Nl::Genl::Message
1340
+ class DumpPagePoolStatsGetRequest < ::Nl::Message
2536
1341
  TYPE: ::Integer
2537
1342
 
2538
1343
  FIXED_HEADER: untyped
@@ -2541,15 +1346,27 @@ module Nl
2541
1346
 
2542
1347
  ATTRIBUTES: untyped
2543
1348
 
1349
+ include ATTRIBUTE_SET::Definitions
1350
+
1351
+ def initialize: (?untyped attributes) -> untyped
1352
+
1353
+ # @private
1354
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1355
+
1356
+ # Decodes a message payload from the decoder into a new instance.
1357
+ # @rbs (::Nl::Decoder decoder) -> instance
1358
+ def self.decode: (::Nl::Decoder decoder) -> instance
1359
+
1360
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1361
+
2544
1362
  # Page pool identifying information.
2545
1363
  # @rbs return: AttributeSets::PagePoolInfo
2546
1364
  # @return [AttributeSets::PagePoolInfo]
2547
- # @see AttributeSets::PagePoolStats::Info
2548
1365
  def info: () -> AttributeSets::PagePoolInfo
2549
1366
  end
2550
1367
 
2551
1368
  # Get page pool statistics.
2552
- class DumpPagePoolStatsGetReply < ::Nl::Genl::Message
1369
+ class DumpPagePoolStatsGetReply < ::Nl::Message
2553
1370
  TYPE: ::Integer
2554
1371
 
2555
1372
  FIXED_HEADER: untyped
@@ -2558,70 +1375,71 @@ module Nl
2558
1375
 
2559
1376
  ATTRIBUTES: untyped
2560
1377
 
1378
+ include ATTRIBUTE_SET::Definitions
1379
+
1380
+ def initialize: (?untyped attributes) -> untyped
1381
+
1382
+ # @private
1383
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1384
+
1385
+ # Decodes a message payload from the decoder into a new instance.
1386
+ # @rbs (::Nl::Decoder decoder) -> instance
1387
+ def self.decode: (::Nl::Decoder decoder) -> instance
1388
+
1389
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1390
+
2561
1391
  # Page pool identifying information.
2562
1392
  # @rbs return: AttributeSets::PagePoolInfo
2563
1393
  # @return [AttributeSets::PagePoolInfo]
2564
- # @see AttributeSets::PagePoolStats::Info
2565
1394
  def info: () -> AttributeSets::PagePoolInfo
2566
1395
 
2567
1396
  # @rbs return: ::Integer
2568
1397
  # @return [Integer]
2569
- # @see AttributeSets::PagePoolStats::AllocFast
2570
1398
  def alloc_fast: () -> ::Integer
2571
1399
 
2572
1400
  # @rbs return: ::Integer
2573
1401
  # @return [Integer]
2574
- # @see AttributeSets::PagePoolStats::AllocSlow
2575
1402
  def alloc_slow: () -> ::Integer
2576
1403
 
2577
1404
  # @rbs return: ::Integer
2578
1405
  # @return [Integer]
2579
- # @see AttributeSets::PagePoolStats::AllocSlowHighOrder
2580
1406
  def alloc_slow_high_order: () -> ::Integer
2581
1407
 
2582
1408
  # @rbs return: ::Integer
2583
1409
  # @return [Integer]
2584
- # @see AttributeSets::PagePoolStats::AllocEmpty
2585
1410
  def alloc_empty: () -> ::Integer
2586
1411
 
2587
1412
  # @rbs return: ::Integer
2588
1413
  # @return [Integer]
2589
- # @see AttributeSets::PagePoolStats::AllocRefill
2590
1414
  def alloc_refill: () -> ::Integer
2591
1415
 
2592
1416
  # @rbs return: ::Integer
2593
1417
  # @return [Integer]
2594
- # @see AttributeSets::PagePoolStats::AllocWaive
2595
1418
  def alloc_waive: () -> ::Integer
2596
1419
 
2597
1420
  # @rbs return: ::Integer
2598
1421
  # @return [Integer]
2599
- # @see AttributeSets::PagePoolStats::RecycleCached
2600
1422
  def recycle_cached: () -> ::Integer
2601
1423
 
2602
1424
  # @rbs return: ::Integer
2603
1425
  # @return [Integer]
2604
- # @see AttributeSets::PagePoolStats::RecycleCacheFull
2605
1426
  def recycle_cache_full: () -> ::Integer
2606
1427
 
2607
1428
  # @rbs return: ::Integer
2608
1429
  # @return [Integer]
2609
- # @see AttributeSets::PagePoolStats::RecycleRing
2610
1430
  def recycle_ring: () -> ::Integer
2611
1431
 
2612
1432
  # @rbs return: ::Integer
2613
1433
  # @return [Integer]
2614
- # @see AttributeSets::PagePoolStats::RecycleRingFull
2615
1434
  def recycle_ring_full: () -> ::Integer
2616
1435
 
2617
1436
  # @rbs return: ::Integer
2618
1437
  # @return [Integer]
2619
- # @see AttributeSets::PagePoolStats::RecycleReleasedRefcnt
2620
1438
  def recycle_released_refcnt: () -> ::Integer
2621
1439
  end
2622
1440
 
2623
1441
  # Get queue information from the kernel. Only configured queues will be reported (as opposed to all available hardware queues).
2624
- class DoQueueGetRequest < ::Nl::Genl::Message
1442
+ class DoQueueGetRequest < ::Nl::Message
2625
1443
  TYPE: ::Integer
2626
1444
 
2627
1445
  FIXED_HEADER: untyped
@@ -2630,16 +1448,27 @@ module Nl
2630
1448
 
2631
1449
  ATTRIBUTES: untyped
2632
1450
 
1451
+ include ATTRIBUTE_SET::Definitions
1452
+
1453
+ def initialize: (?untyped attributes) -> untyped
1454
+
1455
+ # @private
1456
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1457
+
1458
+ # Decodes a message payload from the decoder into a new instance.
1459
+ # @rbs (::Nl::Decoder decoder) -> instance
1460
+ def self.decode: (::Nl::Decoder decoder) -> instance
1461
+
1462
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1463
+
2633
1464
  # Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
2634
1465
  # @rbs return: ::Integer
2635
1466
  # @return [Integer]
2636
- # @see AttributeSets::Queue::Id
2637
1467
  def id: () -> ::Integer
2638
1468
 
2639
1469
  # ifindex of the netdevice to which the queue belongs.
2640
1470
  # @rbs return: ::Integer
2641
1471
  # @return [Integer]
2642
- # @see AttributeSets::Queue::Ifindex
2643
1472
  def ifindex: () -> ::Integer
2644
1473
 
2645
1474
  # Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.
@@ -2647,12 +1476,11 @@ module Nl
2647
1476
  # Known enum values are defined in {Enums::QueueType}.
2648
1477
  # @rbs return: ::Integer
2649
1478
  # @return [Integer]
2650
- # @see AttributeSets::Queue::Type
2651
1479
  def type: () -> ::Integer
2652
1480
  end
2653
1481
 
2654
1482
  # Get queue information from the kernel. Only configured queues will be reported (as opposed to all available hardware queues).
2655
- class DoQueueGetReply < ::Nl::Genl::Message
1483
+ class DoQueueGetReply < ::Nl::Message
2656
1484
  TYPE: ::Integer
2657
1485
 
2658
1486
  FIXED_HEADER: untyped
@@ -2661,16 +1489,27 @@ module Nl
2661
1489
 
2662
1490
  ATTRIBUTES: untyped
2663
1491
 
1492
+ include ATTRIBUTE_SET::Definitions
1493
+
1494
+ def initialize: (?untyped attributes) -> untyped
1495
+
1496
+ # @private
1497
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1498
+
1499
+ # Decodes a message payload from the decoder into a new instance.
1500
+ # @rbs (::Nl::Decoder decoder) -> instance
1501
+ def self.decode: (::Nl::Decoder decoder) -> instance
1502
+
1503
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1504
+
2664
1505
  # Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
2665
1506
  # @rbs return: ::Integer
2666
1507
  # @return [Integer]
2667
- # @see AttributeSets::Queue::Id
2668
1508
  def id: () -> ::Integer
2669
1509
 
2670
1510
  # ifindex of the netdevice to which the queue belongs.
2671
1511
  # @rbs return: ::Integer
2672
1512
  # @return [Integer]
2673
- # @see AttributeSets::Queue::Ifindex
2674
1513
  def ifindex: () -> ::Integer
2675
1514
 
2676
1515
  # Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.
@@ -2678,31 +1517,26 @@ module Nl
2678
1517
  # Known enum values are defined in {Enums::QueueType}.
2679
1518
  # @rbs return: ::Integer
2680
1519
  # @return [Integer]
2681
- # @see AttributeSets::Queue::Type
2682
1520
  def type: () -> ::Integer
2683
1521
 
2684
1522
  # ID of the NAPI instance which services this queue.
2685
1523
  # @rbs return: ::Integer
2686
1524
  # @return [Integer]
2687
- # @see AttributeSets::Queue::NapiId
2688
1525
  def napi_id: () -> ::Integer
2689
1526
 
2690
1527
  # ID of the dmabuf attached to this queue, if any.
2691
1528
  # @rbs return: ::Integer
2692
1529
  # @return [Integer]
2693
- # @see AttributeSets::Queue::Dmabuf
2694
1530
  def dmabuf: () -> ::Integer
2695
1531
 
2696
1532
  # io_uring memory provider information.
2697
1533
  # @rbs return: AttributeSets::IoUringProviderInfo
2698
1534
  # @return [AttributeSets::IoUringProviderInfo]
2699
- # @see AttributeSets::Queue::IoUring
2700
1535
  def io_uring: () -> AttributeSets::IoUringProviderInfo
2701
1536
 
2702
1537
  # XSK information for this queue, if any.
2703
1538
  # @rbs return: AttributeSets::XskInfo
2704
1539
  # @return [AttributeSets::XskInfo]
2705
- # @see AttributeSets::Queue::Xsk
2706
1540
  def xsk: () -> AttributeSets::XskInfo
2707
1541
 
2708
1542
  # A queue from a virtual device can have a lease which refers to
@@ -2711,12 +1545,11 @@ module Nl
2711
1545
  # to allow applications to bind against virtual devices in containers.
2712
1546
  # @rbs return: AttributeSets::Lease
2713
1547
  # @return [AttributeSets::Lease]
2714
- # @see AttributeSets::Queue::Lease
2715
1548
  def lease: () -> AttributeSets::Lease
2716
1549
  end
2717
1550
 
2718
1551
  # Get queue information from the kernel. Only configured queues will be reported (as opposed to all available hardware queues).
2719
- class DumpQueueGetRequest < ::Nl::Genl::Message
1552
+ class DumpQueueGetRequest < ::Nl::Message
2720
1553
  TYPE: ::Integer
2721
1554
 
2722
1555
  FIXED_HEADER: untyped
@@ -2725,15 +1558,27 @@ module Nl
2725
1558
 
2726
1559
  ATTRIBUTES: untyped
2727
1560
 
1561
+ include ATTRIBUTE_SET::Definitions
1562
+
1563
+ def initialize: (?untyped attributes) -> untyped
1564
+
1565
+ # @private
1566
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1567
+
1568
+ # Decodes a message payload from the decoder into a new instance.
1569
+ # @rbs (::Nl::Decoder decoder) -> instance
1570
+ def self.decode: (::Nl::Decoder decoder) -> instance
1571
+
1572
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1573
+
2728
1574
  # ifindex of the netdevice to which the queue belongs.
2729
1575
  # @rbs return: ::Integer
2730
1576
  # @return [Integer]
2731
- # @see AttributeSets::Queue::Ifindex
2732
1577
  def ifindex: () -> ::Integer
2733
1578
  end
2734
1579
 
2735
1580
  # Get queue information from the kernel. Only configured queues will be reported (as opposed to all available hardware queues).
2736
- class DumpQueueGetReply < ::Nl::Genl::Message
1581
+ class DumpQueueGetReply < ::Nl::Message
2737
1582
  TYPE: ::Integer
2738
1583
 
2739
1584
  FIXED_HEADER: untyped
@@ -2742,16 +1587,27 @@ module Nl
2742
1587
 
2743
1588
  ATTRIBUTES: untyped
2744
1589
 
1590
+ include ATTRIBUTE_SET::Definitions
1591
+
1592
+ def initialize: (?untyped attributes) -> untyped
1593
+
1594
+ # @private
1595
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1596
+
1597
+ # Decodes a message payload from the decoder into a new instance.
1598
+ # @rbs (::Nl::Decoder decoder) -> instance
1599
+ def self.decode: (::Nl::Decoder decoder) -> instance
1600
+
1601
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1602
+
2745
1603
  # Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
2746
1604
  # @rbs return: ::Integer
2747
1605
  # @return [Integer]
2748
- # @see AttributeSets::Queue::Id
2749
1606
  def id: () -> ::Integer
2750
1607
 
2751
1608
  # ifindex of the netdevice to which the queue belongs.
2752
1609
  # @rbs return: ::Integer
2753
1610
  # @return [Integer]
2754
- # @see AttributeSets::Queue::Ifindex
2755
1611
  def ifindex: () -> ::Integer
2756
1612
 
2757
1613
  # Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.
@@ -2759,31 +1615,26 @@ module Nl
2759
1615
  # Known enum values are defined in {Enums::QueueType}.
2760
1616
  # @rbs return: ::Integer
2761
1617
  # @return [Integer]
2762
- # @see AttributeSets::Queue::Type
2763
1618
  def type: () -> ::Integer
2764
1619
 
2765
1620
  # ID of the NAPI instance which services this queue.
2766
1621
  # @rbs return: ::Integer
2767
1622
  # @return [Integer]
2768
- # @see AttributeSets::Queue::NapiId
2769
1623
  def napi_id: () -> ::Integer
2770
1624
 
2771
1625
  # ID of the dmabuf attached to this queue, if any.
2772
1626
  # @rbs return: ::Integer
2773
1627
  # @return [Integer]
2774
- # @see AttributeSets::Queue::Dmabuf
2775
1628
  def dmabuf: () -> ::Integer
2776
1629
 
2777
1630
  # io_uring memory provider information.
2778
1631
  # @rbs return: AttributeSets::IoUringProviderInfo
2779
1632
  # @return [AttributeSets::IoUringProviderInfo]
2780
- # @see AttributeSets::Queue::IoUring
2781
1633
  def io_uring: () -> AttributeSets::IoUringProviderInfo
2782
1634
 
2783
1635
  # XSK information for this queue, if any.
2784
1636
  # @rbs return: AttributeSets::XskInfo
2785
1637
  # @return [AttributeSets::XskInfo]
2786
- # @see AttributeSets::Queue::Xsk
2787
1638
  def xsk: () -> AttributeSets::XskInfo
2788
1639
 
2789
1640
  # A queue from a virtual device can have a lease which refers to
@@ -2792,12 +1643,11 @@ module Nl
2792
1643
  # to allow applications to bind against virtual devices in containers.
2793
1644
  # @rbs return: AttributeSets::Lease
2794
1645
  # @return [AttributeSets::Lease]
2795
- # @see AttributeSets::Queue::Lease
2796
1646
  def lease: () -> AttributeSets::Lease
2797
1647
  end
2798
1648
 
2799
1649
  # Get information about NAPI instances configured on the system.
2800
- class DoNapiGetRequest < ::Nl::Genl::Message
1650
+ class DoNapiGetRequest < ::Nl::Message
2801
1651
  TYPE: ::Integer
2802
1652
 
2803
1653
  FIXED_HEADER: untyped
@@ -2806,15 +1656,27 @@ module Nl
2806
1656
 
2807
1657
  ATTRIBUTES: untyped
2808
1658
 
1659
+ include ATTRIBUTE_SET::Definitions
1660
+
1661
+ def initialize: (?untyped attributes) -> untyped
1662
+
1663
+ # @private
1664
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1665
+
1666
+ # Decodes a message payload from the decoder into a new instance.
1667
+ # @rbs (::Nl::Decoder decoder) -> instance
1668
+ def self.decode: (::Nl::Decoder decoder) -> instance
1669
+
1670
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1671
+
2809
1672
  # ID of the NAPI instance.
2810
1673
  # @rbs return: ::Integer
2811
1674
  # @return [Integer]
2812
- # @see AttributeSets::Napi::Id
2813
1675
  def id: () -> ::Integer
2814
1676
  end
2815
1677
 
2816
1678
  # Get information about NAPI instances configured on the system.
2817
- class DoNapiGetReply < ::Nl::Genl::Message
1679
+ class DoNapiGetReply < ::Nl::Message
2818
1680
  TYPE: ::Integer
2819
1681
 
2820
1682
  FIXED_HEADER: untyped
@@ -2823,46 +1685,52 @@ module Nl
2823
1685
 
2824
1686
  ATTRIBUTES: untyped
2825
1687
 
1688
+ include ATTRIBUTE_SET::Definitions
1689
+
1690
+ def initialize: (?untyped attributes) -> untyped
1691
+
1692
+ # @private
1693
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1694
+
1695
+ # Decodes a message payload from the decoder into a new instance.
1696
+ # @rbs (::Nl::Decoder decoder) -> instance
1697
+ def self.decode: (::Nl::Decoder decoder) -> instance
1698
+
1699
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1700
+
2826
1701
  # ifindex of the netdevice to which NAPI instance belongs.
2827
1702
  # @rbs return: ::Integer
2828
1703
  # @return [Integer]
2829
- # @see AttributeSets::Napi::Ifindex
2830
1704
  def ifindex: () -> ::Integer
2831
1705
 
2832
1706
  # ID of the NAPI instance.
2833
1707
  # @rbs return: ::Integer
2834
1708
  # @return [Integer]
2835
- # @see AttributeSets::Napi::Id
2836
1709
  def id: () -> ::Integer
2837
1710
 
2838
1711
  # The associated interrupt vector number for the napi
2839
1712
  # @rbs return: ::Integer
2840
1713
  # @return [Integer]
2841
- # @see AttributeSets::Napi::Irq
2842
1714
  def irq: () -> ::Integer
2843
1715
 
2844
1716
  # PID of the napi thread, if NAPI is configured to operate in threaded mode. If NAPI is not in threaded mode (i.e. uses normal softirq context), the attribute will be absent.
2845
1717
  # @rbs return: ::Integer
2846
1718
  # @return [Integer]
2847
- # @see AttributeSets::Napi::Pid
2848
1719
  def pid: () -> ::Integer
2849
1720
 
2850
1721
  # The number of consecutive empty polls before IRQ deferral ends and hardware IRQs are re-enabled.
2851
1722
  # @rbs return: ::Integer
2852
1723
  # @return [Integer]
2853
- # @see AttributeSets::Napi::DeferHardIrqs
2854
1724
  def defer_hard_irqs: () -> ::Integer
2855
1725
 
2856
1726
  # The timeout, in nanoseconds, of when to trigger the NAPI watchdog timer which schedules NAPI processing. Additionally, a non-zero value will also prevent GRO from flushing recent super-frames at the end of a NAPI cycle. This may add receive latency in exchange for reducing the number of frames processed by the network stack.
2857
1727
  # @rbs return: ::Integer
2858
1728
  # @return [Integer]
2859
- # @see AttributeSets::Napi::GroFlushTimeout
2860
1729
  def gro_flush_timeout: () -> ::Integer
2861
1730
 
2862
1731
  # The timeout, in nanoseconds, of how long to suspend irq processing, if event polling finds events
2863
1732
  # @rbs return: ::Integer
2864
1733
  # @return [Integer]
2865
- # @see AttributeSets::Napi::IrqSuspendTimeout
2866
1734
  def irq_suspend_timeout: () -> ::Integer
2867
1735
 
2868
1736
  # Whether the NAPI is configured to operate in threaded polling mode. If this is set to enabled then the NAPI context operates in threaded polling mode. If this is set to busy-poll, then the threaded polling mode also busy polls.
@@ -2870,12 +1738,11 @@ module Nl
2870
1738
  # Known enum values are defined in {Enums::NapiThreaded}.
2871
1739
  # @rbs return: ::Integer
2872
1740
  # @return [Integer]
2873
- # @see AttributeSets::Napi::Threaded
2874
1741
  def threaded: () -> ::Integer
2875
1742
  end
2876
1743
 
2877
1744
  # Get information about NAPI instances configured on the system.
2878
- class DumpNapiGetRequest < ::Nl::Genl::Message
1745
+ class DumpNapiGetRequest < ::Nl::Message
2879
1746
  TYPE: ::Integer
2880
1747
 
2881
1748
  FIXED_HEADER: untyped
@@ -2884,15 +1751,27 @@ module Nl
2884
1751
 
2885
1752
  ATTRIBUTES: untyped
2886
1753
 
1754
+ include ATTRIBUTE_SET::Definitions
1755
+
1756
+ def initialize: (?untyped attributes) -> untyped
1757
+
1758
+ # @private
1759
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1760
+
1761
+ # Decodes a message payload from the decoder into a new instance.
1762
+ # @rbs (::Nl::Decoder decoder) -> instance
1763
+ def self.decode: (::Nl::Decoder decoder) -> instance
1764
+
1765
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1766
+
2887
1767
  # ifindex of the netdevice to which NAPI instance belongs.
2888
1768
  # @rbs return: ::Integer
2889
1769
  # @return [Integer]
2890
- # @see AttributeSets::Napi::Ifindex
2891
1770
  def ifindex: () -> ::Integer
2892
1771
  end
2893
1772
 
2894
1773
  # Get information about NAPI instances configured on the system.
2895
- class DumpNapiGetReply < ::Nl::Genl::Message
1774
+ class DumpNapiGetReply < ::Nl::Message
2896
1775
  TYPE: ::Integer
2897
1776
 
2898
1777
  FIXED_HEADER: untyped
@@ -2901,46 +1780,52 @@ module Nl
2901
1780
 
2902
1781
  ATTRIBUTES: untyped
2903
1782
 
1783
+ include ATTRIBUTE_SET::Definitions
1784
+
1785
+ def initialize: (?untyped attributes) -> untyped
1786
+
1787
+ # @private
1788
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1789
+
1790
+ # Decodes a message payload from the decoder into a new instance.
1791
+ # @rbs (::Nl::Decoder decoder) -> instance
1792
+ def self.decode: (::Nl::Decoder decoder) -> instance
1793
+
1794
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1795
+
2904
1796
  # ifindex of the netdevice to which NAPI instance belongs.
2905
1797
  # @rbs return: ::Integer
2906
1798
  # @return [Integer]
2907
- # @see AttributeSets::Napi::Ifindex
2908
1799
  def ifindex: () -> ::Integer
2909
1800
 
2910
1801
  # ID of the NAPI instance.
2911
1802
  # @rbs return: ::Integer
2912
1803
  # @return [Integer]
2913
- # @see AttributeSets::Napi::Id
2914
1804
  def id: () -> ::Integer
2915
1805
 
2916
1806
  # The associated interrupt vector number for the napi
2917
1807
  # @rbs return: ::Integer
2918
1808
  # @return [Integer]
2919
- # @see AttributeSets::Napi::Irq
2920
1809
  def irq: () -> ::Integer
2921
1810
 
2922
1811
  # PID of the napi thread, if NAPI is configured to operate in threaded mode. If NAPI is not in threaded mode (i.e. uses normal softirq context), the attribute will be absent.
2923
1812
  # @rbs return: ::Integer
2924
1813
  # @return [Integer]
2925
- # @see AttributeSets::Napi::Pid
2926
1814
  def pid: () -> ::Integer
2927
1815
 
2928
1816
  # The number of consecutive empty polls before IRQ deferral ends and hardware IRQs are re-enabled.
2929
1817
  # @rbs return: ::Integer
2930
1818
  # @return [Integer]
2931
- # @see AttributeSets::Napi::DeferHardIrqs
2932
1819
  def defer_hard_irqs: () -> ::Integer
2933
1820
 
2934
1821
  # The timeout, in nanoseconds, of when to trigger the NAPI watchdog timer which schedules NAPI processing. Additionally, a non-zero value will also prevent GRO from flushing recent super-frames at the end of a NAPI cycle. This may add receive latency in exchange for reducing the number of frames processed by the network stack.
2935
1822
  # @rbs return: ::Integer
2936
1823
  # @return [Integer]
2937
- # @see AttributeSets::Napi::GroFlushTimeout
2938
1824
  def gro_flush_timeout: () -> ::Integer
2939
1825
 
2940
1826
  # The timeout, in nanoseconds, of how long to suspend irq processing, if event polling finds events
2941
1827
  # @rbs return: ::Integer
2942
1828
  # @return [Integer]
2943
- # @see AttributeSets::Napi::IrqSuspendTimeout
2944
1829
  def irq_suspend_timeout: () -> ::Integer
2945
1830
 
2946
1831
  # Whether the NAPI is configured to operate in threaded polling mode. If this is set to enabled then the NAPI context operates in threaded polling mode. If this is set to busy-poll, then the threaded polling mode also busy polls.
@@ -2948,14 +1833,13 @@ module Nl
2948
1833
  # Known enum values are defined in {Enums::NapiThreaded}.
2949
1834
  # @rbs return: ::Integer
2950
1835
  # @return [Integer]
2951
- # @see AttributeSets::Napi::Threaded
2952
1836
  def threaded: () -> ::Integer
2953
1837
  end
2954
1838
 
2955
1839
  # Get / dump fine grained statistics. Which statistics are reported
2956
1840
  # depends on the device and the driver, and whether the driver stores
2957
1841
  # software counters per-queue.
2958
- class DumpQstatsGetRequest < ::Nl::Genl::Message
1842
+ class DumpQstatsGetRequest < ::Nl::Message
2959
1843
  TYPE: ::Integer
2960
1844
 
2961
1845
  FIXED_HEADER: untyped
@@ -2964,10 +1848,22 @@ module Nl
2964
1848
 
2965
1849
  ATTRIBUTES: untyped
2966
1850
 
1851
+ include ATTRIBUTE_SET::Definitions
1852
+
1853
+ def initialize: (?untyped attributes) -> untyped
1854
+
1855
+ # @private
1856
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1857
+
1858
+ # Decodes a message payload from the decoder into a new instance.
1859
+ # @rbs (::Nl::Decoder decoder) -> instance
1860
+ def self.decode: (::Nl::Decoder decoder) -> instance
1861
+
1862
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1863
+
2967
1864
  # ifindex of the netdevice to which stats belong.
2968
1865
  # @rbs return: ::Integer
2969
1866
  # @return [Integer]
2970
- # @see AttributeSets::Qstats::Ifindex
2971
1867
  def ifindex: () -> ::Integer
2972
1868
 
2973
1869
  # What object type should be used to iterate over the stats.
@@ -2976,14 +1872,13 @@ module Nl
2976
1872
  # Known flags are defined in {Flags::QstatsScope}.
2977
1873
  # @rbs return: ::Integer
2978
1874
  # @return [Integer]
2979
- # @see AttributeSets::Qstats::Scope
2980
1875
  def scope: () -> ::Integer
2981
1876
  end
2982
1877
 
2983
1878
  # Get / dump fine grained statistics. Which statistics are reported
2984
1879
  # depends on the device and the driver, and whether the driver stores
2985
1880
  # software counters per-queue.
2986
- class DumpQstatsGetReply < ::Nl::Genl::Message
1881
+ class DumpQstatsGetReply < ::Nl::Message
2987
1882
  TYPE: ::Integer
2988
1883
 
2989
1884
  FIXED_HEADER: untyped
@@ -2992,10 +1887,22 @@ module Nl
2992
1887
 
2993
1888
  ATTRIBUTES: untyped
2994
1889
 
1890
+ include ATTRIBUTE_SET::Definitions
1891
+
1892
+ def initialize: (?untyped attributes) -> untyped
1893
+
1894
+ # @private
1895
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1896
+
1897
+ # Decodes a message payload from the decoder into a new instance.
1898
+ # @rbs (::Nl::Decoder decoder) -> instance
1899
+ def self.decode: (::Nl::Decoder decoder) -> instance
1900
+
1901
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1902
+
2995
1903
  # ifindex of the netdevice to which stats belong.
2996
1904
  # @rbs return: ::Integer
2997
1905
  # @return [Integer]
2998
- # @see AttributeSets::Qstats::Ifindex
2999
1906
  def ifindex: () -> ::Integer
3000
1907
 
3001
1908
  # Queue type as rx, tx, for queue-id.
@@ -3003,13 +1910,11 @@ module Nl
3003
1910
  # Known enum values are defined in {Enums::QueueType}.
3004
1911
  # @rbs return: ::Integer
3005
1912
  # @return [Integer]
3006
- # @see AttributeSets::Qstats::QueueType
3007
1913
  def queue_type: () -> ::Integer
3008
1914
 
3009
1915
  # Queue ID, if stats are scoped to a single queue instance.
3010
1916
  # @rbs return: ::Integer
3011
1917
  # @return [Integer]
3012
- # @see AttributeSets::Qstats::QueueId
3013
1918
  def queue_id: () -> ::Integer
3014
1919
 
3015
1920
  # Number of wire packets successfully received and passed to the stack.
@@ -3017,13 +1922,11 @@ module Nl
3017
1922
  # of the stack, so packets consumed by XDP are still counted here.
3018
1923
  # @rbs return: ::Integer
3019
1924
  # @return [Integer]
3020
- # @see AttributeSets::Qstats::RxPackets
3021
1925
  def rx_packets: () -> ::Integer
3022
1926
 
3023
1927
  # Successfully received bytes, see `rx-packets`.
3024
1928
  # @rbs return: ::Integer
3025
1929
  # @return [Integer]
3026
- # @see AttributeSets::Qstats::RxBytes
3027
1930
  def rx_bytes: () -> ::Integer
3028
1931
 
3029
1932
  # Number of wire packets successfully sent. Packet is considered to be
@@ -3031,13 +1934,11 @@ module Nl
3031
1934
  # the device has issued a DMA completion for the packet).
3032
1935
  # @rbs return: ::Integer
3033
1936
  # @return [Integer]
3034
- # @see AttributeSets::Qstats::TxPackets
3035
1937
  def tx_packets: () -> ::Integer
3036
1938
 
3037
1939
  # Successfully sent bytes, see `tx-packets`.
3038
1940
  # @rbs return: ::Integer
3039
1941
  # @return [Integer]
3040
- # @see AttributeSets::Qstats::TxBytes
3041
1942
  def tx_bytes: () -> ::Integer
3042
1943
 
3043
1944
  # Number of times skb or buffer allocation failed on the Rx datapath.
@@ -3045,7 +1946,6 @@ module Nl
3045
1946
  # on driver implementation and whether system recovers quickly.
3046
1947
  # @rbs return: ::Integer
3047
1948
  # @return [Integer]
3048
- # @see AttributeSets::Qstats::RxAllocFail
3049
1949
  def rx_alloc_fail: () -> ::Integer
3050
1950
 
3051
1951
  # Number of all packets which entered the device, but never left it,
@@ -3054,39 +1954,33 @@ module Nl
3054
1954
  # filters.
3055
1955
  # @rbs return: ::Integer
3056
1956
  # @return [Integer]
3057
- # @see AttributeSets::Qstats::RxHwDrops
3058
1957
  def rx_hw_drops: () -> ::Integer
3059
1958
 
3060
1959
  # Number of packets dropped due to transient lack of resources, such as
3061
1960
  # buffer space, host descriptors etc.
3062
1961
  # @rbs return: ::Integer
3063
1962
  # @return [Integer]
3064
- # @see AttributeSets::Qstats::RxHwDropOverruns
3065
1963
  def rx_hw_drop_overruns: () -> ::Integer
3066
1964
 
3067
1965
  # Number of packets that were marked as CHECKSUM_COMPLETE.
3068
1966
  # @rbs return: ::Integer
3069
1967
  # @return [Integer]
3070
- # @see AttributeSets::Qstats::RxCsumComplete
3071
1968
  def rx_csum_complete: () -> ::Integer
3072
1969
 
3073
1970
  # Number of packets that were marked as CHECKSUM_UNNECESSARY.
3074
1971
  # @rbs return: ::Integer
3075
1972
  # @return [Integer]
3076
- # @see AttributeSets::Qstats::RxCsumUnnecessary
3077
1973
  def rx_csum_unnecessary: () -> ::Integer
3078
1974
 
3079
1975
  # Number of packets that were not checksummed by device.
3080
1976
  # @rbs return: ::Integer
3081
1977
  # @return [Integer]
3082
- # @see AttributeSets::Qstats::RxCsumNone
3083
1978
  def rx_csum_none: () -> ::Integer
3084
1979
 
3085
1980
  # Number of packets with bad checksum. The packets are not discarded,
3086
1981
  # but still delivered to the stack.
3087
1982
  # @rbs return: ::Integer
3088
1983
  # @return [Integer]
3089
- # @see AttributeSets::Qstats::RxCsumBad
3090
1984
  def rx_csum_bad: () -> ::Integer
3091
1985
 
3092
1986
  # Number of packets that were coalesced from smaller packets by the
@@ -3094,33 +1988,28 @@ module Nl
3094
1988
  # feature, LRO-coalesced packets are not counted.
3095
1989
  # @rbs return: ::Integer
3096
1990
  # @return [Integer]
3097
- # @see AttributeSets::Qstats::RxHwGroPackets
3098
1991
  def rx_hw_gro_packets: () -> ::Integer
3099
1992
 
3100
1993
  # See `rx-hw-gro-packets`.
3101
1994
  # @rbs return: ::Integer
3102
1995
  # @return [Integer]
3103
- # @see AttributeSets::Qstats::RxHwGroBytes
3104
1996
  def rx_hw_gro_bytes: () -> ::Integer
3105
1997
 
3106
1998
  # Number of packets that were coalesced to bigger packetss with the
3107
1999
  # HW-GRO netdevice feature. LRO-coalesced packets are not counted.
3108
2000
  # @rbs return: ::Integer
3109
2001
  # @return [Integer]
3110
- # @see AttributeSets::Qstats::RxHwGroWirePackets
3111
2002
  def rx_hw_gro_wire_packets: () -> ::Integer
3112
2003
 
3113
2004
  # See `rx-hw-gro-wire-packets`.
3114
2005
  # @rbs return: ::Integer
3115
2006
  # @return [Integer]
3116
- # @see AttributeSets::Qstats::RxHwGroWireBytes
3117
2007
  def rx_hw_gro_wire_bytes: () -> ::Integer
3118
2008
 
3119
2009
  # Number of the packets dropped by the device due to the received
3120
2010
  # packets bitrate exceeding the device rate limit.
3121
2011
  # @rbs return: ::Integer
3122
2012
  # @return [Integer]
3123
- # @see AttributeSets::Qstats::RxHwDropRatelimits
3124
2013
  def rx_hw_drop_ratelimits: () -> ::Integer
3125
2014
 
3126
2015
  # Number of packets that arrived at the device but never left it,
@@ -3129,20 +2018,17 @@ module Nl
3129
2018
  # filtering criteria.
3130
2019
  # @rbs return: ::Integer
3131
2020
  # @return [Integer]
3132
- # @see AttributeSets::Qstats::TxHwDrops
3133
2021
  def tx_hw_drops: () -> ::Integer
3134
2022
 
3135
2023
  # Number of packets dropped because they were invalid or malformed.
3136
2024
  # @rbs return: ::Integer
3137
2025
  # @return [Integer]
3138
- # @see AttributeSets::Qstats::TxHwDropErrors
3139
2026
  def tx_hw_drop_errors: () -> ::Integer
3140
2027
 
3141
2028
  # Number of packets that did not require the device to calculate the
3142
2029
  # checksum.
3143
2030
  # @rbs return: ::Integer
3144
2031
  # @return [Integer]
3145
- # @see AttributeSets::Qstats::TxCsumNone
3146
2032
  def tx_csum_none: () -> ::Integer
3147
2033
 
3148
2034
  # Number of packets that required the device to calculate the checksum.
@@ -3150,40 +2036,34 @@ module Nl
3150
2036
  # calculated the L4 checksum.
3151
2037
  # @rbs return: ::Integer
3152
2038
  # @return [Integer]
3153
- # @see AttributeSets::Qstats::TxNeedsCsum
3154
2039
  def tx_needs_csum: () -> ::Integer
3155
2040
 
3156
2041
  # Number of packets that necessitated segmentation into smaller packets
3157
2042
  # by the device.
3158
2043
  # @rbs return: ::Integer
3159
2044
  # @return [Integer]
3160
- # @see AttributeSets::Qstats::TxHwGsoPackets
3161
2045
  def tx_hw_gso_packets: () -> ::Integer
3162
2046
 
3163
2047
  # See `tx-hw-gso-packets`.
3164
2048
  # @rbs return: ::Integer
3165
2049
  # @return [Integer]
3166
- # @see AttributeSets::Qstats::TxHwGsoBytes
3167
2050
  def tx_hw_gso_bytes: () -> ::Integer
3168
2051
 
3169
2052
  # Number of wire-sized packets generated by processing
3170
2053
  # `tx-hw-gso-packets`
3171
2054
  # @rbs return: ::Integer
3172
2055
  # @return [Integer]
3173
- # @see AttributeSets::Qstats::TxHwGsoWirePackets
3174
2056
  def tx_hw_gso_wire_packets: () -> ::Integer
3175
2057
 
3176
2058
  # See `tx-hw-gso-wire-packets`.
3177
2059
  # @rbs return: ::Integer
3178
2060
  # @return [Integer]
3179
- # @see AttributeSets::Qstats::TxHwGsoWireBytes
3180
2061
  def tx_hw_gso_wire_bytes: () -> ::Integer
3181
2062
 
3182
2063
  # Number of the packets dropped by the device due to the transmit
3183
2064
  # packets bitrate exceeding the device rate limit.
3184
2065
  # @rbs return: ::Integer
3185
2066
  # @return [Integer]
3186
- # @see AttributeSets::Qstats::TxHwDropRatelimits
3187
2067
  def tx_hw_drop_ratelimits: () -> ::Integer
3188
2068
 
3189
2069
  # Number of times driver paused accepting new tx packets
@@ -3192,21 +2072,19 @@ module Nl
3192
2072
  # the networking stack will avoid queuing a lot of data at once.
3193
2073
  # @rbs return: ::Integer
3194
2074
  # @return [Integer]
3195
- # @see AttributeSets::Qstats::TxStop
3196
2075
  def tx_stop: () -> ::Integer
3197
2076
 
3198
2077
  # Number of times driver re-started accepting send
3199
2078
  # requests to this queue from the stack.
3200
2079
  # @rbs return: ::Integer
3201
2080
  # @return [Integer]
3202
- # @see AttributeSets::Qstats::TxWake
3203
2081
  def tx_wake: () -> ::Integer
3204
2082
  end
3205
2083
 
3206
2084
  # Bind dmabuf to netdev
3207
2085
  #
3208
2086
  # Requires CAP_NET_ADMIN in the user namespace owning the network namespace.
3209
- class DoBindRxRequest < ::Nl::Genl::Message
2087
+ class DoBindRxRequest < ::Nl::Message
3210
2088
  TYPE: ::Integer
3211
2089
 
3212
2090
  FIXED_HEADER: untyped
@@ -3215,29 +2093,46 @@ module Nl
3215
2093
 
3216
2094
  ATTRIBUTES: untyped
3217
2095
 
2096
+ include ATTRIBUTE_SET::Definitions
2097
+
2098
+ def initialize: (?untyped attributes) -> untyped
2099
+
2100
+ # @private
2101
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2102
+
2103
+ # Decodes a message payload from the decoder into a new instance.
2104
+ # @rbs (::Nl::Decoder decoder) -> instance
2105
+ def self.decode: (::Nl::Decoder decoder) -> instance
2106
+
2107
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2108
+
3218
2109
  # netdev ifindex to bind the dmabuf to.
3219
2110
  # @rbs return: ::Integer
3220
2111
  # @return [Integer]
3221
- # @see AttributeSets::Dmabuf::Ifindex
3222
2112
  def ifindex: () -> ::Integer
3223
2113
 
3224
2114
  # receive queues to bind the dmabuf to.
3225
2115
  # @rbs return: ::Array[AttributeSets::QueueId]
3226
2116
  # @return [Array<AttributeSets::QueueId>]
3227
- # @see AttributeSets::Dmabuf::Queues
3228
2117
  def queues: () -> ::Array[AttributeSets::QueueId]
3229
2118
 
3230
2119
  # dmabuf file descriptor to bind.
3231
2120
  # @rbs return: ::Integer
3232
2121
  # @return [Integer]
3233
- # @see AttributeSets::Dmabuf::Fd
3234
2122
  def fd: () -> ::Integer
2123
+
2124
+ # Size in bytes of each device page the NIC writes into from the bound
2125
+ # dmabuf. Must be a power of two and >= PAGE_SIZE; defaults to
2126
+ # PAGE_SIZE.
2127
+ # @rbs return: ::Integer
2128
+ # @return [Integer]
2129
+ def rx_page_size: () -> ::Integer
3235
2130
  end
3236
2131
 
3237
2132
  # Bind dmabuf to netdev
3238
2133
  #
3239
2134
  # Requires CAP_NET_ADMIN in the user namespace owning the network namespace.
3240
- class DoBindRxReply < ::Nl::Genl::Message
2135
+ class DoBindRxReply < ::Nl::Message
3241
2136
  TYPE: ::Integer
3242
2137
 
3243
2138
  FIXED_HEADER: untyped
@@ -3246,17 +2141,29 @@ module Nl
3246
2141
 
3247
2142
  ATTRIBUTES: untyped
3248
2143
 
2144
+ include ATTRIBUTE_SET::Definitions
2145
+
2146
+ def initialize: (?untyped attributes) -> untyped
2147
+
2148
+ # @private
2149
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2150
+
2151
+ # Decodes a message payload from the decoder into a new instance.
2152
+ # @rbs (::Nl::Decoder decoder) -> instance
2153
+ def self.decode: (::Nl::Decoder decoder) -> instance
2154
+
2155
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2156
+
3249
2157
  # id of the dmabuf binding
3250
2158
  # @rbs return: ::Integer
3251
2159
  # @return [Integer]
3252
- # @see AttributeSets::Dmabuf::Id
3253
2160
  def id: () -> ::Integer
3254
2161
  end
3255
2162
 
3256
2163
  # Set configurable NAPI instance settings.
3257
2164
  #
3258
2165
  # Requires CAP_NET_ADMIN in the initial user namespace.
3259
- class DoNapiSetRequest < ::Nl::Genl::Message
2166
+ class DoNapiSetRequest < ::Nl::Message
3260
2167
  TYPE: ::Integer
3261
2168
 
3262
2169
  FIXED_HEADER: untyped
@@ -3265,28 +2172,37 @@ module Nl
3265
2172
 
3266
2173
  ATTRIBUTES: untyped
3267
2174
 
2175
+ include ATTRIBUTE_SET::Definitions
2176
+
2177
+ def initialize: (?untyped attributes) -> untyped
2178
+
2179
+ # @private
2180
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2181
+
2182
+ # Decodes a message payload from the decoder into a new instance.
2183
+ # @rbs (::Nl::Decoder decoder) -> instance
2184
+ def self.decode: (::Nl::Decoder decoder) -> instance
2185
+
2186
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2187
+
3268
2188
  # ID of the NAPI instance.
3269
2189
  # @rbs return: ::Integer
3270
2190
  # @return [Integer]
3271
- # @see AttributeSets::Napi::Id
3272
2191
  def id: () -> ::Integer
3273
2192
 
3274
2193
  # The number of consecutive empty polls before IRQ deferral ends and hardware IRQs are re-enabled.
3275
2194
  # @rbs return: ::Integer
3276
2195
  # @return [Integer]
3277
- # @see AttributeSets::Napi::DeferHardIrqs
3278
2196
  def defer_hard_irqs: () -> ::Integer
3279
2197
 
3280
2198
  # The timeout, in nanoseconds, of when to trigger the NAPI watchdog timer which schedules NAPI processing. Additionally, a non-zero value will also prevent GRO from flushing recent super-frames at the end of a NAPI cycle. This may add receive latency in exchange for reducing the number of frames processed by the network stack.
3281
2199
  # @rbs return: ::Integer
3282
2200
  # @return [Integer]
3283
- # @see AttributeSets::Napi::GroFlushTimeout
3284
2201
  def gro_flush_timeout: () -> ::Integer
3285
2202
 
3286
2203
  # The timeout, in nanoseconds, of how long to suspend irq processing, if event polling finds events
3287
2204
  # @rbs return: ::Integer
3288
2205
  # @return [Integer]
3289
- # @see AttributeSets::Napi::IrqSuspendTimeout
3290
2206
  def irq_suspend_timeout: () -> ::Integer
3291
2207
 
3292
2208
  # Whether the NAPI is configured to operate in threaded polling mode. If this is set to enabled then the NAPI context operates in threaded polling mode. If this is set to busy-poll, then the threaded polling mode also busy polls.
@@ -3294,12 +2210,11 @@ module Nl
3294
2210
  # Known enum values are defined in {Enums::NapiThreaded}.
3295
2211
  # @rbs return: ::Integer
3296
2212
  # @return [Integer]
3297
- # @see AttributeSets::Napi::Threaded
3298
2213
  def threaded: () -> ::Integer
3299
2214
  end
3300
2215
 
3301
2216
  # Bind dmabuf to netdev for TX
3302
- class DoBindTxRequest < ::Nl::Genl::Message
2217
+ class DoBindTxRequest < ::Nl::Message
3303
2218
  TYPE: ::Integer
3304
2219
 
3305
2220
  FIXED_HEADER: untyped
@@ -3308,21 +2223,32 @@ module Nl
3308
2223
 
3309
2224
  ATTRIBUTES: untyped
3310
2225
 
2226
+ include ATTRIBUTE_SET::Definitions
2227
+
2228
+ def initialize: (?untyped attributes) -> untyped
2229
+
2230
+ # @private
2231
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2232
+
2233
+ # Decodes a message payload from the decoder into a new instance.
2234
+ # @rbs (::Nl::Decoder decoder) -> instance
2235
+ def self.decode: (::Nl::Decoder decoder) -> instance
2236
+
2237
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2238
+
3311
2239
  # netdev ifindex to bind the dmabuf to.
3312
2240
  # @rbs return: ::Integer
3313
2241
  # @return [Integer]
3314
- # @see AttributeSets::Dmabuf::Ifindex
3315
2242
  def ifindex: () -> ::Integer
3316
2243
 
3317
2244
  # dmabuf file descriptor to bind.
3318
2245
  # @rbs return: ::Integer
3319
2246
  # @return [Integer]
3320
- # @see AttributeSets::Dmabuf::Fd
3321
2247
  def fd: () -> ::Integer
3322
2248
  end
3323
2249
 
3324
2250
  # Bind dmabuf to netdev for TX
3325
- class DoBindTxReply < ::Nl::Genl::Message
2251
+ class DoBindTxReply < ::Nl::Message
3326
2252
  TYPE: ::Integer
3327
2253
 
3328
2254
  FIXED_HEADER: untyped
@@ -3331,10 +2257,22 @@ module Nl
3331
2257
 
3332
2258
  ATTRIBUTES: untyped
3333
2259
 
2260
+ include ATTRIBUTE_SET::Definitions
2261
+
2262
+ def initialize: (?untyped attributes) -> untyped
2263
+
2264
+ # @private
2265
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2266
+
2267
+ # Decodes a message payload from the decoder into a new instance.
2268
+ # @rbs (::Nl::Decoder decoder) -> instance
2269
+ def self.decode: (::Nl::Decoder decoder) -> instance
2270
+
2271
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2272
+
3334
2273
  # id of the dmabuf binding
3335
2274
  # @rbs return: ::Integer
3336
2275
  # @return [Integer]
3337
- # @see AttributeSets::Dmabuf::Id
3338
2276
  def id: () -> ::Integer
3339
2277
  end
3340
2278
 
@@ -3343,7 +2281,7 @@ module Nl
3343
2281
  #
3344
2282
  #
3345
2283
  # Requires CAP_NET_ADMIN in the initial user namespace.
3346
- class DoQueueCreateRequest < ::Nl::Genl::Message
2284
+ class DoQueueCreateRequest < ::Nl::Message
3347
2285
  TYPE: ::Integer
3348
2286
 
3349
2287
  FIXED_HEADER: untyped
@@ -3352,10 +2290,22 @@ module Nl
3352
2290
 
3353
2291
  ATTRIBUTES: untyped
3354
2292
 
2293
+ include ATTRIBUTE_SET::Definitions
2294
+
2295
+ def initialize: (?untyped attributes) -> untyped
2296
+
2297
+ # @private
2298
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2299
+
2300
+ # Decodes a message payload from the decoder into a new instance.
2301
+ # @rbs (::Nl::Decoder decoder) -> instance
2302
+ def self.decode: (::Nl::Decoder decoder) -> instance
2303
+
2304
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2305
+
3355
2306
  # ifindex of the netdevice to which the queue belongs.
3356
2307
  # @rbs return: ::Integer
3357
2308
  # @return [Integer]
3358
- # @see AttributeSets::Queue::Ifindex
3359
2309
  def ifindex: () -> ::Integer
3360
2310
 
3361
2311
  # Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.
@@ -3363,7 +2313,6 @@ module Nl
3363
2313
  # Known enum values are defined in {Enums::QueueType}.
3364
2314
  # @rbs return: ::Integer
3365
2315
  # @return [Integer]
3366
- # @see AttributeSets::Queue::Type
3367
2316
  def type: () -> ::Integer
3368
2317
 
3369
2318
  # A queue from a virtual device can have a lease which refers to
@@ -3372,7 +2321,6 @@ module Nl
3372
2321
  # to allow applications to bind against virtual devices in containers.
3373
2322
  # @rbs return: AttributeSets::Lease
3374
2323
  # @return [AttributeSets::Lease]
3375
- # @see AttributeSets::Queue::Lease
3376
2324
  def lease: () -> AttributeSets::Lease
3377
2325
  end
3378
2326
 
@@ -3381,7 +2329,7 @@ module Nl
3381
2329
  #
3382
2330
  #
3383
2331
  # Requires CAP_NET_ADMIN in the initial user namespace.
3384
- class DoQueueCreateReply < ::Nl::Genl::Message
2332
+ class DoQueueCreateReply < ::Nl::Message
3385
2333
  TYPE: ::Integer
3386
2334
 
3387
2335
  FIXED_HEADER: untyped
@@ -3390,10 +2338,22 @@ module Nl
3390
2338
 
3391
2339
  ATTRIBUTES: untyped
3392
2340
 
2341
+ include ATTRIBUTE_SET::Definitions
2342
+
2343
+ def initialize: (?untyped attributes) -> untyped
2344
+
2345
+ # @private
2346
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2347
+
2348
+ # Decodes a message payload from the decoder into a new instance.
2349
+ # @rbs (::Nl::Decoder decoder) -> instance
2350
+ def self.decode: (::Nl::Decoder decoder) -> instance
2351
+
2352
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2353
+
3393
2354
  # Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
3394
2355
  # @rbs return: ::Integer
3395
2356
  # @return [Integer]
3396
- # @see AttributeSets::Queue::Id
3397
2357
  def id: () -> ::Integer
3398
2358
  end
3399
2359
  end
@@ -3402,7 +2362,7 @@ module Nl
3402
2362
  # Notification about device appearing.
3403
2363
  #
3404
2364
  # Multicast group: `mgmt`.
3405
- class DevAddNtf < ::Nl::Genl::Message
2365
+ class DevAddNtf < ::Nl::Message
3406
2366
  TYPE: ::Integer
3407
2367
 
3408
2368
  FIXED_HEADER: untyped
@@ -3411,10 +2371,22 @@ module Nl
3411
2371
 
3412
2372
  ATTRIBUTES: untyped
3413
2373
 
2374
+ include ATTRIBUTE_SET::Definitions
2375
+
2376
+ def initialize: (?untyped attributes) -> untyped
2377
+
2378
+ # @private
2379
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2380
+
2381
+ # Decodes a message payload from the decoder into a new instance.
2382
+ # @rbs (::Nl::Decoder decoder) -> instance
2383
+ def self.decode: (::Nl::Decoder decoder) -> instance
2384
+
2385
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2386
+
3414
2387
  # netdev ifindex
3415
2388
  # @rbs return: ::Integer
3416
2389
  # @return [Integer]
3417
- # @see AttributeSets::Dev::Ifindex
3418
2390
  def ifindex: () -> ::Integer
3419
2391
 
3420
2392
  # Bitmask of enabled xdp-features.
@@ -3422,13 +2394,11 @@ module Nl
3422
2394
  # Known flags are defined in {Flags::XdpAct}.
3423
2395
  # @rbs return: ::Integer
3424
2396
  # @return [Integer]
3425
- # @see AttributeSets::Dev::XdpFeatures
3426
2397
  def xdp_features: () -> ::Integer
3427
2398
 
3428
2399
  # max fragment count supported by ZC driver
3429
2400
  # @rbs return: ::Integer
3430
2401
  # @return [Integer]
3431
- # @see AttributeSets::Dev::XdpZcMaxSegs
3432
2402
  def xdp_zc_max_segs: () -> ::Integer
3433
2403
 
3434
2404
  # Bitmask of supported XDP receive metadata features. See {https://docs.kernel.org/networking/xdp-rx-metadata.html Documentation/networking/xdp-rx-metadata.rst} for more details.
@@ -3436,7 +2406,6 @@ module Nl
3436
2406
  # Known flags are defined in {Flags::XdpRxMetadata}.
3437
2407
  # @rbs return: ::Integer
3438
2408
  # @return [Integer]
3439
- # @see AttributeSets::Dev::XdpRxMetadataFeatures
3440
2409
  def xdp_rx_metadata_features: () -> ::Integer
3441
2410
 
3442
2411
  # Bitmask of enabled AF_XDP features.
@@ -3444,14 +2413,13 @@ module Nl
3444
2413
  # Known flags are defined in {Flags::XskFlags}.
3445
2414
  # @rbs return: ::Integer
3446
2415
  # @return [Integer]
3447
- # @see AttributeSets::Dev::XskFeatures
3448
2416
  def xsk_features: () -> ::Integer
3449
2417
  end
3450
2418
 
3451
2419
  # Notification about device disappearing.
3452
2420
  #
3453
2421
  # Multicast group: `mgmt`.
3454
- class DevDelNtf < ::Nl::Genl::Message
2422
+ class DevDelNtf < ::Nl::Message
3455
2423
  TYPE: ::Integer
3456
2424
 
3457
2425
  FIXED_HEADER: untyped
@@ -3460,10 +2428,22 @@ module Nl
3460
2428
 
3461
2429
  ATTRIBUTES: untyped
3462
2430
 
2431
+ include ATTRIBUTE_SET::Definitions
2432
+
2433
+ def initialize: (?untyped attributes) -> untyped
2434
+
2435
+ # @private
2436
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2437
+
2438
+ # Decodes a message payload from the decoder into a new instance.
2439
+ # @rbs (::Nl::Decoder decoder) -> instance
2440
+ def self.decode: (::Nl::Decoder decoder) -> instance
2441
+
2442
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2443
+
3463
2444
  # netdev ifindex
3464
2445
  # @rbs return: ::Integer
3465
2446
  # @return [Integer]
3466
- # @see AttributeSets::Dev::Ifindex
3467
2447
  def ifindex: () -> ::Integer
3468
2448
 
3469
2449
  # Bitmask of enabled xdp-features.
@@ -3471,13 +2451,11 @@ module Nl
3471
2451
  # Known flags are defined in {Flags::XdpAct}.
3472
2452
  # @rbs return: ::Integer
3473
2453
  # @return [Integer]
3474
- # @see AttributeSets::Dev::XdpFeatures
3475
2454
  def xdp_features: () -> ::Integer
3476
2455
 
3477
2456
  # max fragment count supported by ZC driver
3478
2457
  # @rbs return: ::Integer
3479
2458
  # @return [Integer]
3480
- # @see AttributeSets::Dev::XdpZcMaxSegs
3481
2459
  def xdp_zc_max_segs: () -> ::Integer
3482
2460
 
3483
2461
  # Bitmask of supported XDP receive metadata features. See {https://docs.kernel.org/networking/xdp-rx-metadata.html Documentation/networking/xdp-rx-metadata.rst} for more details.
@@ -3485,7 +2463,6 @@ module Nl
3485
2463
  # Known flags are defined in {Flags::XdpRxMetadata}.
3486
2464
  # @rbs return: ::Integer
3487
2465
  # @return [Integer]
3488
- # @see AttributeSets::Dev::XdpRxMetadataFeatures
3489
2466
  def xdp_rx_metadata_features: () -> ::Integer
3490
2467
 
3491
2468
  # Bitmask of enabled AF_XDP features.
@@ -3493,14 +2470,13 @@ module Nl
3493
2470
  # Known flags are defined in {Flags::XskFlags}.
3494
2471
  # @rbs return: ::Integer
3495
2472
  # @return [Integer]
3496
- # @see AttributeSets::Dev::XskFeatures
3497
2473
  def xsk_features: () -> ::Integer
3498
2474
  end
3499
2475
 
3500
2476
  # Notification about device configuration being changed.
3501
2477
  #
3502
2478
  # Multicast group: `mgmt`.
3503
- class DevChangeNtf < ::Nl::Genl::Message
2479
+ class DevChangeNtf < ::Nl::Message
3504
2480
  TYPE: ::Integer
3505
2481
 
3506
2482
  FIXED_HEADER: untyped
@@ -3509,10 +2485,22 @@ module Nl
3509
2485
 
3510
2486
  ATTRIBUTES: untyped
3511
2487
 
2488
+ include ATTRIBUTE_SET::Definitions
2489
+
2490
+ def initialize: (?untyped attributes) -> untyped
2491
+
2492
+ # @private
2493
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2494
+
2495
+ # Decodes a message payload from the decoder into a new instance.
2496
+ # @rbs (::Nl::Decoder decoder) -> instance
2497
+ def self.decode: (::Nl::Decoder decoder) -> instance
2498
+
2499
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2500
+
3512
2501
  # netdev ifindex
3513
2502
  # @rbs return: ::Integer
3514
2503
  # @return [Integer]
3515
- # @see AttributeSets::Dev::Ifindex
3516
2504
  def ifindex: () -> ::Integer
3517
2505
 
3518
2506
  # Bitmask of enabled xdp-features.
@@ -3520,13 +2508,11 @@ module Nl
3520
2508
  # Known flags are defined in {Flags::XdpAct}.
3521
2509
  # @rbs return: ::Integer
3522
2510
  # @return [Integer]
3523
- # @see AttributeSets::Dev::XdpFeatures
3524
2511
  def xdp_features: () -> ::Integer
3525
2512
 
3526
2513
  # max fragment count supported by ZC driver
3527
2514
  # @rbs return: ::Integer
3528
2515
  # @return [Integer]
3529
- # @see AttributeSets::Dev::XdpZcMaxSegs
3530
2516
  def xdp_zc_max_segs: () -> ::Integer
3531
2517
 
3532
2518
  # Bitmask of supported XDP receive metadata features. See {https://docs.kernel.org/networking/xdp-rx-metadata.html Documentation/networking/xdp-rx-metadata.rst} for more details.
@@ -3534,7 +2520,6 @@ module Nl
3534
2520
  # Known flags are defined in {Flags::XdpRxMetadata}.
3535
2521
  # @rbs return: ::Integer
3536
2522
  # @return [Integer]
3537
- # @see AttributeSets::Dev::XdpRxMetadataFeatures
3538
2523
  def xdp_rx_metadata_features: () -> ::Integer
3539
2524
 
3540
2525
  # Bitmask of enabled AF_XDP features.
@@ -3542,14 +2527,13 @@ module Nl
3542
2527
  # Known flags are defined in {Flags::XskFlags}.
3543
2528
  # @rbs return: ::Integer
3544
2529
  # @return [Integer]
3545
- # @see AttributeSets::Dev::XskFeatures
3546
2530
  def xsk_features: () -> ::Integer
3547
2531
  end
3548
2532
 
3549
2533
  # Notification about page pool appearing.
3550
2534
  #
3551
2535
  # Multicast group: `page-pool`.
3552
- class PagePoolAddNtf < ::Nl::Genl::Message
2536
+ class PagePoolAddNtf < ::Nl::Message
3553
2537
  TYPE: ::Integer
3554
2538
 
3555
2539
  FIXED_HEADER: untyped
@@ -3558,10 +2542,22 @@ module Nl
3558
2542
 
3559
2543
  ATTRIBUTES: untyped
3560
2544
 
2545
+ include ATTRIBUTE_SET::Definitions
2546
+
2547
+ def initialize: (?untyped attributes) -> untyped
2548
+
2549
+ # @private
2550
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2551
+
2552
+ # Decodes a message payload from the decoder into a new instance.
2553
+ # @rbs (::Nl::Decoder decoder) -> instance
2554
+ def self.decode: (::Nl::Decoder decoder) -> instance
2555
+
2556
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2557
+
3561
2558
  # Unique ID of a Page Pool instance.
3562
2559
  # @rbs return: ::Integer
3563
2560
  # @return [Integer]
3564
- # @see AttributeSets::PagePool::Id
3565
2561
  def id: () -> ::Integer
3566
2562
 
3567
2563
  # ifindex of the netdev to which the pool belongs.
@@ -3570,13 +2566,11 @@ module Nl
3570
2566
  # because they wait for all memory to be returned).
3571
2567
  # @rbs return: ::Integer
3572
2568
  # @return [Integer]
3573
- # @see AttributeSets::PagePool::Ifindex
3574
2569
  def ifindex: () -> ::Integer
3575
2570
 
3576
2571
  # Id of NAPI using this Page Pool instance.
3577
2572
  # @rbs return: ::Integer
3578
2573
  # @return [Integer]
3579
- # @see AttributeSets::PagePool::NapiId
3580
2574
  def napi_id: () -> ::Integer
3581
2575
 
3582
2576
  # Number of outstanding references to this page pool (allocated
@@ -3585,13 +2579,11 @@ module Nl
3585
2579
  # ring, the page pool cache, etc.
3586
2580
  # @rbs return: ::Integer
3587
2581
  # @return [Integer]
3588
- # @see AttributeSets::PagePool::Inflight
3589
2582
  def inflight: () -> ::Integer
3590
2583
 
3591
2584
  # Amount of memory held by inflight pages.
3592
2585
  # @rbs return: ::Integer
3593
2586
  # @return [Integer]
3594
- # @see AttributeSets::PagePool::InflightMem
3595
2587
  def inflight_mem: () -> ::Integer
3596
2588
 
3597
2589
  # Seconds in CLOCK_BOOTTIME of when Page Pool was detached by
@@ -3604,26 +2596,23 @@ module Nl
3604
2596
  # can still be used to allocate new memory.
3605
2597
  # @rbs return: ::Integer
3606
2598
  # @return [Integer]
3607
- # @see AttributeSets::PagePool::DetachTime
3608
2599
  def detach_time: () -> ::Integer
3609
2600
 
3610
2601
  # ID of the dmabuf this page-pool is attached to.
3611
2602
  # @rbs return: ::Integer
3612
2603
  # @return [Integer]
3613
- # @see AttributeSets::PagePool::Dmabuf
3614
2604
  def dmabuf: () -> ::Integer
3615
2605
 
3616
2606
  # io-uring memory provider information.
3617
2607
  # @rbs return: AttributeSets::IoUringProviderInfo
3618
2608
  # @return [AttributeSets::IoUringProviderInfo]
3619
- # @see AttributeSets::PagePool::IoUring
3620
2609
  def io_uring: () -> AttributeSets::IoUringProviderInfo
3621
2610
  end
3622
2611
 
3623
2612
  # Notification about page pool disappearing.
3624
2613
  #
3625
2614
  # Multicast group: `page-pool`.
3626
- class PagePoolDelNtf < ::Nl::Genl::Message
2615
+ class PagePoolDelNtf < ::Nl::Message
3627
2616
  TYPE: ::Integer
3628
2617
 
3629
2618
  FIXED_HEADER: untyped
@@ -3632,10 +2621,22 @@ module Nl
3632
2621
 
3633
2622
  ATTRIBUTES: untyped
3634
2623
 
2624
+ include ATTRIBUTE_SET::Definitions
2625
+
2626
+ def initialize: (?untyped attributes) -> untyped
2627
+
2628
+ # @private
2629
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2630
+
2631
+ # Decodes a message payload from the decoder into a new instance.
2632
+ # @rbs (::Nl::Decoder decoder) -> instance
2633
+ def self.decode: (::Nl::Decoder decoder) -> instance
2634
+
2635
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2636
+
3635
2637
  # Unique ID of a Page Pool instance.
3636
2638
  # @rbs return: ::Integer
3637
2639
  # @return [Integer]
3638
- # @see AttributeSets::PagePool::Id
3639
2640
  def id: () -> ::Integer
3640
2641
 
3641
2642
  # ifindex of the netdev to which the pool belongs.
@@ -3644,13 +2645,11 @@ module Nl
3644
2645
  # because they wait for all memory to be returned).
3645
2646
  # @rbs return: ::Integer
3646
2647
  # @return [Integer]
3647
- # @see AttributeSets::PagePool::Ifindex
3648
2648
  def ifindex: () -> ::Integer
3649
2649
 
3650
2650
  # Id of NAPI using this Page Pool instance.
3651
2651
  # @rbs return: ::Integer
3652
2652
  # @return [Integer]
3653
- # @see AttributeSets::PagePool::NapiId
3654
2653
  def napi_id: () -> ::Integer
3655
2654
 
3656
2655
  # Number of outstanding references to this page pool (allocated
@@ -3659,13 +2658,11 @@ module Nl
3659
2658
  # ring, the page pool cache, etc.
3660
2659
  # @rbs return: ::Integer
3661
2660
  # @return [Integer]
3662
- # @see AttributeSets::PagePool::Inflight
3663
2661
  def inflight: () -> ::Integer
3664
2662
 
3665
2663
  # Amount of memory held by inflight pages.
3666
2664
  # @rbs return: ::Integer
3667
2665
  # @return [Integer]
3668
- # @see AttributeSets::PagePool::InflightMem
3669
2666
  def inflight_mem: () -> ::Integer
3670
2667
 
3671
2668
  # Seconds in CLOCK_BOOTTIME of when Page Pool was detached by
@@ -3678,26 +2675,23 @@ module Nl
3678
2675
  # can still be used to allocate new memory.
3679
2676
  # @rbs return: ::Integer
3680
2677
  # @return [Integer]
3681
- # @see AttributeSets::PagePool::DetachTime
3682
2678
  def detach_time: () -> ::Integer
3683
2679
 
3684
2680
  # ID of the dmabuf this page-pool is attached to.
3685
2681
  # @rbs return: ::Integer
3686
2682
  # @return [Integer]
3687
- # @see AttributeSets::PagePool::Dmabuf
3688
2683
  def dmabuf: () -> ::Integer
3689
2684
 
3690
2685
  # io-uring memory provider information.
3691
2686
  # @rbs return: AttributeSets::IoUringProviderInfo
3692
2687
  # @return [AttributeSets::IoUringProviderInfo]
3693
- # @see AttributeSets::PagePool::IoUring
3694
2688
  def io_uring: () -> AttributeSets::IoUringProviderInfo
3695
2689
  end
3696
2690
 
3697
2691
  # Notification about page pool configuration being changed.
3698
2692
  #
3699
2693
  # Multicast group: `page-pool`.
3700
- class PagePoolChangeNtf < ::Nl::Genl::Message
2694
+ class PagePoolChangeNtf < ::Nl::Message
3701
2695
  TYPE: ::Integer
3702
2696
 
3703
2697
  FIXED_HEADER: untyped
@@ -3706,10 +2700,22 @@ module Nl
3706
2700
 
3707
2701
  ATTRIBUTES: untyped
3708
2702
 
2703
+ include ATTRIBUTE_SET::Definitions
2704
+
2705
+ def initialize: (?untyped attributes) -> untyped
2706
+
2707
+ # @private
2708
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
2709
+
2710
+ # Decodes a message payload from the decoder into a new instance.
2711
+ # @rbs (::Nl::Decoder decoder) -> instance
2712
+ def self.decode: (::Nl::Decoder decoder) -> instance
2713
+
2714
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
2715
+
3709
2716
  # Unique ID of a Page Pool instance.
3710
2717
  # @rbs return: ::Integer
3711
2718
  # @return [Integer]
3712
- # @see AttributeSets::PagePool::Id
3713
2719
  def id: () -> ::Integer
3714
2720
 
3715
2721
  # ifindex of the netdev to which the pool belongs.
@@ -3718,13 +2724,11 @@ module Nl
3718
2724
  # because they wait for all memory to be returned).
3719
2725
  # @rbs return: ::Integer
3720
2726
  # @return [Integer]
3721
- # @see AttributeSets::PagePool::Ifindex
3722
2727
  def ifindex: () -> ::Integer
3723
2728
 
3724
2729
  # Id of NAPI using this Page Pool instance.
3725
2730
  # @rbs return: ::Integer
3726
2731
  # @return [Integer]
3727
- # @see AttributeSets::PagePool::NapiId
3728
2732
  def napi_id: () -> ::Integer
3729
2733
 
3730
2734
  # Number of outstanding references to this page pool (allocated
@@ -3733,13 +2737,11 @@ module Nl
3733
2737
  # ring, the page pool cache, etc.
3734
2738
  # @rbs return: ::Integer
3735
2739
  # @return [Integer]
3736
- # @see AttributeSets::PagePool::Inflight
3737
2740
  def inflight: () -> ::Integer
3738
2741
 
3739
2742
  # Amount of memory held by inflight pages.
3740
2743
  # @rbs return: ::Integer
3741
2744
  # @return [Integer]
3742
- # @see AttributeSets::PagePool::InflightMem
3743
2745
  def inflight_mem: () -> ::Integer
3744
2746
 
3745
2747
  # Seconds in CLOCK_BOOTTIME of when Page Pool was detached by
@@ -3752,19 +2754,16 @@ module Nl
3752
2754
  # can still be used to allocate new memory.
3753
2755
  # @rbs return: ::Integer
3754
2756
  # @return [Integer]
3755
- # @see AttributeSets::PagePool::DetachTime
3756
2757
  def detach_time: () -> ::Integer
3757
2758
 
3758
2759
  # ID of the dmabuf this page-pool is attached to.
3759
2760
  # @rbs return: ::Integer
3760
2761
  # @return [Integer]
3761
- # @see AttributeSets::PagePool::Dmabuf
3762
2762
  def dmabuf: () -> ::Integer
3763
2763
 
3764
2764
  # io-uring memory provider information.
3765
2765
  # @rbs return: AttributeSets::IoUringProviderInfo
3766
2766
  # @return [AttributeSets::IoUringProviderInfo]
3767
- # @see AttributeSets::PagePool::IoUring
3768
2767
  def io_uring: () -> AttributeSets::IoUringProviderInfo
3769
2768
  end
3770
2769
  end
@@ -3947,14 +2946,17 @@ module Nl
3947
2946
  # Bind dmabuf to netdev
3948
2947
  #
3949
2948
  # Requires CAP_NET_ADMIN in the user namespace owning the network namespace.
3950
- # @rbs (?ifindex: ::Integer, ?queues: ::Array[(AttributeSets::QueueId | ::Hash[::Symbol, untyped])], ?fd: ::Integer) -> Messages::DoBindRxReply
2949
+ # @rbs (?ifindex: ::Integer, ?queues: ::Array[(AttributeSets::QueueId | ::Hash[::Symbol, untyped])], ?fd: ::Integer, ?rx_page_size: ::Integer) -> Messages::DoBindRxReply
3951
2950
  # @param [Hash] args
3952
2951
  # @option args [Integer] ifindex netdev ifindex to bind the dmabuf to.
3953
2952
  # @option args [Array<AttributeSets::QueueId, Hash<Symbol, Object>>] queues receive queues to bind the dmabuf to.
3954
2953
  # @option args [Integer] fd dmabuf file descriptor to bind.
2954
+ # @option args [Integer] rx_page_size Size in bytes of each device page the NIC writes into from the bound
2955
+ # dmabuf. Must be a power of two and >= PAGE_SIZE; defaults to
2956
+ # PAGE_SIZE.
3955
2957
  # @return [Messages::DoBindRxReply]
3956
2958
  # @see Messages::DoBindRxRequest
3957
- def do_bind_rx: (?ifindex: ::Integer, ?queues: ::Array[AttributeSets::QueueId | ::Hash[::Symbol, untyped]], ?fd: ::Integer) -> Messages::DoBindRxReply
2959
+ def do_bind_rx: (?ifindex: ::Integer, ?queues: ::Array[AttributeSets::QueueId | ::Hash[::Symbol, untyped]], ?fd: ::Integer, ?rx_page_size: ::Integer) -> Messages::DoBindRxReply
3958
2960
 
3959
2961
  # Set configurable NAPI instance settings.
3960
2962
  #
@@ -4113,14 +3115,17 @@ module Nl
4113
3115
  # Bind dmabuf to netdev
4114
3116
  #
4115
3117
  # Requires CAP_NET_ADMIN in the user namespace owning the network namespace.
4116
- # @rbs (?ifindex: ::Integer, ?queues: ::Array[(AttributeSets::QueueId | ::Hash[::Symbol, untyped])], ?fd: ::Integer) -> ::Nl::Async::Future[Messages::DoBindRxReply]
3118
+ # @rbs (?ifindex: ::Integer, ?queues: ::Array[(AttributeSets::QueueId | ::Hash[::Symbol, untyped])], ?fd: ::Integer, ?rx_page_size: ::Integer) -> ::Nl::Async::Future[Messages::DoBindRxReply]
4117
3119
  # @param [Hash] args
4118
3120
  # @option args [Integer] ifindex netdev ifindex to bind the dmabuf to.
4119
3121
  # @option args [Array<AttributeSets::QueueId, Hash<Symbol, Object>>] queues receive queues to bind the dmabuf to.
4120
3122
  # @option args [Integer] fd dmabuf file descriptor to bind.
3123
+ # @option args [Integer] rx_page_size Size in bytes of each device page the NIC writes into from the bound
3124
+ # dmabuf. Must be a power of two and >= PAGE_SIZE; defaults to
3125
+ # PAGE_SIZE.
4121
3126
  # @return [Nl::Async::Future<Messages::DoBindRxReply>]
4122
3127
  # @see Messages::DoBindRxRequest
4123
- def do_bind_rx: (?ifindex: ::Integer, ?queues: ::Array[AttributeSets::QueueId | ::Hash[::Symbol, untyped]], ?fd: ::Integer) -> ::Nl::Async::Future[Messages::DoBindRxReply]
3128
+ def do_bind_rx: (?ifindex: ::Integer, ?queues: ::Array[AttributeSets::QueueId | ::Hash[::Symbol, untyped]], ?fd: ::Integer, ?rx_page_size: ::Integer) -> ::Nl::Async::Future[Messages::DoBindRxReply]
4124
3129
 
4125
3130
  # Set configurable NAPI instance settings.
4126
3131
  #