diff options
author | Paolo Abeni <pabeni@redhat.com> | 2021-04-02 02:19:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-03 00:21:50 +0300 |
commit | a16195e35cd013fc10023e79640bb1612e5d4457 (patch) | |
tree | eb0136a268f71fe9c08997ca4af53fef2db48ffc /net/mptcp/subflow.c | |
parent | f3f409a9b7f5bb3619d648b9b4ba3df4c7723da8 (diff) | |
download | linux-a16195e35cd013fc10023e79640bb1612e5d4457.tar.xz |
mptcp: add mib for token creation fallback
If the MPTCP protocol is unable to create a new token,
the socket fallback to plain TCP, let's keep track
of such events via a specific MIB.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/subflow.c')
-rw-r--r-- | net/mptcp/subflow.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index 6c074d3db0ed..b96e8dc01f08 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -165,6 +165,7 @@ again: if (mptcp_token_exists(subflow_req->token)) { if (retries-- > 0) goto again; + SUBFLOW_REQ_INC_STATS(req, MPTCP_MIB_TOKENFALLBACKINIT); } else { subflow_req->mp_capable = 1; } @@ -176,6 +177,8 @@ again: subflow_req->mp_capable = 1; else if (retries-- > 0) goto again; + else + SUBFLOW_REQ_INC_STATS(req, MPTCP_MIB_TOKENFALLBACKINIT); } else if (mp_opt.mp_join && listener->request_mptcp) { subflow_req->ssn_offset = TCP_SKB_CB(skb)->seq; |