Skip to content

Commit 7eafe67

Browse files
committed
include: update MPTCP upstream headers
Some new defines related to MPTCP_INFO and EV flags, and switch to _BITUL(). Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
1 parent 1de9138 commit 7eafe67

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

include/linux/mptcp_upstream.h

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,34 @@
3434
#define MPTCP_PM_EV_FLAG_DENY_JOIN_ID0 _BITUL(0)
3535
#define MPTCP_PM_EV_FLAG_SERVER_SIDE _BITUL(1)
3636

37-
#define MPTCP_PM_ADDR_FLAG_SIGNAL (1 << 0)
38-
#define MPTCP_PM_ADDR_FLAG_SUBFLOW (1 << 1)
39-
#define MPTCP_PM_ADDR_FLAG_BACKUP (1 << 2)
40-
#define MPTCP_PM_ADDR_FLAG_FULLMESH (1 << 3)
41-
#define MPTCP_PM_ADDR_FLAG_IMPLICIT (1 << 4)
37+
#define MPTCP_PM_ADDR_FLAG_SIGNAL _BITUL(0)
38+
#define MPTCP_PM_ADDR_FLAG_SUBFLOW _BITUL(1)
39+
#define MPTCP_PM_ADDR_FLAG_BACKUP _BITUL(2)
40+
#define MPTCP_PM_ADDR_FLAG_FULLMESH _BITUL(3)
41+
#define MPTCP_PM_ADDR_FLAG_IMPLICIT _BITUL(4)
4242

4343
struct mptcp_info {
4444
__u8 mptcpi_subflows;
45+
#define mptcpi_extra_subflows mptcpi_subflows
4546
__u8 mptcpi_add_addr_signal;
4647
__u8 mptcpi_add_addr_accepted;
4748
__u8 mptcpi_subflows_max;
49+
#define mptcpi_limit_extra_subflows mptcpi_subflows_max
4850
__u8 mptcpi_add_addr_signal_max;
51+
#define mptcpi_endp_signal_max mptcpi_add_addr_signal_max
4952
__u8 mptcpi_add_addr_accepted_max;
53+
#define mptcpi_limit_add_addr_accepted mptcpi_add_addr_accepted_max
54+
/* 16-bit hole that can no longer be filled */
5055
__u32 mptcpi_flags;
5156
__u32 mptcpi_token;
5257
__u64 mptcpi_write_seq;
5358
__u64 mptcpi_snd_una;
5459
__u64 mptcpi_rcv_nxt;
5560
__u8 mptcpi_local_addr_used;
5661
__u8 mptcpi_local_addr_max;
62+
#define mptcpi_endp_subflow_max mptcpi_local_addr_max
5763
__u8 mptcpi_csum_enabled;
64+
/* 8-bit hole that can no longer be filled */
5865
__u32 mptcpi_retransmits;
5966
__u64 mptcpi_bytes_retrans;
6067
__u64 mptcpi_bytes_sent;

0 commit comments

Comments
 (0)