]> 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)
commite535e1edf29952db2b0f8fa985b5b46a99665ad9
treee5211d65a596bf7c92b333a6e3e86b85adc65e0b
parentdaaaaefa01d703a3a8ba8a3e98adcad2b7317ad1
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