On 01/08/2026 02:06, Mat Martineau wrote:
> On Mon, 27 Jul 2026, Matthieu Baerts (NGI0) wrote:
>
>> In MPTCP, the local address and port used by the initial subflow has the
>> ID "0". It means that when this address and port are used for some
>> operations -- e.g. creating a new subflow -- they should be linked to
>> the ID0, and no other addresses and ports can get this special ID while
>> the initial IP address and port is used.
>>
>> Instead of dealing with the ID0 case as an exception, add it to the
>> local addr list, and deal with it like the others, with minor
>> exceptions. That way, it seems easier to maintain instead of adding new
>> exceptions at a few places, at the cost of a few more bytes, which seems
>> OK in this mode.
>>
>> The first patch modifies add the initial address to the list, and the
>> others remove exceptions, and validate that in the selftests.
>>
>
> The approach looks ok to me. Have you tested with mptcpd?
No, but the "make check" is not validating that. What I'm changing here
is only about the ID0 case, which is quite specific, and cover by the
kernel selftests. I don't think I'm breaking anything here, but only a
full test suite would be able to check that, which we don't have with
mptcpd. I know that Gang is looking at adding some tests, but I guess
the first tests will not validate the IDs being used are the expected ones.
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.