iovisor / iovisor/bcc

Load xdp program on boot

Open
#3,467 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

Hey!
I wrote an XDP program using bcc with python to load it.
Because I wanted separate memory regions, I also created a .sh file that will run the python file with different parameters, until here all works fine.

I wanted to know if there is a way to make the program automatically load on boot?

I tried to create a service that will run my python. when I am using the service, the program managed to attach to the first NIC, but after the first one I get an error: “could not open map”.
what's weird is that I can execute the program fine without the service. I can’t find a way to solve it.
How can I make a service that executes the .sh script without any error?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Python program, its .sh wrapper, and the service definition used to launch them; compare the service invocation with the direct command that works. Reproduce the “could not open map” error across the NICs and confirm that the boot-time service loads the XDP program successfully on each one.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python, shell
Domain
devops, networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.