]> 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)
commitb0c38a72bd9ae5bf0b73dac0c9434ce1618c3343
tree600749f9200f86e9ba72ffb2063b48dc32a5e4a7
parent9a73e342218c63db60b943fd7b93eaec3c955ced
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