Commit ded67d90 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

netlink: specs: add ovs_vport new command



Add NEW to the spec, it was useful testing the fix for OvS
input validation.

Reviewed-by: default avatarDonald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20230814205627.2914583-3-kuba@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 956db0a1
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -81,6 +81,10 @@ attribute-sets:
    name-prefix: ovs-vport-attr-
    enum-name: ovs-vport-attr
    attributes:
      -
        name: unspec
        type: unused
        value: 0
      -
        name: port-no
        type: u32
@@ -120,6 +124,20 @@ attribute-sets:
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