OSDN Git Service

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)
commit535fb8152f313dd5d30ef84ce55b01ad9cbae3cf
tree600749f9200f86e9ba72ffb2063b48dc32a5e4a7
parentf8ace8d915b88bd1bbaac695de94650dbb25c7b4
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