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

Couldn't find a BPF file when load xdp-filter #26

Closed
kp0zhiqian opened this issue May 19, 2020 · 2 comments
Closed

Couldn't find a BPF file when load xdp-filter #26

kp0zhiqian opened this issue May 19, 2020 · 2 comments

Comments

@kp0zhiqian
Copy link

Dear developers,

I'm a newbie of xdp, when I tried to use the xdp-tools, some error occurred. It's really appreciated that you could take a look at this issue and kindly reply it.

When I make in the /xdp-tools, xdp-filter, loader is ok, but when it goes to xdp-dump, errors popped up:

xdpdump_bpf.c:25:18: error: unknown attribute 'preserve_access_index' ignored [-Werror,-Wunknown-attributes]
} __attribute__((preserve_access_index));
                 ^
xdpdump_bpf.c:33:18: error: unknown attribute 'preserve_access_index' ignored [-Werror,-Wunknown-attributes]
} __attribute__((preserve_access_index));
                 ^
xdpdump_bpf.c:42:18: error: unknown attribute 'preserve_access_index' ignored [-Werror,-Wunknown-attributes]
} __attribute__((preserve_access_index));
                 ^
3 errors generated.
make[1]: *** [../lib/common.mk:88: xdpdump_bpf.o] Error 1
make: *** [Makefile:26: xdp-dump] Error 2

I supposed that this won't affect the usage of xdp-filter, but when I issue ./xdp-filter load -m skb <$nic_name> , another three errors poped up:

Couldn't find a BPF file with name xdp-dispatcher.o
Couldn't open BPF file
Couldn't attach XDP program on iface 'enp68s0f0': No such file or directory(-2)

I think I must miss something that caused this issue, but I have no clue...

Thanks in advance!!

@kp0zhiqian kp0zhiqian changed the title Cannot load xdp-filte Cannot load xdp-filter May 19, 2020
@kp0zhiqian kp0zhiqian changed the title Cannot load xdp-filter Couldn't find a BPF file when load xdp-filter May 19, 2020
@tohojo
Copy link
Member

tohojo commented May 19, 2020 via email

@kp0zhiqian
Copy link
Author

You need LLVM 10 to compile xdp-tools :)

@tohojo Thanks a lot!

astoycos pushed a commit to astoycos/xdp-tools that referenced this issue Nov 2, 2023
astoycos pushed a commit to astoycos/xdp-tools that referenced this issue Nov 2, 2023
- Config
  - DP config redesigned from the ground up, added flexibility
  - DP main.go updated to reflect and use config changes
  - DP main.go unit tests removed as testable code all relocated
  - small updates to ConfigFile.go to validate recent Ethtool stuff
  - config_test recreated from the ground up
  - poolmanager updated to work with new config
  - poolmanager_test updated to work with new config
  - very minor update to uds.go to reflect timeout config
  - updated e2e test to use new config, also e2e daemonset

- CDQ
  - update CNI to delete subfunctions on pod delete
  - small update to constants to reflect learnings on CDQ limits
  - small update to device.go to reflect learnings on CDQ limits
  - poolManager updated to create CDQ subfunctions, if configured
  - very minor updates to cdq.go

- E2E
  - added new CI mode that changes the workdir and spins up 100s of pods
  - added new soak test mode
  - updated ci e2e daemonset config to test both primary and cdq modes
  - ci e2e now has its own NADs
  - ci e2e now has 3 different pods testing different configs and modes
  - small updates to github-ci.yaml to use the above changes

- General or Unrelated
  - removed a lot of "cndp" naming throughout codebase
astoycos pushed a commit to astoycos/xdp-tools that referenced this issue Nov 2, 2023
removed uncessary packages from imports and updated
error handling variable names
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

No branches or pull requests

2 participants