Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux XDP support #3849

Merged
merged 179 commits into from
Apr 25, 2024
Merged

Linux XDP support #3849

merged 179 commits into from
Apr 25, 2024

Conversation

ami-GS
Copy link
Contributor

@ami-GS ami-GS commented Sep 12, 2023

Description

Linux xdp datapath implementation

Testing

All tests are passing?

Documentation

Not official support yet

@ami-GS ami-GS requested a review from a team as a code owner September 12, 2023 06:25
src/platform/datapath_raw.c Dismissed Show dismissed Hide dismissed
docs/TSG.md Outdated Show resolved Hide resolved
@ami-GS ami-GS force-pushed the dev/daiki/xdp_split_functional branch from ddfdcfa to 47086f2 Compare April 22, 2024 19:17
@ami-GS ami-GS force-pushed the dev/daiki/xdp_split_functional branch from 47086f2 to 9cd42d0 Compare April 22, 2024 19:26
docs/TSG.md Outdated Show resolved Hide resolved
find_library(BPF_LIB libbpf.so)
else ()
# XDP Tools and libbpf paths
set(XDP_TOOLS_DIR ${PROJECT_SOURCE_DIR}/submodules/xdp-tools)
Copy link
Member

Choose a reason for hiding this comment

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

Do we only need the submodule if we support build from source?

Copy link
Member

Choose a reason for hiding this comment

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

If so, I'd prefer not to need another submodule.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought there is no strong reason to delete.
Enabling xdp from source required huge effort. People from other communities (xdp/ebpf etc.) can easily involve with this option.

Copy link
Member

Choose a reason for hiding this comment

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

If we need the submodule to compile/link against the library that's one thing, but if this is here just to build the source, I prefer to not have that, at least not right now, in this PR. You can move the code to a follow up PR to save it.

Time has shown that keeping submodules and their builds up to date has been painful with openssl. We want as few of these dependencies as possible.

@ami-GS ami-GS force-pushed the dev/daiki/xdp_split_functional branch from c178671 to 98a1222 Compare April 25, 2024 17:25
@ami-GS ami-GS merged commit 5052f34 into main Apr 25, 2024
351 of 356 checks passed
@ami-GS ami-GS deleted the dev/daiki/xdp_split_functional branch April 25, 2024 20:03
@@ -64,6 +64,9 @@ elseif (APPLE)
set(CX_PLATFORM "darwin")
elseif (UNIX)
set(CX_PLATFORM "linux")
file(STRINGS "/etc/lsb-release" LSB_RELEASE_CONTENT)
Copy link
Member

Choose a reason for hiding this comment

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

This line broke our Alpine docker build, using /etc/os-release would be better as it is present in both distributions.

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.

6 participants