diff options
| author | Paolo Abeni <[email protected]> | 2022-05-04 21:54:08 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-05-06 02:00:16 +0000 |
| commit | 38acb6260f60a7698c3a24db4df6ec1cf8f14c60 (patch) | |
| tree | 580059ce70376365ab585f2a7c2f3f7dfd8db6dc /net/mptcp/options.c | |
| parent | mptcp: never shrink offered window (diff) | |
| download | kernel-38acb6260f60a7698c3a24db4df6ec1cf8f14c60.tar.gz kernel-38acb6260f60a7698c3a24db4df6ec1cf8f14c60.zip | |
mptcp: add more offered MIBs counter
Track the exceptional handling of MPTCP-level offered window
with a few more counters for observability.
Signed-off-by: Paolo Abeni <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/mptcp/options.c')
| -rw-r--r-- | net/mptcp/options.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/mptcp/options.c b/net/mptcp/options.c index 3e3156cfe813..ac3b7b8a02f6 100644 --- a/net/mptcp/options.c +++ b/net/mptcp/options.c @@ -1248,8 +1248,11 @@ static void mptcp_set_rwin(struct tcp_sock *tp, struct tcphdr *th) if (rcv_wnd == rcv_wnd_old) break; - if (before64(rcv_wnd_new, rcv_wnd)) + if (before64(rcv_wnd_new, rcv_wnd)) { + MPTCP_INC_STATS(sock_net(ssk), MPTCP_MIB_RCVWNDCONFLICTUPDATE); goto raise_win; + } + MPTCP_INC_STATS(sock_net(ssk), MPTCP_MIB_RCVWNDCONFLICT); rcv_wnd_old = rcv_wnd; } return; @@ -1275,6 +1278,7 @@ raise_win: /* RFC1323 scaling applied */ new_win >>= tp->rx_opt.rcv_wscale; th->window = htons(new_win); + MPTCP_INC_STATS(sock_net(ssk), MPTCP_MIB_RCVWNDSHARED); } } |
