History

mptcp: pm: in-kernel: record fullmesh endp nb

Instead of iterating over all endpoints, under RCU read lock, just to check if one of them as the fullmesh flag, we can keep a counter of fullmesh endpoint, similar to what is done with the other flags. This counter is now checked, before iterating over all endpoints. Similar to the other counters, this new one is also exposed. A userspace app can then know when it is being used in a fullmesh mode, with potentially (too) many subflows.

Matthieu Baerts (NGI0) committed 1 year ago

Commit f88191c1 parent b117bef4 files · +40 −4Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/mptcp.h+2−1
@@ -70,7 +70,8 @@ struct mptcp_info { · 69 unmodified lines
7070 __u64 mptcpi_bytes_acked;
7171 __u8 mptcpi_subflows_total;
7272 __u8 mptcpi_endp_laminar_max;
73− __u8 reserved[2];
73+ __u8 mptcpi_endp_fullmesh_max;
74+ __u8 reserved;
7475 __u32 mptcpi_last_data_sent;
7576 __u32 mptcpi_last_data_recv;
7677 __u32 mptcpi_last_ack_recv;

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