Skip to content

Commit

Permalink
Merge branch 'netlink-specs-legacy'
Browse files Browse the repository at this point in the history
Jakub Kicinski says:

====================
netlink: specs: prep legacy specs for C code gen

Minor adjustments to some specs to make them ready for C code gen.

v2:
 - fix MAINATINERS and subject of patch 3
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Dec 15, 2023
2 parents 283f105 + b059aef commit f06f089
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 13 deletions.
File renamed without changes.
3 changes: 1 addition & 2 deletions Documentation/netlink/specs/ovs_datapath.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ definitions:
name: user-features
type: flags
name-prefix: ovs-dp-f-
enum-name:
entries:
-
name: unaligned
Expand Down Expand Up @@ -142,7 +143,6 @@ operations:
do:
request:
attributes:
- dp-ifindex
- name
- upcall-pid
- user-features
Expand All @@ -154,7 +154,6 @@ operations:
do:
request:
attributes:
- dp-ifindex
- name

mcast-groups:
Expand Down
7 changes: 4 additions & 3 deletions Documentation/netlink/specs/ovs_flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ definitions:
-
name: ovs-frag-type
name-prefix: ovs-frag-type-
enum-name: ovs-frag-type
type: enum
entries:
-
Expand Down Expand Up @@ -269,6 +270,7 @@ definitions:
-
name: ovs-ufid-flags
name-prefix: ovs-ufid-f-
enum-name:
type: flags
entries:
- omit-key
Expand All @@ -288,6 +290,7 @@ definitions:
doc: Basis used for computing hash.
-
name: ovs-hash-alg
enum-name: ovs-hash-alg
type: enum
doc: |
Data path hash algorithm for computing Datapath hash. The algorithm type only specifies
Expand Down Expand Up @@ -339,6 +342,7 @@ definitions:
MPLS tunnel attributes.
-
name: ct-state-flags
enum-name:
type: flags
name-prefix: ovs-cs-f-
entries:
Expand Down Expand Up @@ -947,13 +951,11 @@ operations:
do: &flow-get-op
request:
attributes:
- dp-ifindex
- key
- ufid
- ufid-flags
reply:
attributes:
- dp-ifindex
- key
- ufid
- mask
Expand All @@ -968,7 +970,6 @@ operations:
do:
request:
attributes:
- dp-ifindex
- key
- ufid
- mask
Expand Down
4 changes: 0 additions & 4 deletions Documentation/netlink/specs/ovs_vport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ operations:
- name
- type
- upcall-pid
- dp-ifindex
- ifindex
- options
-
Expand All @@ -146,7 +145,6 @@ operations:
do:
request:
attributes:
- dp-ifindex
- port-no
- type
- name
Expand All @@ -158,11 +156,9 @@ operations:
do: &vport-get-op
request:
attributes:
- dp-ifindex
- name
reply: &dev-all
attributes:
- dp-ifindex
- port-no
- type
- name
Expand Down
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -15099,7 +15099,7 @@ W: https://github.com/multipath-tcp/mptcp_net-next/wiki
B: https://github.com/multipath-tcp/mptcp_net-next/issues
T: git https://github.com/multipath-tcp/mptcp_net-next.git export-net
T: git https://github.com/multipath-tcp/mptcp_net-next.git export
F: Documentation/netlink/specs/mptcp.yaml
F: Documentation/netlink/specs/mptcp_pm.yaml
F: Documentation/networking/mptcp-sysctl.rst
F: include/net/mptcp.h
F: include/trace/events/mptcp.h
Expand Down
2 changes: 1 addition & 1 deletion include/uapi/linux/mptcp_pm.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
/* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/mptcp.yaml */
/* Documentation/netlink/specs/mptcp_pm.yaml */
/* YNL-GEN uapi header */

#ifndef _UAPI_LINUX_MPTCP_PM_H
Expand Down
2 changes: 1 addition & 1 deletion net/mptcp/mptcp_pm_gen.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
/* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/mptcp.yaml */
/* Documentation/netlink/specs/mptcp_pm.yaml */
/* YNL-GEN kernel source */

#include <net/netlink.h>
Expand Down
2 changes: 1 addition & 1 deletion net/mptcp/mptcp_pm_gen.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
/* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/mptcp.yaml */
/* Documentation/netlink/specs/mptcp_pm.yaml */
/* YNL-GEN kernel header */

#ifndef _LINUX_MPTCP_PM_GEN_H
Expand Down

0 comments on commit f06f089

Please sign in to comment.