Skip to content

Add support for MPTCP (multi-path TCP) for listeners - #18780

Merged
ggreenway merged 8 commits into
envoyproxy:mainfrom
ggreenway:mptcp
Nov 1, 2021
Merged

ggreenway merged 8 commits into
envoyproxy:mainfrom
ggreenway:mptcp

Conversation

@ggreenway

@ggreenway ggreenway commented Oct 26, 2021 •

Copy link
Copy Markdown
Member

Signed-off-by: Greg Greenway [email protected]

Commit Message: Allows enabling MPTCP on listeners, if kernel support is available
Additional Description:
Risk Level: Low
Testing: Added tests; manually tested on an mptcp-capable kernel and verified functionality
Docs Changes:
Release Notes: Added
Platform Specific Features: Linux only (requires kernel support)
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

@repokitteh-read-only

Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #18780 was opened by ggreenway.

see: more, trace.

@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
envoyproxy/api-shepherds assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #18780 was opened by ggreenway.

see: more, trace.

@ggreenway

Copy link
Copy Markdown
Member Author

The end result to enable MPTCP is ::socket(domain, flags, IPPROTO_MPTCP).

WDYT of passing this parameter everywhere? Other options I considered:

  • adding another value to Socket::Type, but this had a bunch of other unrelated changes, because MPTCP can be treated identically to normal TCP after the socket creation, from Envoy's perspective
  • Try to shove it into the Address. This just seemed hacky.

Comment thread envoy/network/socket_interface.h Resolved
Signed-off-by: Greg Greenway <[email protected]>
Signed-off-by: Greg Greenway <[email protected]>
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #18780 was synchronize by ggreenway.

see: more, trace.

@ggreenway
ggreenway marked this pull request as ready for review October 28, 2021 18:35
Signed-off-by: Greg Greenway <[email protected]>
Signed-off-by: Greg Greenway <[email protected]>
Signed-off-by: Greg Greenway <[email protected]>
@ggreenway
ggreenway requested a review from rojkov as a code owner October 28, 2021 21:28

@lizan lizan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm api

Signed-off-by: Greg Greenway <[email protected]>
@mattklein123

Copy link
Copy Markdown
Member

I think the coverage issue is legit?

/wait

There's no effective way to test OS feature check functions for correctness

Signed-off-by: Greg Greenway <[email protected]>
@ggreenway

Copy link
Copy Markdown
Member Author

I think the coverage issue is legit?

/wait

I failed to come up with a test that doesn't boil down to EXPECT_EQ(supportsMptcp(), supportsMptcp()). We have a few other OS feature detection functions that don't have coverage; I don't see a good way around that without having the ability to run tests on differently-configured kernels in CI.

@mattklein123

Copy link
Copy Markdown
Member

OK then just drop the coverage level?

@ggreenway

Copy link
Copy Markdown
Member Author

OK then just drop the coverage level?

Yep, that's what I did.

@mattklein123 mattklein123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks, though I think there still might be CI issues.

@ggreenway

Copy link
Copy Markdown
Member Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18780 (comment) was created by @ggreenway.

see: more, trace.

@ggreenway
ggreenway enabled auto-merge (squash) November 1, 2021 15:47
@ggreenway
ggreenway merged commit a3ece14 into envoyproxy:main Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants