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

Load xdp and tc programs from l3afd #279

Merged
merged 35 commits into from
Nov 2, 2023

Conversation

sanfern
Copy link
Contributor

@sanfern sanfern commented Sep 12, 2023

The PR involves loading and connecting xdp and tc ebpf programs from l3afd, and comes with several modifications. Firstly, the monitoring of bpf programs has been updated to keep track of both user and loaded bpf programs that are currently running. Secondly, the maps pinning path has been changed to include interface specific directories such as /sys/fs/bpf/<iface> for xdp and /sys/fs/bpf/tc/globals/<iface> for tc. Thirdly, user programs are now started after loading bpf programs, allowing them to run as a daemon or just to initialize custom bpf maps with specific logic. Lastly, monitor maps are only supported when the BPF program is loaded from l3afd and is used for publishing metrics generated by the program.

@sanfern sanfern force-pushed the sanfern-dev-ebpf-progs branch 2 times, most recently from ab21961 to e5ced21 Compare September 13, 2023 18:52
@sanfern sanfern changed the title Load xdp programs from l3afd Load xdp and tc programs from l3afd Sep 14, 2023
@sanfern sanfern force-pushed the sanfern-dev-ebpf-progs branch 5 times, most recently from b484ec4 to db3f030 Compare September 15, 2023 10:31
@sanfern sanfern marked this pull request as ready for review September 15, 2023 10:39
@sanfern sanfern force-pushed the sanfern-dev-ebpf-progs branch from db3f030 to 00ded2e Compare September 16, 2023 06:53
@sanfern sanfern force-pushed the sanfern-dev-ebpf-progs branch from c81b087 to 61de404 Compare September 17, 2023 16:58
@sanfern sanfern force-pushed the sanfern-dev-ebpf-progs branch from 61de404 to ee82415 Compare September 19, 2023 11:43
@sanfern sanfern force-pushed the sanfern-dev-ebpf-progs branch from ee82415 to 20656b4 Compare September 19, 2023 12:15
evershalik and others added 15 commits October 25, 2023 01:35
Signed-off-by: evershalik <[email protected]>
Signed-off-by: sferna1 <[email protected]>
…ect#283)

* L3AFD metric for ebpf program update command failure count

Signed-off-by: Atul-source <[email protected]>
Signed-off-by: sferna1 <[email protected]>
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](prometheus/client_golang@v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: sferna1 <[email protected]>
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog) from 1.30.0 to 1.31.0.
- [Release notes](https://github.com/rs/zerolog/releases)
- [Commits](rs/zerolog@v1.30.0...v1.31.0)

---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: sferna1 <[email protected]>
…ject#292)

Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](ossf/scorecard-action@08b4669...483ef80)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: sferna1 <[email protected]>
…af-project#291)

Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.5.1 to 2.6.0.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](step-security/harden-runner@8ca2b8b...1b05615)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: sferna1 <[email protected]>
Signed-off-by: Santhosh Fernandes <[email protected]>
Signed-off-by: sferna1 <[email protected]>
Signed-off-by: Atul-source <[email protected]>
Signed-off-by: sferna1 <[email protected]>
Signed-off-by: Atul-source <[email protected]>
Signed-off-by: sferna1 <[email protected]>
Signed-off-by: SHANKAR <[email protected]>
Signed-off-by: sferna1 <[email protected]>
Signed-off-by: SHANKAR <[email protected]>
Signed-off-by: sferna1 <[email protected]>
Signed-off-by: SHANKAR <[email protected]>
Signed-off-by: sferna1 <[email protected]>
Signed-off-by: SHANKAR <[email protected]>
Signed-off-by: sferna1 <[email protected]>
Signed-off-by: evershalik <[email protected]>
Signed-off-by: sferna1 <[email protected]>
@sanfern sanfern force-pushed the sanfern-dev-ebpf-progs branch 4 times, most recently from 5630cd5 to ba17031 Compare October 28, 2023 19:41
* updating go version

Signed-off-by: Atul-source <[email protected]>
Signed-off-by: sferna1 <[email protected]>
@sanfern sanfern force-pushed the sanfern-dev-ebpf-progs branch 3 times, most recently from 5b0b4f9 to 80aec2e Compare October 31, 2023 17:42
@sanfern sanfern force-pushed the sanfern-dev-ebpf-progs branch from 80aec2e to 0220e4b Compare October 31, 2023 17:48
Copy link

@charleskbliu0 charleskbliu0 left a comment

Choose a reason for hiding this comment

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

Looks good

@sanfern sanfern merged commit ce93514 into l3af-project:main Nov 2, 2023
@sanfern sanfern deleted the sanfern-dev-ebpf-progs branch November 2, 2023 10:09
Atul-source pushed a commit to Atul-source/l3afd that referenced this pull request Nov 28, 2023
* Load xdp and tc programs from l3afd
Signed-off-by: Santhosh Fernandes <[email protected]>
Signed-off-by: Atul-source <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
6 participants