All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/6] mptcp: convert Netlink code to use YAML spec
@ 2023-10-10 19:21 Matthieu Baerts
  2023-10-10 19:21 ` [PATCH net-next 1/6] tools: ynl: add uns-admin-perm to genetlink legacy Matthieu Baerts
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Matthieu Baerts @ 2023-10-10 19:21 UTC (permalink / raw)
  To: mptcp, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Mat Martineau
  Cc: netdev, linux-kernel, Davide Caratti, Matthieu Baerts

This series from Davide converts most of the MPTCP Netlink interface
(plus uAPI bits) to use sources generated by YNL using a YAML spec file.

This new YAML file is useful to validate the API and to generate a good
documentation page.

Patch 1 modifies YNL spec to support "uns-admin-perm" for genetlink
legacy.

Patch 2 converts Netlink structures from small_ops to ops to prepare the
switch to YAML.

Patch 3 adds the Netlink YAML spec for MPTCP.

Patch 4 adds and uses a new header file generated from the new YAML
spec.

Patch 5 renames some handlers to match the ones generated from the YAML
spec.

Patch 6 adds and uses Netlink policies automatically generated from the
YAML spec.

Signed-off-by: Matthieu Baerts <matttbe@kernel.org>
---
Davide Caratti (6):
      tools: ynl: add uns-admin-perm to genetlink legacy
      net: mptcp: convert netlink from small_ops to ops
      Documentation: netlink: add a YAML spec for mptcp
      uapi: mptcp: use header file generated from YAML spec
      net: mptcp: rename netlink handlers to mptcp_pm_nl_<blah>_{doit,dumpit}
      net: mptcp: use policy generated by YAML spec

 Documentation/netlink/genetlink-legacy.yaml |   2 +-
 Documentation/netlink/specs/mptcp.yaml      | 394 ++++++++++++++++++++++++++++
 MAINTAINERS                                 |   3 +-
 include/uapi/linux/mptcp.h                  | 174 +-----------
 include/uapi/linux/mptcp_pm.h               | 149 +++++++++++
 net/mptcp/Makefile                          |   3 +-
 net/mptcp/mptcp_pm_gen.c                    | 179 +++++++++++++
 net/mptcp/mptcp_pm_gen.h                    |  58 ++++
 net/mptcp/pm_netlink.c                      | 114 ++------
 net/mptcp/pm_userspace.c                    |   8 +-
 net/mptcp/protocol.h                        |   6 +-
 11 files changed, 816 insertions(+), 274 deletions(-)
---
base-commit: f0107b864f004bc6fa19bf6d5074b4a366f3e16a
change-id: 20231006-upstream-net-next-20231006-mptcp-ynl-0d3c99b1ed79

Best regards,
-- 
Matthieu Baerts <matttbe@kernel.org>


^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH net-next 0/6] mptcp: convert Netlink code to use YAML spec
@ 2023-10-06 14:46 Matthieu Baerts
  2023-10-06 14:46 ` [PATCH net-next 3/6] Documentation: netlink: add a YAML spec for mptcp Matthieu Baerts
  0 siblings, 1 reply; 14+ messages in thread
From: Matthieu Baerts @ 2023-10-06 14:46 UTC (permalink / raw)
  To: mptcp; +Cc: Matthieu Baerts, Davide Caratti, Paolo Abeni

This series from Davide converts most of the MPTCP Netlink interface
(plus uAPI bits) to use sources generated by YNL using a YAML spec file.

This new YAML file is useful to validate the API and to generate a good
documentation page.

Patch 1 modifies YNL spec to support "uns-admin-perm" for genetlink
legacy.

Patch 2 converts Netlink structures from small_ops to ops to prepare the
switch to YAML.

Patch 3 adds the Netlink YAML spec for MPTCP.

Patch 4 adds and uses a new header file generated from the new YAML
spec.

Patch 5 renames some handlers to match the ones generated from the YAML
spec.

Patch 6 adds and uses Netlink policies automatically generated from the
YAML spec.

Signed-off-by: Matthieu Baerts <matttbe@kernel.org>
---
Davide Caratti (6):
      tools: ynl: add uns-admin-perm to genetlink legacy
      net: mptcp: convert netlink from small_ops to ops
      Documentation: netlink: add a YAML spec for mptcp
      uapi: mptcp: use header file generated from YAML spec
      net: mptcp: rename netlink handlers to mptcp_pm_nl_<blah>_{doit,dumpit}
      net: mptcp: use policy generated by YAML spec

 Documentation/netlink/genetlink-legacy.yaml |   2 +-
 Documentation/netlink/specs/mptcp.yaml      | 394 ++++++++++++++++++++++++++++
 MAINTAINERS                                 |   3 +-
 include/uapi/linux/mptcp.h                  | 174 +-----------
 include/uapi/linux/mptcp_pm.h               | 149 +++++++++++
 net/mptcp/Makefile                          |   3 +-
 net/mptcp/mptcp_pm_gen.c                    | 179 +++++++++++++
 net/mptcp/mptcp_pm_gen.h                    |  58 ++++
 net/mptcp/pm_netlink.c                      | 114 ++------
 net/mptcp/pm_userspace.c                    |   8 +-
 net/mptcp/protocol.h                        |   6 +-
 11 files changed, 816 insertions(+), 274 deletions(-)
---
base-commit: 4514aa9f56fd7acf9e4f247bd38c0642e55109f7
change-id: 20231006-upstream-net-next-20231006-mptcp-ynl-0d3c99b1ed79

Best regards,
-- 
Matthieu Baerts <matttbe@kernel.org>


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-10-17  8:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-10 19:21 [PATCH net-next 0/6] mptcp: convert Netlink code to use YAML spec Matthieu Baerts
2023-10-10 19:21 ` [PATCH net-next 1/6] tools: ynl: add uns-admin-perm to genetlink legacy Matthieu Baerts
2023-10-10 19:21 ` [PATCH net-next 2/6] net: mptcp: convert netlink from small_ops to ops Matthieu Baerts
2023-10-10 19:21 ` [PATCH net-next 3/6] Documentation: netlink: add a YAML spec for mptcp Matthieu Baerts
2023-10-11  1:08   ` Jakub Kicinski
2023-10-11 10:13     ` Davide Caratti
2023-10-11 16:22       ` Jakub Kicinski
2023-10-10 19:21 ` [PATCH net-next 4/6] uapi: mptcp: use header file generated from YAML spec Matthieu Baerts
2023-10-13 17:28   ` Simon Horman
2023-10-14 11:37     ` Davide Caratti
2023-10-17  8:58       ` Simon Horman
2023-10-10 19:21 ` [PATCH net-next 5/6] net: mptcp: rename netlink handlers to mptcp_pm_nl_<blah>_{doit,dumpit} Matthieu Baerts
2023-10-10 19:21 ` [PATCH net-next 6/6] net: mptcp: use policy generated by YAML spec Matthieu Baerts
  -- strict thread matches above, loose matches on Subject: below --
2023-10-06 14:46 [PATCH net-next 0/6] mptcp: convert Netlink code to use " Matthieu Baerts
2023-10-06 14:46 ` [PATCH net-next 3/6] Documentation: netlink: add a YAML spec for mptcp Matthieu Baerts

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.