]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: token: move retry to caller
authorFlorian Westphal <fw@strlen.de>
Thu, 30 Jul 2020 19:25:51 +0000 (21:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 23:55:32 +0000 (16:55 -0700)
commit8617fb021948f758292b40930b185cf6628ff697
tree600749f9200f86e9ba72ffb2063b48dc32a5e4a7
parente13aeb61fd4c2ffa067d51c99c74b669ef622f21
mptcp: token: move retry to caller

Once syncookie support is added, no state will be stored anymore when the
syn/ack is generated in syncookie mode.

When the ACK comes back, the generated key will be taken from the TCP ACK,
the token is re-generated and inserted into the token tree.

This means we can't retry with a new key when the token is already taken
in the syncookie case.

Therefore, move the retry logic to the caller to prepare for syncookie
support in mptcp.

Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/subflow.c
net/mptcp/token.c