Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

netlink: specs: fixup openvswitch specs for code generation

Refine the ovs_* specs to align exactly with the ovs netlink UAPI
definitions to enable code generation.

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20230615151405.77649-1-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Donald Hunter and committed by
Jakub Kicinski
6907217a e16ad981

+87 -24
+20 -10
Documentation/netlink/specs/ovs_datapath.yaml
··· 3 3 name: ovs_datapath 4 4 version: 2 5 5 protocol: genetlink-legacy 6 + uapi-header: linux/openvswitch.h 6 7 7 8 doc: 8 9 OVS datapath configuration over generic netlink. ··· 19 18 - 20 19 name: user-features 21 20 type: flags 21 + name-prefix: ovs-dp-f- 22 22 entries: 23 23 - 24 24 name: unaligned ··· 35 33 doc: Allow per-cpu dispatch of upcalls 36 34 - 37 35 name: datapath-stats 36 + enum-name: ovs-dp-stats 38 37 type: struct 39 38 members: 40 39 - 41 - name: hit 40 + name: n-hit 42 41 type: u64 43 42 - 44 - name: missed 43 + name: n-missed 45 44 type: u64 46 45 - 47 - name: lost 46 + name: n-lost 48 47 type: u64 49 48 - 50 - name: flows 49 + name: n-flows 51 50 type: u64 52 51 - 53 52 name: megaflow-stats 53 + enum-name: ovs-dp-megaflow-stats 54 54 type: struct 55 55 members: 56 56 - 57 - name: mask-hit 57 + name: n-mask-hit 58 58 type: u64 59 59 - 60 - name: masks 60 + name: n-masks 61 61 type: u32 62 62 - 63 63 name: padding 64 64 type: u32 65 65 - 66 - name: cache-hits 66 + name: n-cache-hit 67 67 type: u64 68 68 - 69 69 name: pad1 ··· 74 70 attribute-sets: 75 71 - 76 72 name: datapath 73 + name-prefix: ovs-dp-attr- 74 + enum-name: ovs-datapath-attrs 77 75 attributes: 78 76 - 79 77 name: name ··· 107 101 name: per-cpu-pids 108 102 type: binary 109 103 sub-type: u32 104 + - 105 + name: ifindex 106 + type: u32 110 107 111 108 operations: 112 109 fixed-header: ovs-header 110 + name-prefix: ovs-dp-cmd- 113 111 list: 114 112 - 115 - name: dp-get 113 + name: get 116 114 doc: Get / dump OVS data path configuration and state 117 115 value: 3 118 116 attribute-set: datapath ··· 135 125 - per-cpu-pids 136 126 dump: *dp-get-op 137 127 - 138 - name: dp-new 128 + name: new 139 129 doc: Create new OVS data path 140 130 value: 1 141 131 attribute-set: datapath ··· 147 137 - upcall-pid 148 138 - user-features 149 139 - 150 - name: dp-del 140 + name: del 151 141 doc: Delete existing OVS data path 152 142 value: 2 153 143 attribute-set: datapath
+55 -13
Documentation/netlink/specs/ovs_flow.yaml
··· 3 3 name: ovs_flow 4 4 version: 1 5 5 protocol: genetlink-legacy 6 + uapi-header: linux/openvswitch.h 6 7 7 8 doc: 8 9 OVS flow configuration over generic netlink. ··· 68 67 enum: ovs-frag-type 69 68 - 70 69 name: ovs-frag-type 70 + name-prefix: ovs-frag-type- 71 71 type: enum 72 72 entries: 73 73 - ··· 168 166 doc: Tag control identifier (TCI) to push. 169 167 - 170 168 name: ovs-ufid-flags 169 + name-prefix: ovs-ufid-f- 171 170 type: flags 172 171 entries: 173 172 - omit-key ··· 179 176 type: struct 180 177 members: 181 178 - 182 - name: hash-algorithm 179 + name: hash-alg 183 180 type: u32 184 181 doc: Algorithm used to compute hash prior to recirculation. 185 182 - ··· 201 198 type: struct 202 199 members: 203 200 - 204 - name: lse 201 + name: mpls-lse 205 202 type: u32 206 203 byte-order: big-endian 207 204 doc: | 208 205 MPLS label stack entry to push 209 206 - 210 - name: ethertype 207 + name: mpls-ethertype 211 208 type: u32 212 209 byte-order: big-endian 213 210 doc: | ··· 219 216 type: struct 220 217 members: 221 218 - 222 - name: lse 219 + name: mpls-lse 223 220 type: u32 224 221 byte-order: big-endian 225 222 doc: | 226 223 MPLS label stack entry to push 227 224 - 228 - name: ethertype 225 + name: mpls-ethertype 229 226 type: u32 230 227 byte-order: big-endian 231 228 doc: | ··· 240 237 - 241 238 name: ct-state-flags 242 239 type: flags 240 + name-prefix: ovs-cs-f- 243 241 entries: 244 242 - 245 243 name: new ··· 270 266 attribute-sets: 271 267 - 272 268 name: flow-attrs 269 + enum-name: ovs-flow-attr 270 + name-prefix: ovs-flow-attr- 273 271 attributes: 274 272 - 275 273 name: key ··· 358 352 359 353 - 360 354 name: key-attrs 355 + enum-name: ovs-key-attr 356 + name-prefix: ovs-key-attr- 361 357 attributes: 362 358 - 363 359 name: encap ··· 489 481 doc: struct ovs_key_ipv6_exthdr 490 482 - 491 483 name: action-attrs 484 + enum-name: ovs-action-attr 485 + name-prefix: ovs-action-attr- 492 486 attributes: 493 487 - 494 488 name: output ··· 618 608 nested-attributes: dec-ttl-attrs 619 609 - 620 610 name: tunnel-key-attrs 611 + enum-name: ovs-tunnel-key-attr 612 + name-prefix: ovs-tunnel-key-attr- 621 613 attributes: 622 614 - 623 615 name: id ··· 688 676 type: flag 689 677 - 690 678 name: check-pkt-len-attrs 679 + enum-name: ovs-check-pkt-len-attr 680 + name-prefix: ovs-check-pkt-len-attr- 691 681 attributes: 692 682 - 693 683 name: pkt-len ··· 704 690 nested-attributes: action-attrs 705 691 - 706 692 name: sample-attrs 693 + enum-name: ovs-sample-attr 694 + name-prefix: ovs-sample-attr- 707 695 attributes: 708 696 - 709 697 name: probability ··· 716 700 nested-attributes: action-attrs 717 701 - 718 702 name: userspace-attrs 703 + enum-name: ovs-userspace-attr 704 + name-prefix: ovs-userspace-attr- 719 705 attributes: 720 706 - 721 707 name: pid ··· 733 715 type: flag 734 716 - 735 717 name: ovs-nsh-key-attrs 718 + enum-name: ovs-nsh-key-attr 719 + name-prefix: ovs-nsh-key-attr- 736 720 attributes: 737 721 - 738 722 name: base ··· 747 727 type: binary 748 728 - 749 729 name: ct-attrs 730 + enum-name: ovs-ct-attr 731 + name-prefix: ovs-ct-attr- 750 732 attributes: 751 733 - 752 734 name: commit ··· 780 758 type: string 781 759 - 782 760 name: nat-attrs 761 + enum-name: ovs-nat-attr 762 + name-prefix: ovs-nat-attr- 783 763 attributes: 784 764 - 785 765 name: src 786 - type: binary 766 + type: flag 787 767 - 788 768 name: dst 789 - type: binary 769 + type: flag 790 770 - 791 771 name: ip-min 792 772 type: binary ··· 797 773 type: binary 798 774 - 799 775 name: proto-min 800 - type: binary 776 + type: u16 801 777 - 802 778 name: proto-max 803 - type: binary 779 + type: u16 804 780 - 805 781 name: persistent 806 - type: binary 782 + type: flag 807 783 - 808 784 name: proto-hash 809 - type: binary 785 + type: flag 810 786 - 811 787 name: proto-random 812 - type: binary 788 + type: flag 813 789 - 814 790 name: dec-ttl-attrs 791 + enum-name: ovs-dec-ttl-attr 792 + name-prefix: ovs-dec-ttl-attr- 815 793 attributes: 816 794 - 817 795 name: action ··· 821 795 nested-attributes: action-attrs 822 796 - 823 797 name: vxlan-ext-attrs 798 + enum-name: ovs-vxlan-ext- 799 + name-prefix: ovs-vxlan-ext- 824 800 attributes: 825 801 - 826 802 name: gbp 827 803 type: u32 828 804 829 805 operations: 806 + name-prefix: ovs-flow-cmd- 830 807 fixed-header: ovs-header 831 808 list: 832 809 - 833 - name: flow-get 810 + name: get 834 811 doc: Get / dump OVS flow configuration and state 835 812 value: 3 836 813 attribute-set: flow-attrs ··· 853 824 - stats 854 825 - actions 855 826 dump: *flow-get-op 827 + - 828 + name: new 829 + doc: Create OVS flow configuration in a data path 830 + value: 1 831 + attribute-set: flow-attrs 832 + do: 833 + request: 834 + attributes: 835 + - dp-ifindex 836 + - key 837 + - ufid 838 + - mask 839 + - actions 856 840 857 841 mcast-groups: 858 842 list:
+12 -1
Documentation/netlink/specs/ovs_vport.yaml
··· 3 3 name: ovs_vport 4 4 version: 2 5 5 protocol: genetlink-legacy 6 + uapi-header: linux/openvswitch.h 6 7 7 8 doc: 8 9 OVS vport configuration over generic netlink. ··· 19 18 - 20 19 name: vport-type 21 20 type: enum 21 + enum-name: ovs-vport-type 22 + name-prefix: ovs-vport-type- 22 23 entries: [ unspec, netdev, internal, gre, vxlan, geneve ] 23 24 - 24 25 name: vport-stats 25 26 type: struct 27 + enum-name: ovs-vport-stats 26 28 members: 27 29 - 28 30 name: rx-packets ··· 55 51 attribute-sets: 56 52 - 57 53 name: vport-options 54 + enum-name: ovs-vport-options 55 + name-prefix: ovs-tunnel-attr- 58 56 attributes: 59 57 - 60 58 name: dst-port ··· 66 60 type: u32 67 61 - 68 62 name: upcall-stats 63 + enum-name: ovs-vport-upcall-attr 64 + name-prefix: ovs-vport-upcall-attr- 69 65 attributes: 70 66 - 71 67 name: success ··· 78 70 type: u64 79 71 - 80 72 name: vport 73 + name-prefix: ovs-vport-attr- 74 + enum-name: ovs-vport-attr 81 75 attributes: 82 76 - 83 77 name: port-no ··· 118 108 nested-attributes: upcall-stats 119 109 120 110 operations: 111 + name-prefix: ovs-vport-cmd- 121 112 list: 122 113 - 123 - name: vport-get 114 + name: get 124 115 doc: Get / dump OVS vport configuration and state 125 116 value: 3 126 117 attribute-set: vport