Merge branch 'mptcp-refactor'
authorDavid S. Miller <davem@davemloft.net>
Tue, 24 Aug 2021 08:28:29 +0000 (09:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Aug 2021 08:28:29 +0000 (09:28 +0100)
commit0384dd9d2d807b7d1470ce0abd549b8855037f99
tree7fec529fa48ee86e9dcab388fe75377ff878130f
parentfaf482ca196a5b16007190529b3b2dd32ab3f761
parent33c563ad28e3bf614c82450fbf83a7c3c203db87
Merge branch 'mptcp-refactor'

Mat Martineau says:

====================
mptcp: Refactor ADD_ADDR/RM_ADDR handling

This patch set changes the way MPTCP ADD_ADDR and RM_ADDR options are
handled to improve the reliability of sending and updating address
advertisements. The information used to populate outgoing advertisement
option headers is now stored separately to avoid rare cases where a more
recent request would overwrite something that had not been sent
yet. While the peers would recover from this, it's better to avoid the
problem in the first place.

Patch 1 moves an advertisement option check under a lock so the changes
made in the next several patches will not introduce a race.

Patches 2-4 make sure ADD_ADDR, ADD_ADDR echo, and RM_ADDR options use
separate flags and data.

Patch 5 removes some now-redundant flags.

Patch 6 adds a selftest that confirms the advertisement reliability
improvements.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>