diff options
| author | Paolo Abeni <[email protected]> | 2022-01-07 00:20:22 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-01-07 11:27:07 +0000 |
| commit | 86e39e04482b0aadf3ee3ed5fcf2d63816559d36 (patch) | |
| tree | 6cfe59b1db6b182614fa7824e192ad144e05b363 /net/mptcp/protocol.c | |
| parent | mptcp: clean-up MPJ option writing (diff) | |
| download | kernel-86e39e04482b0aadf3ee3ed5fcf2d63816559d36.tar.gz kernel-86e39e04482b0aadf3ee3ed5fcf2d63816559d36.zip | |
mptcp: keep track of local endpoint still available for each msk
Include into the path manager status a bitmap tracking the list
of local endpoints still available - not yet used - for the
relevant mptcp socket.
Keep such map updated at endpoint creation/deletion time, so
that we can easily skip already used endpoint at local address
selection time.
The endpoint used by the initial subflow is lazyly accounted at
subflow creation time: the usage bitmap is be up2date before
endpoint selection and we avoid such unneeded task in some relevant
scenarios - e.g. busy servers accepting incoming subflows but
not creating any additional ones nor annuncing additional addresses.
Overall this allows for fair local endpoints usage in case of
subflow failure.
As a side effect, this patch also enforces that each endpoint
is used at most once for each mptcp connection.
Signed-off-by: Paolo Abeni <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/mptcp/protocol.c')
| -rw-r--r-- | net/mptcp/protocol.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index 667e153e6e24..5c956a8dc714 100644 --- a/net/mptcp/protocol.c +++ b/net/mptcp/protocol.c @@ -2488,8 +2488,7 @@ static void mptcp_worker(struct work_struct *work) mptcp_check_fastclose(msk); - if (msk->pm.status) - mptcp_pm_nl_work(msk); + mptcp_pm_nl_work(msk); if (test_and_clear_bit(MPTCP_WORK_EOF, &msk->flags)) mptcp_check_for_eof(msk); |
