diff options
author | Jianguo Wu <wujianguo@chinatelecom.cn> | 2021-05-28 02:54:25 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-05-28 23:59:15 +0300 |
commit | c68a0cd1735fe09fa7c1a7de1f11a5b674f1c549 (patch) | |
tree | e7da16242533e06863778ed7ab8122e812413742 /net/mptcp/subflow.c | |
parent | 2f1af441fd5dd5caf0807bb19ce9bbf9325ce534 (diff) | |
download | linux-c68a0cd1735fe09fa7c1a7de1f11a5b674f1c549.tar.xz |
mptcp: using TOKEN_MAX_RETRIES instead of magic number
We have macro TOKEN_MAX_RETRIES for the number of token generate retries,
so using TOKEN_MAX_RETRIES in subflow_check_req().
And rename TOKEN_MAX_RETRIES to MPTCP_TOKEN_MAX_RETRIES as it is now
exposed.
Fixes: 535fb8152f31 ("mptcp: token: move retry to caller")
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jianguo Wu <wujianguo@chinatelecom.cn>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp/subflow.c')
-rw-r--r-- | net/mptcp/subflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index bde6be77ea73..a50a97908866 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -162,7 +162,7 @@ static int subflow_check_req(struct request_sock *req, } if (mp_opt.mp_capable && listener->request_mptcp) { - int err, retries = 4; + int err, retries = MPTCP_TOKEN_MAX_RETRIES; subflow_req->ssn_offset = TCP_SKB_CB(skb)->seq; again: |