diff options
| author | Geliang Tang <[email protected]> | 2021-04-16 22:38:06 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-04-17 00:10:40 +0000 |
| commit | ed66bfb4ce34a94174bb755eeaca85d1661d36ad (patch) | |
| tree | 6b45ac5d605eeea25b9557c47b32748882286946 /net/mptcp/options.c | |
| parent | mptcp: add tracepoint in get_mapping_status (diff) | |
| download | kernel-ed66bfb4ce34a94174bb755eeaca85d1661d36ad.tar.gz kernel-ed66bfb4ce34a94174bb755eeaca85d1661d36ad.zip | |
mptcp: add tracepoint in ack_update_msk
This patch added a tracepoint in ack_update_msk() to track the
incoming data_ack and window/snd_una updates.
Suggested-by: Paolo Abeni <[email protected]>
Acked-by: Paolo Abeni <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/mptcp/options.c')
| -rw-r--r-- | net/mptcp/options.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mptcp/options.c b/net/mptcp/options.c index d51c3ad54d9a..99fc21406168 100644 --- a/net/mptcp/options.c +++ b/net/mptcp/options.c @@ -13,6 +13,8 @@ #include "protocol.h" #include "mib.h" +#include <trace/events/mptcp.h> + static bool mptcp_cap_flag_sha256(u8 flags) { return (flags & MPTCP_CAP_FLAG_MASK) == MPTCP_CAP_HMAC_SHA256; @@ -943,6 +945,10 @@ static void ack_update_msk(struct mptcp_sock *msk, __mptcp_data_acked(sk); } mptcp_data_unlock(sk); + + trace_ack_update_msk(mp_opt->data_ack, + old_snd_una, new_snd_una, + new_wnd_end, msk->wnd_end); } bool mptcp_update_rcv_data_fin(struct mptcp_sock *msk, u64 data_fin_seq, bool use_64bit) |
