Skip to contentSkip to conversation

squashto: mptcp: allow dumping subflow context to userspace

PATCH In review Mat Martineau 2 participants 2 messages Mar 27, 2020 Networking MPTCP

lore
Share & tools
lore

Mat Martineau

author
#0 lore raw

PATCH 1/1 squashto: mptcp: allow dumping subflow context to userspace

Use bit macros appropriate for userspace.

Suggested-by Davide Caratti <dcaratti(a)redhat.com>
Signed-off-by Mat Martineau <mathew.j.martineau(a)linux.intel.com>
---
 include/uapi/linux/mptcp.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
include/uapi/linux/mptcp.h +9 -9
index c564140d20f0..8acc78b7ca7c 100644
@@ -4,15 +4,15 @@
 
 #include <linux/types.h>
 
-#define MPTCP_SUBFLOW_FLAG_MCAP_REM		BIT(0)
-#define MPTCP_SUBFLOW_FLAG_MCAP_LOC		BIT(1)
-#define MPTCP_SUBFLOW_FLAG_JOIN_REM		BIT(2)
-#define MPTCP_SUBFLOW_FLAG_JOIN_LOC		BIT(3)
-#define MPTCP_SUBFLOW_FLAG_BKUP_REM		BIT(4)
-#define MPTCP_SUBFLOW_FLAG_BKUP_LOC		BIT(5)
-#define MPTCP_SUBFLOW_FLAG_FULLY_ESTABLISHED	BIT(6)
-#define MPTCP_SUBFLOW_FLAG_CONNECTED		BIT(7)
-#define MPTCP_SUBFLOW_FLAG_MAPVALID		BIT(8)
+#define MPTCP_SUBFLOW_FLAG_MCAP_REM		_BITUL(0)
+#define MPTCP_SUBFLOW_FLAG_MCAP_LOC		_BITUL(1)
+#define MPTCP_SUBFLOW_FLAG_JOIN_REM		_BITUL(2)
+#define MPTCP_SUBFLOW_FLAG_JOIN_LOC		_BITUL(3)
+#define MPTCP_SUBFLOW_FLAG_BKUP_REM		_BITUL(4)
+#define MPTCP_SUBFLOW_FLAG_BKUP_LOC		_BITUL(5)
+#define MPTCP_SUBFLOW_FLAG_FULLY_ESTABLISHED	_BITUL(6)
+#define MPTCP_SUBFLOW_FLAG_CONNECTED		_BITUL(7)
+#define MPTCP_SUBFLOW_FLAG_MAPVALID		_BITUL(8)
 
 enum {
 	MPTCP_SUBFLOW_ATTR_UNSPEC,
Signature · 1 line
2.26.0
#1 lore raw

Hi Mat, Davide,

Quoted 1 line · Mat Martineau

Use bit macros appropriate for userspace.

Thank you for the patch and good catch for the missing bits!

- 9c766e8ddcec: "squashed" in "mptcp: allow dumping subflow context to userspace"
- c32f026cdf86..9fd2aa240f88: result
- 0a22c57a4750: topmsg: add changelog

- 0ca910a55213: mptcp:uapi: add missing import for _BITUL
- 9fd2aa240f88..b753d266aaa6: result

Test + export are in progress.

Cheers,
Matt

Signature · 5 lines
Matthieu Baerts | R&D Engineer
matthieu.baerts(a)tessares.net
Tessares SA | Hybrid Access Solutions
www.tessares.net
1 Avenue Jean Monnet, 1348 Louvain-la-Neuve, Belgium