nl-linux 0.4.1 → 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 +7 -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
@@ -20,7 +20,7 @@ module Nl
20
20
 
21
21
  reply = client.family(Nlctrl).do_getfamily(family_name:)
22
22
  groups = (reply.mcast_groups || []).to_h do |attributes|
23
- [attributes[:name].value, attributes[:id].value]
23
+ [attributes[:name], attributes[:id]]
24
24
  end
25
25
  Genl::FamilyInfo.new(id: reply.family_id, multicast_groups: groups.freeze)
26
26
  end
@@ -1,5 +1,5 @@
1
1
  module Nl
2
2
  module Linux
3
- VERSION = '0.4.1'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
data/linux/conntrack.yaml CHANGED
@@ -360,6 +360,17 @@ attribute-sets:
360
360
  name: tsoff
361
361
  type: u32
362
362
  byte-order: big-endian
363
+ -
364
+ name: filter-attrs
365
+ attributes:
366
+ -
367
+ name: orig-flags
368
+ type: u32
369
+ doc: bitmask of tuple fields to filter on, original direction
370
+ -
371
+ name: reply-flags
372
+ type: u32
373
+ doc: bitmask of tuple fields to filter on, reply direction
363
374
  -
364
375
  name: conntrack-attrs
365
376
  attributes:
@@ -466,7 +477,7 @@ attribute-sets:
466
477
  -
467
478
  name: filter
468
479
  type: nest
469
- nested-attributes: tuple-attrs
480
+ nested-attributes: filter-attrs
470
481
  -
471
482
  name: status-mask
472
483
  type: u32
@@ -591,10 +602,14 @@ operations:
591
602
  request:
592
603
  value: 0x101
593
604
  attributes:
594
- - mark
595
- - filter
605
+ - tuple-orig
606
+ - tuple-reply
596
607
  - status
608
+ - mark
597
609
  - zone
610
+ - mark-mask
611
+ - filter
612
+ - status-mask
598
613
  reply:
599
614
  value: 0x100
600
615
  attributes:
data/linux/devlink.yaml CHANGED
@@ -895,6 +895,16 @@ attribute-sets:
895
895
  resource-dump response. Bit 0 (dev) selects device-level
896
896
  resources; bit 1 (port) selects port-level resources.
897
897
  When absent all classes are returned.
898
+ -
899
+ name: parent-dev
900
+ type: nest
901
+ nested-attributes: dl-parent-dev
902
+ doc: |
903
+ Identifies the devlink instance which owns the parent rate node.
904
+ Used with rate-set and rate-new to parent a rate object to a node on
905
+ a different devlink instance, enabling cross-device rate scheduling.
906
+ When absent, the parent node is resolved on the same instance.
907
+
898
908
  -
899
909
  name: dl-dev-stats
900
910
  subset-of: devlink
@@ -1317,6 +1327,16 @@ attribute-sets:
1317
1327
  Specifies the bandwidth share assigned to the Traffic Class.
1318
1328
  The bandwidth for the traffic class is determined
1319
1329
  in proportion to the sum of the shares of all configured classes.
1330
+ -
1331
+ name: dl-parent-dev
1332
+ subset-of: devlink
1333
+ attributes:
1334
+ -
1335
+ name: bus-name
1336
+ -
1337
+ name: dev-name
1338
+ -
1339
+ name: index
1320
1340
 
1321
1341
  operations:
1322
1342
  enum-model: directional
@@ -2289,8 +2309,8 @@ operations:
2289
2309
  dont-validate: [strict]
2290
2310
  flags: [admin-perm]
2291
2311
  do:
2292
- pre: devlink-nl-pre-doit
2293
- post: devlink-nl-post-doit
2312
+ pre: devlink-nl-pre-doit-parent-dev-optional
2313
+ post: devlink-nl-post-doit-parent-dev-optional
2294
2314
  request:
2295
2315
  attributes:
2296
2316
  - bus-name
@@ -2303,6 +2323,7 @@ operations:
2303
2323
  - rate-tx-weight
2304
2324
  - rate-parent-node-name
2305
2325
  - rate-tc-bws
2326
+ - parent-dev
2306
2327
 
2307
2328
  -
2308
2329
  name: rate-new
@@ -2311,8 +2332,8 @@ operations:
2311
2332
  dont-validate: [strict]
2312
2333
  flags: [admin-perm]
2313
2334
  do:
2314
- pre: devlink-nl-pre-doit
2315
- post: devlink-nl-post-doit
2335
+ pre: devlink-nl-pre-doit-parent-dev-optional
2336
+ post: devlink-nl-post-doit-parent-dev-optional
2316
2337
  request:
2317
2338
  attributes:
2318
2339
  - bus-name
@@ -2325,6 +2346,7 @@ operations:
2325
2346
  - rate-tx-weight
2326
2347
  - rate-parent-node-name
2327
2348
  - rate-tc-bws
2349
+ - parent-dev
2328
2350
 
2329
2351
  -
2330
2352
  name: rate-del
data/linux/dpll.yaml CHANGED
@@ -165,6 +165,13 @@ definitions:
165
165
  -
166
166
  name: gnss
167
167
  doc: GNSS recovered clock
168
+ -
169
+ name: int-nco
170
+ doc: |
171
+ Device internal numerically controlled oscillator.
172
+ When connected as a DPLL input, the DPLL enters NCO mode
173
+ where the output frequency is adjusted by the host via
174
+ the PTP clock interface.
168
175
  render-max: true
169
176
  -
170
177
  type: enum
@@ -252,6 +259,12 @@ definitions:
252
259
  -
253
260
  name: state-can-change
254
261
  doc: pin state can be changed
262
+ -
263
+ name: state-connected-override
264
+ doc: |
265
+ pin state can be set to connected regardless of current
266
+ DPLL device mode, overriding the active input selection.
267
+ Requires state-can-change to be set as well.
255
268
  -
256
269
  type: const
257
270
  name: phase-offset-divider
@@ -456,6 +469,9 @@ attribute-sets:
456
469
  offset on the media associated with the pin. Inside
457
470
  the pin-parent-device nest it represents the frequency
458
471
  offset between the pin and its parent DPLL device.
472
+ For pins of type PIN_TYPE_INT_NCO this represents
473
+ the DPLL's current output frequency offset from its
474
+ nominal frequency.
459
475
  Value is in PPM (parts per million).
460
476
  This is a lower-precision version of
461
477
  fractional-frequency-offset-ppt.
@@ -502,6 +518,9 @@ attribute-sets:
502
518
  offset on the media associated with the pin. Inside
503
519
  the pin-parent-device nest it represents the frequency
504
520
  offset between the pin and its parent DPLL device.
521
+ For pins of type PIN_TYPE_INT_NCO this represents
522
+ the DPLL's current output frequency offset from its
523
+ nominal frequency.
505
524
  Value is in PPT (parts per trillion, 10^-12).
506
525
  This is a higher-precision version of
507
526
  fractional-frequency-offset.
data/linux/netdev.yaml CHANGED
@@ -6,6 +6,14 @@ doc: >-
6
6
  netdev configuration over generic netlink.
7
7
 
8
8
  definitions:
9
+ -
10
+ type: const
11
+ name: page-size
12
+ # Dummy value, codegen needs a number. The real value comes from
13
+ # the PAGE_SIZE macro in the header below.
14
+ value: 0
15
+ header: asm/page.h
16
+ scope: kernel
9
17
  -
10
18
  type: flags
11
19
  name: xdp-act
@@ -598,6 +606,16 @@ attribute-sets:
598
606
  type: u32
599
607
  checks:
600
608
  min: 1
609
+ -
610
+ name: rx-page-size
611
+ doc: |
612
+ Size in bytes of each device page the NIC writes into from the bound
613
+ dmabuf. Must be a power of two and >= PAGE_SIZE; defaults to
614
+ PAGE_SIZE.
615
+ type: u32
616
+ checks:
617
+ min: page-size
618
+ max: u32-max
601
619
 
602
620
  operations:
603
621
  list:
@@ -812,6 +830,7 @@ operations:
812
830
  - ifindex
813
831
  - fd
814
832
  - queues
833
+ - rx-page-size
815
834
  reply:
816
835
  attributes:
817
836
  - id
@@ -832,6 +851,8 @@ operations:
832
851
  name: bind-tx
833
852
  doc: Bind dmabuf to netdev for TX
834
853
  attribute-set: dmabuf
854
+ # Intentionally unprivileged (no admin-perm / uns-admin-perm); see
855
+ # comment above netdev_nl_bind_tx_doit().
835
856
  do:
836
857
  request:
837
858
  attributes:
data/linux/nfsd.yaml CHANGED
@@ -330,6 +330,91 @@ attribute-sets:
330
330
  of which client holds the state. Intended for use after
331
331
  all clients have been unexported from a given path,
332
332
  enabling the underlying filesystem to be unmounted.
333
+ -
334
+ name: server-proc-entry
335
+ attributes:
336
+ -
337
+ name: op
338
+ type: u32
339
+ -
340
+ name: count
341
+ type: u64
342
+ -
343
+ name: pad
344
+ type: pad
345
+ -
346
+ name: server-stats
347
+ attributes:
348
+ -
349
+ name: rc-hits
350
+ type: u64
351
+ -
352
+ name: rc-misses
353
+ type: u64
354
+ -
355
+ name: rc-nocache
356
+ type: u64
357
+ -
358
+ name: pad
359
+ type: pad
360
+ -
361
+ name: fh-stale
362
+ type: u64
363
+ -
364
+ name: io-read
365
+ type: u64
366
+ -
367
+ name: io-write
368
+ type: u64
369
+ -
370
+ name: netcnt
371
+ type: u32
372
+ -
373
+ name: netudpcnt
374
+ type: u32
375
+ -
376
+ name: nettcpcnt
377
+ type: u32
378
+ -
379
+ name: nettcpconn
380
+ type: u32
381
+ -
382
+ name: rpccnt
383
+ type: u32
384
+ -
385
+ name: rpcbadfmt
386
+ type: u32
387
+ -
388
+ name: rpcbadauth
389
+ type: u32
390
+ -
391
+ name: rpcbadclnt
392
+ type: u32
393
+ -
394
+ name: proc2-ops
395
+ type: nest
396
+ nested-attributes: server-proc-entry
397
+ multi-attr: true
398
+ -
399
+ name: proc3-ops
400
+ type: nest
401
+ nested-attributes: server-proc-entry
402
+ multi-attr: true
403
+ -
404
+ name: proc4-ops
405
+ type: nest
406
+ nested-attributes: server-proc-entry
407
+ multi-attr: true
408
+ -
409
+ name: proc4ops-ops
410
+ type: nest
411
+ nested-attributes: server-proc-entry
412
+ multi-attr: true
413
+ -
414
+ name: proc4cb-ops
415
+ type: nest
416
+ nested-attributes: server-proc-entry
417
+ multi-attr: true
333
418
 
334
419
  operations:
335
420
  list:
@@ -516,6 +601,32 @@ operations:
516
601
  request:
517
602
  attributes:
518
603
  - path
604
+ -
605
+ name: server-stats-get
606
+ doc: dump NFS server statistics
607
+ attribute-set: server-stats
608
+ dump:
609
+ reply:
610
+ attributes:
611
+ - rc-hits
612
+ - rc-misses
613
+ - rc-nocache
614
+ - fh-stale
615
+ - io-read
616
+ - io-write
617
+ - netcnt
618
+ - netudpcnt
619
+ - nettcpcnt
620
+ - nettcpconn
621
+ - rpccnt
622
+ - rpcbadfmt
623
+ - rpcbadauth
624
+ - rpcbadclnt
625
+ - proc2-ops
626
+ - proc3-ops
627
+ - proc4-ops
628
+ - proc4ops-ops
629
+ - proc4cb-ops
519
630
 
520
631
  mcast-groups:
521
632
  list:
data/linux/nl80211.yaml CHANGED
@@ -1139,10 +1139,10 @@ attribute-sets:
1139
1139
  type: binary
1140
1140
  -
1141
1141
  name: fils-discovery
1142
- type: binary # TOOD: nest
1142
+ type: binary # TODO: nest
1143
1143
  -
1144
1144
  name: unsol-bcast-probe-resp
1145
- type: binary # TOOD: nest
1145
+ type: binary # TODO: nest
1146
1146
  -
1147
1147
  name: s1g-capability
1148
1148
  type: binary
data/linux/rt-addr.yaml CHANGED
@@ -123,6 +123,9 @@ attribute-sets:
123
123
  -
124
124
  name: proto
125
125
  type: u8
126
+ -
127
+ name: mc-users
128
+ type: u32
126
129
 
127
130
 
128
131
  operations:
@@ -176,6 +179,7 @@ operations:
176
179
  value: 58
177
180
  attributes: &mcaddr-attrs
178
181
  - multicast
182
+ - mc-users
179
183
  - cacheinfo
180
184
  dump:
181
185
  request:
data/linux/rt-link.yaml CHANGED
@@ -898,6 +898,8 @@ attribute-sets:
898
898
  -
899
899
  name: txqlen
900
900
  type: u32
901
+ checks:
902
+ max: 32767
901
903
  -
902
904
  name: map
903
905
  type: binary
@@ -928,6 +930,11 @@ attribute-sets:
928
930
  name: vfinfo-list
929
931
  type: nest
930
932
  nested-attributes: vfinfo-list-attrs
933
+ doc: |
934
+ Per-VF details. The list holds at most 256 VFs, or 128 when
935
+ statistics are included, because it is one attribute and has to fit
936
+ in a u16 length. A device with more VFs than that reports a
937
+ truncated list; num-vf still carries the real count.
931
938
  -
932
939
  name: stats64
933
940
  type: binary
data/linux/rt-neigh.yaml CHANGED
@@ -341,6 +341,9 @@ attribute-sets:
341
341
  -
342
342
  name: interval-probe-time-ms
343
343
  type: u64
344
+ checks:
345
+ min: 1
346
+ max: 86400000
344
347
 
345
348
  operations:
346
349
  enum-model: directional
data/linux/rt-route.yaml CHANGED
@@ -78,6 +78,27 @@ definitions:
78
78
  -
79
79
  name: rta-used
80
80
  type: u32
81
+ -
82
+ name: del-reason
83
+ type: enum
84
+ name-prefix: rt-del-reason-
85
+ enum-name: rt-del-reason
86
+ doc: |
87
+ Why the kernel deleted a route. New causes may be appended. The
88
+ value space is family-agnostic, a value is never reinterpreted
89
+ per address family.
90
+ entries:
91
+ -
92
+ name: unspec
93
+ doc: The deletion path does not record a cause.
94
+ -
95
+ name: expired
96
+ doc: The RTF_EXPIRES lifetime ran out and the route was garbage
97
+ collected.
98
+ -
99
+ name: ra-withdrawn
100
+ doc: A Router Advertisement withdrew the route with a zero
101
+ lifetime.
81
102
 
82
103
  attribute-sets:
83
104
  -
@@ -185,6 +206,18 @@ attribute-sets:
185
206
  type: u32
186
207
  byte-order: big-endian
187
208
  display-hint: hex
209
+ -
210
+ name: del-reason
211
+ type: u32
212
+ enum: del-reason
213
+ doc: |
214
+ Emitted only on RTM_DELROUTE notifications, and only when the
215
+ deletion path records a cause. An absent attribute means
216
+ either an older kernel or a deletion path that does not
217
+ record its cause, consumers must treat absent and unspec
218
+ identically. Currently only IPv6 deletion paths record a
219
+ cause. The attribute is notification-only, the kernel rejects
220
+ it in requests.
188
221
  -
189
222
  name: metrics
190
223
  name-prefix: rtax-
@@ -299,6 +332,7 @@ operations:
299
332
  - dport
300
333
  - nh-id
301
334
  - flowlabel
335
+ - del-reason
302
336
  dump:
303
337
  request:
304
338
  value: 26
@@ -313,7 +347,35 @@ operations:
313
347
  do:
314
348
  request:
315
349
  value: 24
316
- attributes: *all-route-attrs
350
+ attributes: &route-req-attrs
351
+ - dst
352
+ - src
353
+ - iif
354
+ - oif
355
+ - gateway
356
+ - priority
357
+ - prefsrc
358
+ - metrics
359
+ - multipath
360
+ - flow
361
+ - cacheinfo
362
+ - table
363
+ - mark
364
+ - mfc-stats
365
+ - via
366
+ - newdst
367
+ - pref
368
+ - encap-type
369
+ - encap
370
+ - expires
371
+ - pad
372
+ - uid
373
+ - ttl-propagate
374
+ - ip-proto
375
+ - sport
376
+ - dport
377
+ - nh-id
378
+ - flowlabel
317
379
  -
318
380
  name: delroute
319
381
  doc: Delete an existing route
@@ -321,4 +383,23 @@ operations:
321
383
  do:
322
384
  request:
323
385
  value: 25
324
- attributes: *all-route-attrs
386
+ attributes: *route-req-attrs
387
+ -
388
+ name: newroute-ntf
389
+ doc: Notification about a created route.
390
+ value: 24
391
+ notify: getroute
392
+ -
393
+ name: delroute-ntf
394
+ doc: Notification about a deleted route.
395
+ value: 25
396
+ notify: getroute
397
+
398
+ mcast-groups:
399
+ list:
400
+ -
401
+ name: rtnlgrp-ipv4-route
402
+ value: 7
403
+ -
404
+ name: rtnlgrp-ipv6-route
405
+ value: 11