Skip to contentSkip to conversation

MPTCP tree in linux-next

DISCUSSION Matthieu Baerts 2 participants 5 messages Dec 19, 2025

Subsystems (2)
lore
Share & tools
lore

Matthieu Baerts

author maintainer
#0 lore raw

Hi Mark, Stephen,

First, thank you, Stephen, for all the work you did around linux-next, and Mark for taking over!

I'm currently maintaining MPTCP with Mat, and I wonder if that would be OK to add the MPTCP tree in linux-next. We never asked before, mainly because we handle our tree [1] with TopGit on top of both 'net' and 'net-next' trees, but technically, I'm sure we can find a way to have branches that would suit linux-next.

Currently, we "export" commits from the TopGit tree in two branches:
'export' and 'export-net':

- 'export-net' is on top of 'net', but it also contains patches that are useful for our CI: fixes from other trees, temp workarounds, instruction files for the CI, extra debugging, etc.

- 'export' is on top of 'net-next' and 'export-net', so with the extra commits for the CI.

For linux-next, I guess we should remove these extra commits for the CI, right?

Would it be OK to add one new branch containing both the fixes (for 'net') and the new features (for 'net-next') on top of 'net-next'? Sometimes, we have new features that depend on fixes that are not in 'net' yet. Having one branch should help here.

With one branch on top of 'net-next', we might still have issues if some of our fixes for 'net' cannot be applied on top of 'net-next'. A solution would be to have our branch on top of 'net' and containing:

- MPTCP fixes
- a merge commit with 'net-next'
- MPTCP features

Would that also work for you? Or do you prefer having only the MPTCP commits on top of 'net-next'? Or two branches, one on top of 'net' and one on top of 'net-next' (without the patches that depends on the ones in 'net', not in 'net-next' yet)?

Two important notes:

- A synchronisation with 'net' and 'net-next' is done by our CI once a day, except during the weekend or in case of conflicts.

- Our patches are currently sent as "patches", not in a pull request, so patches will be applied with a different SHA.

We can certainly easily change both points if that would help you: when the sync is done, and send PR instead of patches. I guess we could have situations where when 'linux-next' is rebuilt, a patch would appear in both Networking and MPTCP trees, which can confuse Git. Maybe changing our workflow can help to prevent such issues.

One last thing: no hurry here, especially at this period of the year!

[1] https://github.com/multipath-tcp/mptcp_net-next

Cheers,
Matt

Signature · 1 line
Sponsored by the NGI0 Core fund.
maintainer
#1 lore raw
Quoted 7 lines · Matthieu Baerts

Currently, we "export" commits from the TopGit tree in two branches:
'export' and 'export-net':

- 'export-net' is on top of 'net', but it also contains patches that are useful for our CI: fixes from other trees, temp workarounds, instruction files for the CI, extra debugging, etc.

Quoted 5 lines

- 'export' is on top of 'net-next' and 'export-net', so with the extra commits for the CI.

For linux-next, I guess we should remove these extra commits for the CI, right?

Right, we only want changes that are intended to go to Linus.

Quoted 4 lines

Would it be OK to add one new branch containing both the fixes (for 'net') and the new features (for 'net-next') on top of 'net-next'? Sometimes, we have new features that depend on fixes that are not in 'net' yet. Having one branch should help here.

One branch is certainly OK, though it is desirable to have fixes separately since as well as the main -next branch we also build pending-fixes which includes only fixes, the goal being to validate that there's no unintended dependencies on non-fix changes. That's not essential though.

Quoted 4 lines

With one branch on top of 'net-next', we might still have issues if some of our fixes for 'net' cannot be applied on top of 'net-next'. A solution would be to have our branch on top of 'net' and containing:

Quoted 8 lines

- MPTCP fixes
- a merge commit with 'net-next'
- MPTCP features

Would that also work for you? Or do you prefer having only the MPTCP commits on top of 'net-next'? Or two branches, one on top of 'net' and one on top of 'net-next' (without the patches that depends on the ones in 'net', not in 'net-next' yet)?

We generally don't want that merge unless it'd get sent to Linus eventually so your second option feels like a better choice here for my money (Stephen might have a better idea here though?). I don't know how promptly net-next gets the fixes merged up, or how often dependencies on fixes is an issue. Do other net subtrees have workflows for this, I'd imagine they run into similar issues?

Quoted 2 lines

- Our patches are currently sent as "patches", not in a pull request, so patches will be applied with a different SHA.

The main issue with that would be that it would create work with the duplicate commit detection and reporting we do which would get annoying for all concerned. I suspect the actual merges would mostly end up fine, git tends to figure this stuff out fairly well.

Quoted 5 lines

We can certainly easily change both points if that would help you: when the sync is done, and send PR instead of patches. I guess we could have situations where when 'linux-next' is rebuilt, a patch would appear in both Networking and MPTCP trees, which can confuse Git. Maybe changing our workflow can help to prevent such issues.

If you were to switch to sending a PR of the actual commits in -next that'd make life easier but that'd need you to work out the workflow with whoever you're sending the patches to. I guess you could adopt a hybrid flow where you use TopGit with regeneration until you send the PR and then freeze the patches included in the PR? You could use the PR as a base for new stuff while it's in flight. There are trees that are managed in a patch queues that use a workflow a bit like that.

author maintainer
#2 lore raw

Hi Mark,

Thank you for your reply!

Quoted 9 lines · Mark Brown
Quoted 7 lines · Matthieu Baerts

Currently, we "export" commits from the TopGit tree in two branches:
'export' and 'export-net':

- 'export-net' is on top of 'net', but it also contains patches that are useful for our CI: fixes from other trees, temp workarounds, instruction files for the CI, extra debugging, etc.

Quoted 7 lines
Quoted 5 lines

- 'export' is on top of 'net-next' and 'export-net', so with the extra commits for the CI.

For linux-next, I guess we should remove these extra commits for the CI, right?

Right, we only want changes that are intended to go to Linus.

Thank you, that makes sense!

Quoted 10 lines
Quoted 4 lines

Would it be OK to add one new branch containing both the fixes (for 'net') and the new features (for 'net-next') on top of 'net-next'? Sometimes, we have new features that depend on fixes that are not in 'net' yet. Having one branch should help here.

One branch is certainly OK, though it is desirable to have fixes separately since as well as the main -next branch we also build pending-fixes which includes only fixes, the goal being to validate that there's no unintended dependencies on non-fix changes. That's not essential though.

Ah yes, I forgot about pending-fixes. It is easy to create such branch containing only fixes.

Quoted 13 lines
Quoted 4 lines

With one branch on top of 'net-next', we might still have issues if some of our fixes for 'net' cannot be applied on top of 'net-next'. A solution would be to have our branch on top of 'net' and containing:

Quoted 8 lines

- MPTCP fixes
- a merge commit with 'net-next'
- MPTCP features

Would that also work for you? Or do you prefer having only the MPTCP commits on top of 'net-next'? Or two branches, one on top of 'net' and one on top of 'net-next' (without the patches that depends on the ones in 'net', not in 'net-next' yet)?

Quoted 5 lines

We generally don't want that merge unless it'd get sent to Linus eventually so your second option feels like a better choice here for my money (Stephen might have a better idea here though?). I don't know how promptly net-next gets the fixes merged up, or how often dependencies on fixes is an issue.

Typically, the Net maintainers send a PR to Linus once a week, with the content of 'net'. Once merged, 'net' points to Linus' merge commit, and 'net-next' is then merged with 'net'.

(Before each merge window, 'net' is merged with 'net-next'.)

When we have new features depending on new fixes, the fixes are sent first to be included in 'net'. Then we wait for 'net-next' to get those fixes (max 1 week), and we send the new features to be included in 'net-next'.

If 'linux-next' already contains a merge between 'net' and 'net-next', maybe it is fine to merge a branch also containing this merge? But I guess that's possibly not recommended if conflicts are solved differently.

Quoted 2 lines

Do other net subtrees have workflows for this, I'd imagine they run into similar issues?

Good point. I don't see any special case for that. I see that some repos have 'for-next' branches like 'wireless' and 'wireless-next', but it looks like it is not the good time to look because for the moment 'net-next' is closed.

Perhaps it is enough to work in a "best-effort" way and to provide a "pending-fixes" branch with only fixes on top of 'net', and "for-next" with patches that applies on top of "net-next". Conflicted patches are skipped until the next 'net' / 'net-next' sync.

Quoted 7 lines
Quoted 2 lines

- Our patches are currently sent as "patches", not in a pull request, so patches will be applied with a different SHA.

The main issue with that would be that it would create work with the duplicate commit detection and reporting we do which would get annoying for all concerned. I suspect the actual merges would mostly end up fine, git tends to figure this stuff out fairly well.

Ah yes, I see. We could adapt when the automated sync is done, but that's probably not enough.

Quoted 6 lines
Quoted 5 lines

We can certainly easily change both points if that would help you: when the sync is done, and send PR instead of patches. I guess we could have situations where when 'linux-next' is rebuilt, a patch would appear in both Networking and MPTCP trees, which can confuse Git. Maybe changing our workflow can help to prevent such issues.

Quoted 7 lines

If you were to switch to sending a PR of the actual commits in -next that'd make life easier but that'd need you to work out the workflow with whoever you're sending the patches to. I guess you could adopt a hybrid flow where you use TopGit with regeneration until you send the PR and then freeze the patches included in the PR? You could use the PR as a base for new stuff while it's in flight. There are trees that are managed in a patch queues that use a workflow a bit like that.

Indeed, it might be better to do that. I will check later to put that in place. I guess we mainly have to change the way patches are sent.

Cheers,
Matt

Signature · 1 line
Sponsored by the NGI0 Core fund.
maintainer
#3 lore raw
Quoted 6 lines · Matthieu Baerts
Quoted 1 line · Mark Brown

On Fri, Dec 19, 2025 at 01:35:51PM +0100, Matthieu Baerts wrote:

If 'linux-next' already contains a merge between 'net' and 'net-next', maybe it is fine to merge a branch also containing this merge? But I guess that's possibly not recommended if conflicts are solved differently.

Yeah, if the resolution is the same it's not an issue - it's if they diverge somehow that there's a concern.

Quoted 4 lines

Perhaps it is enough to work in a "best-effort" way and to provide a "pending-fixes" branch with only fixes on top of 'net', and "for-next" with patches that applies on top of "net-next". Conflicted patches are skipped until the next 'net' / 'net-next' sync.

You could always start with that and figure out the complicated stuff later.

Quoted 10 lines
Quoted 7 lines

If you were to switch to sending a PR of the actual commits in -next that'd make life easier but that'd need you to work out the workflow with whoever you're sending the patches to. I guess you could adopt a hybrid flow where you use TopGit with regeneration until you send the PR and then freeze the patches included in the PR? You could use the PR as a base for new stuff while it's in flight. There are trees that are managed in a patch queues that use a workflow a bit like that.

Indeed, it might be better to do that. I will check later to put that in place. I guess we mainly have to change the way patches are sent.

Sounds good.

author maintainer
#4 lore raw
Quoted 11 lines · Mark Brown
Quoted 6 lines · Matthieu Baerts
Quoted 1 line · Mark Brown

On Fri, Dec 19, 2025 at 01:35:51PM +0100, Matthieu Baerts wrote:

If 'linux-next' already contains a merge between 'net' and 'net-next', maybe it is fine to merge a branch also containing this merge? But I guess that's possibly not recommended if conflicts are solved differently.

Yeah, if the resolution is the same it's not an issue - it's if they diverge somehow that there's a concern.

Quoted 7 lines
Quoted 4 lines

Perhaps it is enough to work in a "best-effort" way and to provide a "pending-fixes" branch with only fixes on top of 'net', and "for-next" with patches that applies on top of "net-next". Conflicted patches are skipped until the next 'net' / 'net-next' sync.

You could always start with that and figure out the complicated stuff later.

Indeed, I will do that!

Quoted 8 lines
Quoted 7 lines
Quoted 7 lines

If you were to switch to sending a PR of the actual commits in -next that'd make life easier but that'd need you to work out the workflow with whoever you're sending the patches to. I guess you could adopt a hybrid flow where you use TopGit with regeneration until you send the PR and then freeze the patches included in the PR? You could use the PR as a base for new stuff while it's in flight. There are trees that are managed in a patch queues that use a workflow a bit like that.

Quoted 4 lines
Quoted 2 lines

Indeed, it might be better to do that. I will check later to put that in place. I guess we mainly have to change the way patches are sent.

Sounds good.

Thank you, I will contact you later when this new workflow is in place!

Cheers,
Matt

Signature · 1 line
Sponsored by the NGI0 Core fund.