]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
netlink: specs: support unterminated-ok
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 8 Mar 2024 08:12:39 +0000 (16:12 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Mar 2024 20:09:15 +0000 (13:09 -0700)
ynl-gen-c.py supports check unterminated-ok, but the yaml schemas don't
have this key. Add this to the yaml files.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20240308081239.3281710-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/genetlink-c.yaml
Documentation/netlink/genetlink-legacy.yaml
Documentation/netlink/netlink-raw.yaml

index 24692a9343f087de01c445ba0b90f99fe08c9bbc..de786e2d35bfb5fe69ee35c614e6ccf835d67ca9 100644 (file)
@@ -209,6 +209,11 @@ properties:
                   exact-len:
                     description: Exact length for a string or a binary attribute.
                     $ref: '#/$defs/len-or-define'
+                  unterminated-ok:
+                    description: |
+                      For string attributes, do not check whether attribute
+                      contains the terminating null character.
+                    type: boolean
               sub-type: *attr-type
               display-hint: &display-hint
                 description: |
index b0b7e8bab8a983d5ef330813991798a5356d4cc0..c69de46b189b0c43e79e70f130206e1cce6b6f5d 100644 (file)
@@ -252,6 +252,11 @@ properties:
                   exact-len:
                     description: Exact length for a string or a binary attribute.
                     $ref: '#/$defs/len-or-define'
+                  unterminated-ok:
+                    description: |
+                      For string attributes, do not check whether attribute
+                      contains the terminating null character.
+                    type: boolean
               sub-type: *attr-type
               display-hint: *display-hint
               # Start genetlink-c
index 57490e5c1ddf81105e9d14f1915153cb5e87a2c7..a76e54cbadbc444c43e5f4333527034c276f000a 100644 (file)
@@ -271,6 +271,11 @@ properties:
                   exact-len:
                     description: Exact length for a string or a binary attribute.
                     $ref: '#/$defs/len-or-define'
+                  unterminated-ok:
+                    description: |
+                      For string attributes, do not check whether attribute
+                      contains the terminating null character.
+                    type: boolean
               sub-type: *attr-type
               display-hint: *display-hint
               # Start genetlink-c