* [PATCH mptcp-next 1/2] Squash-to: "Documentation: netlink: add a YAML spec for mptcp"
@ 2023-10-27 8:33 Davide Caratti
2023-10-27 8:33 ` [PATCH mptcp-next 2/2] Squash-to: "uapi: mptcp: use header file generated from YAML spec" Davide Caratti
2023-10-27 23:27 ` [PATCH mptcp-next 1/2] Squash-to: "Documentation: netlink: add a YAML spec for mptcp" Mat Martineau
0 siblings, 2 replies; 3+ messages in thread
From: Davide Caratti @ 2023-10-27 8:33 UTC (permalink / raw)
To: mptcp; +Cc: matttbe
add cmd-cnt-name and attr-cnt-name to generate _MPTCP_PM_CMD_AFTER_LAST
and __MPTCP_ATTR_AFTER_LAST respectively.
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
---
Documentation/netlink/specs/mptcp.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/netlink/specs/mptcp.yaml b/Documentation/netlink/specs/mptcp.yaml
index ec5c454a87ea..49f90cfb4698 100644
--- a/Documentation/netlink/specs/mptcp.yaml
+++ b/Documentation/netlink/specs/mptcp.yaml
@@ -8,6 +8,7 @@ c-family-name: mptcp-pm-name
c-version-name: mptcp-pm-ver
max-by-define: true
kernel-policy: per-op
+cmd-cnt-name: --mptcp-pm-cmd-after-last
definitions:
-
@@ -167,6 +168,7 @@ attribute-sets:
-
name: attr
name-prefix: mptcp-pm-attr-
+ attr-cnt-name: --mptcp-attr-after-last
attributes:
-
name: unspec
--
2.41.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH mptcp-next 2/2] Squash-to: "uapi: mptcp: use header file generated from YAML spec"
2023-10-27 8:33 [PATCH mptcp-next 1/2] Squash-to: "Documentation: netlink: add a YAML spec for mptcp" Davide Caratti
@ 2023-10-27 8:33 ` Davide Caratti
2023-10-27 23:27 ` [PATCH mptcp-next 1/2] Squash-to: "Documentation: netlink: add a YAML spec for mptcp" Mat Martineau
1 sibling, 0 replies; 3+ messages in thread
From: Davide Caratti @ 2023-10-27 8:33 UTC (permalink / raw)
To: mptcp; +Cc: matttbe
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
---
include/uapi/linux/mptcp.h | 4 ----
include/uapi/linux/mptcp_pm.h | 8 ++++----
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/include/uapi/linux/mptcp.h b/include/uapi/linux/mptcp.h
index 64ecc8a3f9f2..a6451561f3f8 100644
--- a/include/uapi/linux/mptcp.h
+++ b/include/uapi/linux/mptcp.h
@@ -28,10 +28,6 @@
#include <linux/mptcp_pm.h>
-/* for backward compatibility */
-#define __MPTCP_PM_CMD_AFTER_LAST __MPTCP_PM_CMD_MAX
-#define __MPTCP_ATTR_AFTER_LAST __MPTCP_ATTR_MAX
-
#define MPTCP_INFO_FLAG_FALLBACK _BITUL(0)
#define MPTCP_INFO_FLAG_REMOTE_KEY_RECEIVED _BITUL(1)
diff --git a/include/uapi/linux/mptcp_pm.h b/include/uapi/linux/mptcp_pm.h
index 0ad598fe940b..b5d11aece408 100644
--- a/include/uapi/linux/mptcp_pm.h
+++ b/include/uapi/linux/mptcp_pm.h
@@ -100,9 +100,9 @@ enum {
MPTCP_PM_ATTR_LOC_ID,
MPTCP_PM_ATTR_ADDR_REMOTE,
- __MPTCP_PM_ATTR_MAX
+ __MPTCP_ATTR_AFTER_LAST
};
-#define MPTCP_PM_ATTR_MAX (__MPTCP_PM_ATTR_MAX - 1)
+#define MPTCP_PM_ATTR_MAX (__MPTCP_ATTR_AFTER_LAST - 1)
enum mptcp_event_attr {
MPTCP_ATTR_UNSPEC,
@@ -143,8 +143,8 @@ enum {
MPTCP_PM_CMD_SUBFLOW_CREATE,
MPTCP_PM_CMD_SUBFLOW_DESTROY,
- __MPTCP_PM_CMD_MAX
+ __MPTCP_PM_CMD_AFTER_LAST
};
-#define MPTCP_PM_CMD_MAX (__MPTCP_PM_CMD_MAX - 1)
+#define MPTCP_PM_CMD_MAX (__MPTCP_PM_CMD_AFTER_LAST - 1)
#endif /* _UAPI_LINUX_MPTCP_PM_H */
--
2.41.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH mptcp-next 1/2] Squash-to: "Documentation: netlink: add a YAML spec for mptcp"
2023-10-27 8:33 [PATCH mptcp-next 1/2] Squash-to: "Documentation: netlink: add a YAML spec for mptcp" Davide Caratti
2023-10-27 8:33 ` [PATCH mptcp-next 2/2] Squash-to: "uapi: mptcp: use header file generated from YAML spec" Davide Caratti
@ 2023-10-27 23:27 ` Mat Martineau
1 sibling, 0 replies; 3+ messages in thread
From: Mat Martineau @ 2023-10-27 23:27 UTC (permalink / raw)
To: Davide Caratti; +Cc: mptcp, matttbe
On Fri, 27 Oct 2023, Davide Caratti wrote:
> add cmd-cnt-name and attr-cnt-name to generate _MPTCP_PM_CMD_AFTER_LAST
> and __MPTCP_ATTR_AFTER_LAST respectively.
>
> Signed-off-by: Davide Caratti <dcaratti@redhat.com>
> ---
> Documentation/netlink/specs/mptcp.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
Hi Davide -
Thanks for sending these directly to netdev, I see that the changes are
already merged:
https://lore.kernel.org/netdev/12d4ed0116d8883cf4b533b856f3125a34e56749.1698415310.git.dcaratti@redhat.com/
- Mat
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-27 23:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-27 8:33 [PATCH mptcp-next 1/2] Squash-to: "Documentation: netlink: add a YAML spec for mptcp" Davide Caratti
2023-10-27 8:33 ` [PATCH mptcp-next 2/2] Squash-to: "uapi: mptcp: use header file generated from YAML spec" Davide Caratti
2023-10-27 23:27 ` [PATCH mptcp-next 1/2] Squash-to: "Documentation: netlink: add a YAML spec for mptcp" Mat Martineau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox