]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: send ADD_ADDR echo before create subflows
authorYonglong Li <liyonglong@chinatelecom.cn>
Thu, 17 Mar 2022 22:14:44 +0000 (15:14 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Mar 2022 21:14:09 +0000 (14:14 -0700)
commitee53e5e26c7f2a5f9fbdcae977ee441bdb370054
treee5211d65a596bf7c92b333a6e3e86b85adc65e0b
parent9d1c7c595d175d107e2a00ce4174b6cd4f85a970
mptcp: send ADD_ADDR echo before create subflows

In some corner cases, the peer handing an incoming ADD_ADDR option, can
receive a retransmitted ADD_ADDR for the same address before the subflow
creation completes.

We can avoid the above issue by generating and sending the ADD_ADDR echo
before starting the MPJ subflow connection.

This slightly changes the behaviour of the packetdrill tests as the
ADD_ADDR echo packet is sent earlier.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Yonglong Li <liyonglong@chinatelecom.cn>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Link: https://lore.kernel.org/r/20220317221444.426335-1-mathew.j.martineau@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_netlink.c