]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mptcp: use _BITUL() instead of (1 << x)
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Fri, 19 Sep 2025 12:09:02 +0000 (14:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 22 Sep 2025 18:51:25 +0000 (11:51 -0700)
Simply to use the proper way to declare bits, and to align with all
other flags declared in this file.

No functional changes intended.

Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250919-net-next-mptcp-server-side-flag-v1-5-a97a5d561a8b@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/mptcp.h

index 95d621f6d59810126cbc37b1d6baf896a40dd9bc..15eef878690b8556af21be8d959b6a2c9fe617d3 100644 (file)
 #define MPTCP_PM_EV_FLAG_DENY_JOIN_ID0         _BITUL(0)
 #define MPTCP_PM_EV_FLAG_SERVER_SIDE           _BITUL(1)
 
-#define MPTCP_PM_ADDR_FLAG_SIGNAL                      (1 << 0)
-#define MPTCP_PM_ADDR_FLAG_SUBFLOW                     (1 << 1)
-#define MPTCP_PM_ADDR_FLAG_BACKUP                      (1 << 2)
-#define MPTCP_PM_ADDR_FLAG_FULLMESH                    (1 << 3)
-#define MPTCP_PM_ADDR_FLAG_IMPLICIT                    (1 << 4)
+#define MPTCP_PM_ADDR_FLAG_SIGNAL              _BITUL(0)
+#define MPTCP_PM_ADDR_FLAG_SUBFLOW             _BITUL(1)
+#define MPTCP_PM_ADDR_FLAG_BACKUP              _BITUL(2)
+#define MPTCP_PM_ADDR_FLAG_FULLMESH            _BITUL(3)
+#define MPTCP_PM_ADDR_FLAG_IMPLICIT            _BITUL(4)
 
 struct mptcp_info {
        __u8    mptcpi_subflows;