netlink: specs: add ovs_vport new command
authorJakub Kicinski <kuba@kernel.org>
Mon, 14 Aug 2023 20:56:26 +0000 (13:56 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 16 Aug 2023 02:18:34 +0000 (19:18 -0700)
Add NEW to the spec, it was useful testing the fix for OvS
input validation.

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20230814205627.2914583-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/ovs_vport.yaml

index 1733645..ef298b0 100644 (file)
@@ -82,6 +82,10 @@ attribute-sets:
     enum-name: ovs-vport-attr
     attributes:
       -
+        name: unspec
+        type: unused
+        value: 0
+      -
         name: port-no
         type: u32
       -
@@ -121,6 +125,20 @@ operations:
   name-prefix: ovs-vport-cmd-
   list:
     -
+      name: new
+      doc: Create a new OVS vport
+      attribute-set: vport
+      fixed-header: ovs-header
+      do:
+        request:
+          attributes:
+            - name
+            - type
+            - upcall-pid
+            - dp-ifindex
+            - ifindex
+            - options
+    -
       name: get
       doc: Get / dump OVS vport configuration and state
       value: 3