Skip to content

Commit

Permalink
mptcp: add last time fields in mptcp_info
Browse files Browse the repository at this point in the history
Similar to tcpi_last_data_sent, tcpi_last_data_recv and tcpi_last_ack_recv
exposed with TCP, this patch exposes the last time "an action happened" for
MPTCP in mptcp_info, named mptcpi_last_data_sent, mptcpi_last_data_recv and
mptcpi_last_ack_recv, calculated In mptcp_diag_fill_info() as the time
deltas between now and the newly added last time fields in mptcp_sock.

Closes: multipath-tcp#446
Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
Geliang Tang committed Mar 22, 2024
1 parent deebbbd commit 21517f2
Show file tree
Hide file tree
Showing 4 changed files with 527 additions and 79 deletions.
79 changes: 0 additions & 79 deletions include/memory/renesas-rpc-if.h

This file was deleted.

3 changes: 3 additions & 0 deletions include/uapi/linux/mptcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ struct mptcp_info {
__u64 mptcpi_bytes_received;
__u64 mptcpi_bytes_acked;
__u8 mptcpi_subflows_total;
__u32 mptcpi_last_data_sent;
__u32 mptcpi_last_data_recv;
__u32 mptcpi_last_ack_recv;
};

/* MPTCP Reset reason codes, rfc8684 */
Expand Down
Loading

0 comments on commit 21517f2

Please sign in to comment.