History

doc/netlink: Update schema to support cmd-cnt-name and cmd-max-name

allow specifying cmd-cnt-name and cmd-max-name in netlink specs, in accordance with Documentation/userspace-api/netlink/c-code-gen.rst. Use cmd-cnt-name and attr-cnt-name in the mptcp yaml spec and in the corresponding uAPI headers, to preserve the #defines we had in the past and avoid adding new ones. v2: - squash modification in mptcp.yaml and MPTCP uAPI headers

Davide Caratti committed 3 years ago

Commit 6479c971 parent d96e48a6 files · +24 −8Browse files

Showing the changes to include/uapi (2 of 6 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/mptcp.h +0 −4
  2. include/uapi/linux/mptcp_pm.h +4 −4
include/uapi/linux/mptcp.h+0−4
@@ -28,10 +28,6 @@ · 27 unmodified lines
2828
2929 #include <linux/mptcp_pm.h>
3030
31−/* for backward compatibility */
32−#define __MPTCP_PM_CMD_AFTER_LAST __MPTCP_PM_CMD_MAX
33−#define __MPTCP_ATTR_AFTER_LAST __MPTCP_ATTR_MAX
34−
3531 #define MPTCP_INFO_FLAG_FALLBACK _BITUL(0)
3632 #define MPTCP_INFO_FLAG_REMOTE_KEY_RECEIVED _BITUL(1)
3733
include/uapi/linux/mptcp_pm.h+4−4
@@ -100,9 +100,9 @@ enum { · 99 unmodified lines
100100 MPTCP_PM_ATTR_LOC_ID,
101101 MPTCP_PM_ATTR_ADDR_REMOTE,
102102
103− __MPTCP_PM_ATTR_MAX
103+ __MPTCP_ATTR_AFTER_LAST
104104 };
105−#define MPTCP_PM_ATTR_MAX (__MPTCP_PM_ATTR_MAX - 1)
105+#define MPTCP_PM_ATTR_MAX (__MPTCP_ATTR_AFTER_LAST - 1)
106106
107107 enum mptcp_event_attr {
108108 MPTCP_ATTR_UNSPEC,
@@ -143,8 +143,8 @@ enum { · 34 unmodified lines
143143 MPTCP_PM_CMD_SUBFLOW_CREATE,
144144 MPTCP_PM_CMD_SUBFLOW_DESTROY,
145145
146− __MPTCP_PM_CMD_MAX
146+ __MPTCP_PM_CMD_AFTER_LAST
147147 };
148−#define MPTCP_PM_CMD_MAX (__MPTCP_PM_CMD_MAX - 1)
148+#define MPTCP_PM_CMD_MAX (__MPTCP_PM_CMD_AFTER_LAST - 1)
149149
150150 #endif /* _UAPI_LINUX_MPTCP_PM_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t