All of lore.kernel.org
 help / color / mirror / Atom feed
From: Davide Caratti <dcaratti@redhat.com>
To: Matthieu Baerts <matthieu.baerts@tessares.net>, pabeni@redhat.com
Cc: mptcp@lists.linux.dev
Subject: [PATCH mptcp-next 0/5] convert MPTCP to use YAML spec
Date: Fri, 21 Jul 2023 11:53:31 +0200	[thread overview]
Message-ID: <cover.1689932012.git.dcaratti@redhat.com> (raw)

this series converts most of the MPTCP netlink interface (plus uAPI bits)
to use sources generated by a YAML spec file. Patch 2/5 and 5/5 have been
individually verified with kselftests.

POC:

 $ sudo  ./tools/net/ynl/cli.py  --spec \
 > Documentation/netlink/specs/mptcp.yaml --do add_addr \
 > --json '{"addr": {"addr4": 16909061, "family": 2, "flags": 4, "id": 10, "port": 0}}'

 $ ip -j mptcp endpoint show  id 10
 [{"address":"1.2.3.5","id":10,"backup":true}]


Davide Caratti (5):
  tools: ynl: add uns-admin-perm to genetlink legacy
  mptcp: convert netlink from small_ops to ops
  Documentation: netlink: add a YAML spec for mptcp
  mptcp: uapi: use header file generated from YAML spec
  net: mptcp: use policy generated by YAML spec

 Documentation/netlink/genetlink-legacy.yaml |   2 +-
 Documentation/netlink/specs/mptcp.yaml      | 397 ++++++++++++++++++++
 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                      | 134 ++-----
 net/mptcp/pm_userspace.c                    |  13 +-
 net/mptcp/protocol.h                        |   4 +-
 10 files changed, 836 insertions(+), 277 deletions(-)
 create mode 100644 Documentation/netlink/specs/mptcp.yaml
 create mode 100644 include/uapi/linux/mptcp_pm.h
 create mode 100644 net/mptcp/mptcp_pm_gen.c
 create mode 100644 net/mptcp/mptcp_pm_gen.h

-- 
2.40.1


             reply	other threads:[~2023-07-21  9:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-21  9:53 Davide Caratti [this message]
2023-07-21  9:53 ` [PATCH mptcp-next 1/5] tools: ynl: add uns-admin-perm to genetlink legacy Davide Caratti
2023-07-21  9:53 ` [PATCH mptcp-next 2/5] mptcp: convert netlink from small_ops to ops Davide Caratti
2023-07-21 15:34   ` Paolo Abeni
2023-07-21  9:53 ` [PATCH mptcp-next 3/5] Documentation: netlink: add a YAML spec for mptcp Davide Caratti
2023-07-21 15:41   ` Paolo Abeni
2023-07-21  9:53 ` [PATCH mptcp-next 4/5] mptcp: uapi: use header file generated from YAML spec Davide Caratti
2023-07-21  9:53 ` [PATCH mptcp-next 5/5] net: mptcp: use policy generated by " Davide Caratti
2023-07-21 10:16   ` net: mptcp: use policy generated by YAML spec: Build Failure MPTCP CI
2023-07-21 11:18   ` net: mptcp: use policy generated by YAML spec: Tests Results MPTCP CI
2023-07-21 15:46   ` [PATCH mptcp-next 5/5] net: mptcp: use policy generated by YAML spec Paolo Abeni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1689932012.git.dcaratti@redhat.com \
    --to=dcaratti@redhat.com \
    --cc=matthieu.baerts@tessares.net \
    --cc=mptcp@lists.linux.dev \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.