From: Davide Caratti <dcaratti@redhat.com>
To: mptcp@lists.linux.dev
Subject: [PATCH RFC mptcp-net-next 0/5] YAML template for MPTCP netlink API
Date: Thu, 6 Apr 2023 19:31:54 +0200 [thread overview]
Message-ID: <cover.1680801697.git.dcaratti@redhat.com> (raw)
Related: #377
Notes:
- the attributes in the operation list is not really good, we probably
need to specify better what parameters are used in the .doit() function
(though the generated code is the same). Specifying 'remote_addr'
either in 'request' or in 'reply' would probably make patch 2/5 useless.
- I didn't add the multicast groups on purpose. ynl-c.py is not able to
generate the operation list for genetlink-legacy, so all this part
(including multicast groups) needs to be left unspecified in the
template.
Davide Caratti (5):
tools: ynl: add uns-admin-perm to genetlink legacy
tools: ynl: fix bug in case of multiple nested attributes of the same
type
Documentation: netlink: add a YAML spec for mptcp
mptcp: uapi: add header files generated from YAML spec
net/mptcp: use netlink policy generated from YAML spec
Documentation/netlink/genetlink-legacy.yaml | 2 +-
Documentation/netlink/specs/mptcp.yaml | 361 ++++++++++++++++++++
include/uapi/linux/mptcp.h | 167 +--------
include/uapi/linux/mptcp_pm.h | 145 ++++++++
net/mptcp/Makefile | 3 +-
net/mptcp/pm_netlink.c | 107 +-----
net/mptcp/pm_nl.c | 91 +++++
net/mptcp/pm_nl.h | 39 +++
net/mptcp/pm_userspace.c | 9 +-
net/mptcp/protocol.h | 6 +-
tools/net/ynl/ynl-gen-c.py | 3 +-
11 files changed, 665 insertions(+), 268 deletions(-)
create mode 100644 Documentation/netlink/specs/mptcp.yaml
create mode 100644 include/uapi/linux/mptcp_pm.h
create mode 100644 net/mptcp/pm_nl.c
create mode 100644 net/mptcp/pm_nl.h
--
2.39.2
WARNING: multiple messages have this Message-ID (diff)
From: Davide Caratti <dcaratti@redhat.com>
To: mptcp@lists.linux.dev
Subject: [PATCH RFC mptcp-net-next 0/5] YAML template for MPTCP netlink API
Date: Thu, 6 Apr 2023 19:32:00 +0200 [thread overview]
Message-ID: <cover.1680801697.git.dcaratti@redhat.com> (raw)
Message-ID: <20230406173200.r2OSSyB4-lMtah_kMK84OINZM04dBR-CZRCq5p_-O48@z> (raw)
Related: #377
Notes:
- the attributes in the operation list is not really good, we probably
need to specify better what parameters are used in the .doit() function
(though the generated code is the same). Specifying 'remote_addr'
either in 'request' or in 'reply' would probably make patch 2/5 useless.
- I didn't add the multicast groups on purpose. ynl-c.py is not able to
generate the operation list for genetlink-legacy, so all this part
(including multicast groups) needs to be left unspecified in the
template.
Davide Caratti (5):
tools: ynl: add uns-admin-perm to genetlink legacy
tools: ynl: fix bug in case of multiple nested attributes of the same
type
Documentation: netlink: add a YAML spec for mptcp
mptcp: uapi: add header files generated from YAML spec
net/mptcp: use netlink policy generated from YAML spec
Documentation/netlink/genetlink-legacy.yaml | 2 +-
Documentation/netlink/specs/mptcp.yaml | 361 ++++++++++++++++++++
include/uapi/linux/mptcp.h | 167 +--------
include/uapi/linux/mptcp_pm.h | 145 ++++++++
net/mptcp/Makefile | 3 +-
net/mptcp/pm_netlink.c | 107 +-----
net/mptcp/pm_nl.c | 91 +++++
net/mptcp/pm_nl.h | 39 +++
net/mptcp/pm_userspace.c | 9 +-
net/mptcp/protocol.h | 6 +-
tools/net/ynl/ynl-gen-c.py | 3 +-
11 files changed, 665 insertions(+), 268 deletions(-)
create mode 100644 Documentation/netlink/specs/mptcp.yaml
create mode 100644 include/uapi/linux/mptcp_pm.h
create mode 100644 net/mptcp/pm_nl.c
create mode 100644 net/mptcp/pm_nl.h
--
2.39.2
next reply other threads:[~2023-04-06 17:32 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-06 17:31 Davide Caratti [this message]
2023-04-06 17:32 ` [PATCH RFC mptcp-net-next 0/5] YAML template for MPTCP netlink API Davide Caratti
2023-04-06 17:31 ` [PATCH RFC mptcp-net-next 1/5] tools: ynl: add uns-admin-perm to genetlink legacy Davide Caratti
2023-04-06 17:32 ` Davide Caratti
2023-04-06 17:31 ` [PATCH RFC mptcp-net-next 2/5] tools: ynl: fix bug in case of multiple nested attributes of the same type Davide Caratti
2023-04-06 17:32 ` Davide Caratti
2023-04-07 8:00 ` Paolo Abeni
2023-04-07 8:53 ` Davide Caratti
2023-07-18 14:46 ` Davide Caratti
2023-04-06 17:31 ` [PATCH RFC mptcp-net-next 3/5] Documentation: netlink: add a YAML spec for mptcp Davide Caratti
2023-04-06 17:32 ` Davide Caratti
2023-04-07 7:56 ` Paolo Abeni
2023-04-07 9:52 ` Davide Caratti
2023-04-06 17:31 ` [PATCH RFC mptcp-net-next 4/5] mptcp: uapi: add header files generated from YAML spec Davide Caratti
2023-04-06 17:32 ` Davide Caratti
2023-04-06 17:31 ` [PATCH RFC mptcp-net-next 5/5] net/mptcp: use netlink policy " Davide Caratti
2023-04-06 17:31 ` Davide Caratti
2023-04-06 17:32 ` Davide Caratti
2023-04-07 8:03 ` Paolo Abeni
2023-04-06 18:32 ` net/mptcp: use netlink policy generated from YAML spec: Build Failure MPTCP CI
2023-04-06 18:39 ` net/mptcp: use netlink policy generated from YAML spec: Tests Results MPTCP CI
2023-04-07 9:58 ` net/mptcp: use netlink policy generated from YAML spec: Build Failure MPTCP CI
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.1680801697.git.dcaratti@redhat.com \
--to=dcaratti@redhat.com \
--cc=mptcp@lists.linux.dev \
/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.