Skip to content

Commit b123c31

Browse files
committed
Sync to 7.1-rc3
Upstream commit 5db89c99566f (net: ifb: report ethtool stats over num_tx_queues, 2026-05-13) Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 5b9e7f2 commit b123c31

31 files changed

Lines changed: 919 additions & 16 deletions

Documentation/netlink/genetlink-c.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ properties:
6969
header:
7070
description: For C-compatible languages, header which already defines this value.
7171
type: string
72+
scope:
73+
description: |
74+
Visibility of this definition. "uapi" (default) renders into
75+
the uAPI header, "kernel" renders into the kernel-side
76+
generated header, "user" renders into the user-side
77+
generated header. When combined with `header:`, the
78+
definition is not rendered, and the named header is
79+
included only by code matching the scope.
80+
enum: [ uapi, kernel, user ]
7281
type:
7382
enum: [ const, enum, flags ]
7483
doc:

Documentation/netlink/genetlink-legacy.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ properties:
8383
header:
8484
description: For C-compatible languages, header which already defines this value.
8585
type: string
86+
scope:
87+
description: |
88+
Visibility of this definition. "uapi" (default) renders into
89+
the uAPI header, "kernel" renders into the kernel-side
90+
generated header, "user" renders into the user-side
91+
generated header. When combined with `header:`, the
92+
definition is not rendered, and the named header is
93+
included only by code matching the scope.
94+
enum: [ uapi, kernel, user ]
8695
type:
8796
enum: [ const, enum, flags, struct ] # Trim
8897
doc:

Documentation/netlink/genetlink.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ properties:
5555
header:
5656
description: For C-compatible languages, header which already defines this value.
5757
type: string
58+
scope:
59+
description: |
60+
Visibility of this definition. "uapi" (default) renders into
61+
the uAPI header, "kernel" renders into the kernel-side
62+
generated header, "user" renders into the user-side
63+
generated header. When combined with `header:`, the
64+
definition is not rendered, and the named header is
65+
included only by code matching the scope.
66+
enum: [ uapi, kernel, user ]
5867
type:
5968
enum: [ const, enum, flags ]
6069
doc:

Documentation/netlink/netlink-raw.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ properties:
8787
header:
8888
description: For C-compatible languages, header which already defines this value.
8989
type: string
90+
scope:
91+
description: |
92+
Visibility of this definition. "uapi" (default) renders into
93+
the uAPI header, "kernel" renders into the kernel-side
94+
generated header, "user" renders into the user-side
95+
generated header. When combined with `header:`, the
96+
definition is not rendered, and the named header is
97+
included only by code matching the scope.
98+
enum: [ uapi, kernel, user ]
9099
type:
91100
enum: [ const, enum, flags, struct ] # Trim
92101
doc:

Documentation/netlink/specs/devlink.yaml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ definitions:
157157
entries:
158158
-
159159
name: entry
160+
-
161+
type: enum
162+
name: resource-scope
163+
entries:
164+
-
165+
name: dev
166+
-
167+
name: port
160168
-
161169
type: enum
162170
name: reload-action
@@ -873,6 +881,16 @@ attribute-sets:
873881
doc: Unique devlink instance index.
874882
checks:
875883
max: u32-max
884+
-
885+
name: resource-scope-mask
886+
type: u32
887+
enum: resource-scope
888+
enum-as-flags: true
889+
doc: |
890+
Bitmask selecting which resource classes to include in a
891+
resource-dump response. Bit 0 (dev) selects device-level
892+
resources; bit 1 (port) selects port-level resources.
893+
When absent all classes are returned.
876894
-
877895
name: dl-dev-stats
878896
subset-of: devlink
@@ -1757,20 +1775,30 @@ operations:
17571775
attribute-set: devlink
17581776
dont-validate: [strict]
17591777
do:
1760-
pre: devlink-nl-pre-doit
1778+
pre: devlink-nl-pre-doit-port-optional
17611779
post: devlink-nl-post-doit
17621780
request:
17631781
attributes:
17641782
- bus-name
17651783
- dev-name
17661784
- index
1767-
reply:
1785+
- port-index
1786+
reply: &resource-dump-reply
17681787
value: 36
17691788
attributes:
17701789
- bus-name
17711790
- dev-name
17721791
- index
1792+
- port-index
17731793
- resource-list
1794+
dump:
1795+
request:
1796+
attributes:
1797+
- bus-name
1798+
- dev-name
1799+
- index
1800+
- resource-scope-mask
1801+
reply: *resource-dump-reply
17741802

17751803
-
17761804
name: reload

Documentation/netlink/specs/dpll.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,20 @@ definitions:
240240
integer part of a measured phase offset value.
241241
Value of (DPLL_A_PHASE_OFFSET % DPLL_PHASE_OFFSET_DIVIDER) is a
242242
fractional part of a measured phase offset value.
243+
-
244+
type: const
245+
name: pin-measured-frequency-divider
246+
value: 1000
247+
doc: |
248+
pin measured frequency divider allows userspace to calculate
249+
a value of measured input frequency as a fractional value with
250+
three digit decimal precision (millihertz).
251+
Value of (DPLL_A_PIN_MEASURED_FREQUENCY /
252+
DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is an integer part of
253+
a measured frequency value.
254+
Value of (DPLL_A_PIN_MEASURED_FREQUENCY %
255+
DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is a fractional part of
256+
a measured frequency value.
243257
-
244258
type: enum
245259
name: feature-state
@@ -319,6 +333,13 @@ attribute-sets:
319333
name: phase-offset-avg-factor
320334
type: u32
321335
doc: Averaging factor applied to calculation of reported phase offset.
336+
-
337+
name: frequency-monitor
338+
type: u32
339+
enum: feature-state
340+
doc: Current or desired state of the frequency monitor feature.
341+
If enabled, dpll device shall measure all currently available
342+
inputs for their actual input frequency.
322343
-
323344
name: pin
324345
enum-name: dpll_a_pin
@@ -456,6 +477,17 @@ attribute-sets:
456477
Value is in PPT (parts per trillion, 10^-12).
457478
Note: This attribute provides higher resolution than the standard
458479
fractional-frequency-offset (which is in PPM).
480+
-
481+
name: measured-frequency
482+
type: u64
483+
doc: |
484+
The measured frequency of the input pin in millihertz (mHz).
485+
Value of (DPLL_A_PIN_MEASURED_FREQUENCY /
486+
DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is an integer part (Hz)
487+
of a measured frequency value.
488+
Value of (DPLL_A_PIN_MEASURED_FREQUENCY %
489+
DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is a fractional part
490+
of a measured frequency value.
459491
460492
-
461493
name: pin-parent-device
@@ -544,6 +576,7 @@ operations:
544576
- type
545577
- phase-offset-monitor
546578
- phase-offset-avg-factor
579+
- frequency-monitor
547580

548581
dump:
549582
reply: *dev-attrs
@@ -563,6 +596,7 @@ operations:
563596
- mode
564597
- phase-offset-monitor
565598
- phase-offset-avg-factor
599+
- frequency-monitor
566600
-
567601
name: device-create-ntf
568602
doc: Notification about device appearing
@@ -643,6 +677,7 @@ operations:
643677
- esync-frequency-supported
644678
- esync-pulse
645679
- reference-sync
680+
- measured-frequency
646681

647682
dump:
648683
request:

Documentation/netlink/specs/net_shaper.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ doc: |
3333
@cap-get operation.
3434
3535
definitions:
36+
-
37+
type: const
38+
name: max-handle-id
39+
value: 0x3fffffe
40+
scope: kernel
3641
-
3742
type: enum
3843
name: scope
@@ -140,6 +145,8 @@ attribute-sets:
140145
-
141146
name: id
142147
type: u32
148+
checks:
149+
max: max-handle-id
143150
doc: |
144151
Numeric identifier of a shaper. The id semantic depends on
145152
the scope. For @queue scope it's the queue id and for @node
@@ -247,8 +254,8 @@ operations:
247254
flags: [admin-perm]
248255

249256
do:
250-
pre: net-shaper-nl-pre-doit
251-
post: net-shaper-nl-post-doit
257+
pre: net-shaper-nl-pre-doit-write
258+
post: net-shaper-nl-post-doit-write
252259
request:
253260
attributes:
254261
- ifindex
@@ -278,8 +285,8 @@ operations:
278285
flags: [admin-perm]
279286

280287
do:
281-
pre: net-shaper-nl-pre-doit
282-
post: net-shaper-nl-post-doit
288+
pre: net-shaper-nl-pre-doit-write
289+
post: net-shaper-nl-post-doit-write
283290
request:
284291
attributes: *ns-binding
285292

@@ -309,8 +316,8 @@ operations:
309316
flags: [admin-perm]
310317

311318
do:
312-
pre: net-shaper-nl-pre-doit
313-
post: net-shaper-nl-post-doit
319+
pre: net-shaper-nl-pre-doit-write
320+
post: net-shaper-nl-post-doit-write
314321
request:
315322
attributes:
316323
- ifindex

Documentation/netlink/specs/netdev.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,15 @@ attribute-sets:
339339
doc: XSK information for this queue, if any.
340340
type: nest
341341
nested-attributes: xsk-info
342+
-
343+
name: lease
344+
doc: |
345+
A queue from a virtual device can have a lease which refers to
346+
another queue from a physical device. This is useful for memory
347+
providers and AF_XDP operations which take an ifindex and queue id
348+
to allow applications to bind against virtual devices in containers.
349+
type: nest
350+
nested-attributes: lease
342351
-
343352
name: qstats
344353
doc: |
@@ -537,6 +546,26 @@ attribute-sets:
537546
name: id
538547
-
539548
name: type
549+
-
550+
name: lease
551+
attributes:
552+
-
553+
name: ifindex
554+
doc: The netdev ifindex to lease the queue from.
555+
type: u32
556+
checks:
557+
min: 1
558+
-
559+
name: queue
560+
doc: The netdev queue to lease from.
561+
type: nest
562+
nested-attributes: queue-id
563+
-
564+
name: netns-id
565+
doc: The network namespace id of the netdev.
566+
type: s32
567+
checks:
568+
min: 0
540569
-
541570
name: dmabuf
542571
attributes:
@@ -686,6 +715,7 @@ operations:
686715
- dmabuf
687716
- io-uring
688717
- xsk
718+
- lease
689719
dump:
690720
request:
691721
attributes:
@@ -797,6 +827,22 @@ operations:
797827
reply:
798828
attributes:
799829
- id
830+
-
831+
name: queue-create
832+
doc: |
833+
Create a new queue for the given netdevice. Whether this operation
834+
is supported depends on the device and the driver.
835+
attribute-set: queue
836+
flags: [admin-perm]
837+
do:
838+
request:
839+
attributes:
840+
- ifindex
841+
- type
842+
- lease
843+
reply: &queue-create-op
844+
attributes:
845+
- id
800846

801847
kernel-family:
802848
headers: ["net/netdev_netlink.h"]

Documentation/netlink/specs/nfsd.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ attribute-sets:
8181
-
8282
name: min-threads
8383
type: u32
84+
-
85+
name: fh-key
86+
type: binary
87+
checks:
88+
exact-len: 16
8489
-
8590
name: version
8691
attributes:
@@ -163,6 +168,7 @@ operations:
163168
- leasetime
164169
- scope
165170
- min-threads
171+
- fh-key
166172
-
167173
name: threads-get
168174
doc: get the maximum number of running threads

Documentation/netlink/specs/psp.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ operations:
188188
name: dev-set
189189
doc: Set the configuration of a PSP device.
190190
attribute-set: dev
191+
flags: [admin-perm]
191192
do:
192193
request:
193194
attributes:
@@ -207,6 +208,7 @@ operations:
207208
name: key-rotate
208209
doc: Rotate the device key.
209210
attribute-set: dev
211+
flags: [admin-perm]
210212
do:
211213
request:
212214
attributes:
@@ -267,6 +269,14 @@ operations:
267269
- dev-id
268270
- key-rotations
269271
- stale-events
272+
- rx-packets
273+
- rx-bytes
274+
- rx-auth-fail
275+
- rx-error
276+
- rx-bad
277+
- tx-packets
278+
- tx-bytes
279+
- tx-error
270280
pre: psp-device-get-locked
271281
post: psp-device-unlock
272282
dump:

0 commit comments

Comments
 (0)