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

tools/ebpf: add xdp xsk_map_fd server #557

Merged
merged 8 commits into from
Nov 6, 2023
Merged

Conversation

ricmli
Copy link
Collaborator

@ricmli ricmli commented Oct 30, 2023

AF_XDP backend can run without root privilege with following configurations:

  1. add capabilities for app: sudo setcap 'cap_net_admin+ep cap_net_raw+ep' ./build/app/RxTxApp
  2. start ebpf tool for xdp loading: sudo ./et --prog xdp --ifname ens785f0,ens785f1
  3. start the app without root user or sudo
  4. you can exit ebpf tool if you do not create af_xdp sockets any more

@ricmli ricmli marked this pull request as ready for review November 3, 2023 08:24
@ricmli ricmli requested a review from frankdjx as a code owner November 3, 2023 08:24
Signed-off-by: Ric Li <[email protected]>
Signed-off-by: Ric Li <[email protected]>
lib/src/dev/mt_af_xdp.c Show resolved Hide resolved
lib/src/dev/mt_af_xdp.c Show resolved Hide resolved
Signed-off-by: Ric Li <[email protected]>
@ricmli ricmli merged commit 9da4df0 into OpenVisualCloud:main Nov 6, 2023
31 checks passed
@ricmli ricmli deleted the et/xdp branch November 6, 2023 02:12
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.

2 participants