Commit 1c2326f
selftests: mptcp: join: check re-adding init endp with != id
The initial subflow has a special local ID: 0. It is specific per
connection.
When a global endpoint is deleted and re-added later, it can have a
different ID, but the kernel should still use the ID 0 if it corresponds
to the initial address.
This test validates this behaviour: the endpoint linked to the initial
subflow is removed, and re-added with a different ID.
Note that removing the initial subflow will not decrement the 'subflows'
counters, which corresponds to the *additional* subflows. On the other
hand, when the same endpoint is re-added, it will increment this
counter, as it will be seen as an additional subflow this time.
The 'Fixes' tag here below is the same as the one from the previous
commit: this patch here is not fixing anything wrong in the selftests,
but it validates the previous fix for an issue introduced by this commit
ID.
Fixes: 3ad14f5 ("mptcp: more accurate MPC endpoint tracking")
Cc: stable@vger.kernel.org
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent dce1c6d commit 1c2326f
1 file changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3627 | 3627 | | |
3628 | 3628 | | |
3629 | 3629 | | |
3630 | | - | |
3631 | | - | |
| 3630 | + | |
| 3631 | + | |
3632 | 3632 | | |
3633 | 3633 | | |
3634 | 3634 | | |
| 3635 | + | |
3635 | 3636 | | |
3636 | 3637 | | |
3637 | 3638 | | |
| |||
3653 | 3654 | | |
3654 | 3655 | | |
3655 | 3656 | | |
| 3657 | + | |
| 3658 | + | |
| 3659 | + | |
| 3660 | + | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
| 3665 | + | |
| 3666 | + | |
3656 | 3667 | | |
3657 | 3668 | | |
3658 | | - | |
3659 | | - | |
3660 | | - | |
| 3669 | + | |
| 3670 | + | |
| 3671 | + | |
3661 | 3672 | | |
3662 | 3673 | | |
3663 | 3674 | | |
| |||
0 commit comments