]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: using TOKEN_MAX_RETRIES instead of magic number
authorJianguo Wu <wujianguo@chinatelecom.cn>
Thu, 27 May 2021 23:54:25 +0000 (16:54 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 May 2021 20:59:15 +0000 (13:59 -0700)
commitaa76835e76f1edfed0626bcbcc5ef4b6d0dcc80e
treee7da16242533e06863778ed7ab8122e812413742
parente4e0d40362d479a30b2998abebf1087b49001888
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: 8617fb021948 ("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>
net/mptcp/protocol.h
net/mptcp/subflow.c
net/mptcp/token.c