diff mbox series

squashto: mptcp: allow dumping subflow context to userspace

Message ID 20200327195817.122912-1-mathew.j.martineau@linux.intel.com
State Accepted, archived
Delegated to: Matthieu Baerts
Headers show
Series squashto: mptcp: allow dumping subflow context to userspace | expand

Commit Message

Mat Martineau March 27, 2020, 7:58 p.m. UTC
Use bit macros appropriate for userspace.

Suggested-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
---
 include/uapi/linux/mptcp.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Comments

Matthieu Baerts March 27, 2020, 9:07 p.m. UTC | #1
Hi Mat, Davide,

On 27/03/2020 20:58, Mat Martineau wrote:
> 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
diff mbox series

Patch

diff --git a/include/uapi/linux/mptcp.h b/include/uapi/linux/mptcp.h
index c564140d20f0..8acc78b7ca7c 100644
--- a/include/uapi/linux/mptcp.h
+++ b/include/uapi/linux/mptcp.h
@@ -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,