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

Could you please explain the purpose and usage of traffic-pacing-edt? #97

Open
garenchan opened this issue Aug 23, 2023 · 7 comments
Open

Comments

@garenchan
Copy link

garenchan commented Aug 23, 2023

Additionally, I am having difficulty compiling these examples and encountering various errors.

@tohojo
Copy link
Member

tohojo commented Aug 23, 2023

Can't help you with "various errors", you're going to have to be more specific :)

As for the purpose of traffic-pacing-edt, ping @netoptimizer

@garenchan
Copy link
Author

@tohojo Can you help me with this?

root@ubuntu:/home/ck# git clone https://github.com/xdp-project/bpf-examples.git
Cloning into 'bpf-examples'...
remote: Enumerating objects: 2833, done.
remote: Counting objects: 100% (346/346), done.
remote: Compressing objects: 100% (149/149), done.
remote: Total 2833 (delta 224), reused 232 (delta 197), pack-reused 2487
Receiving objects: 100% (2833/2833), 1.63 MiB | 4.36 MiB/s, done.
Resolving deltas: 100% (1870/1870), done.
root@ubuntu:/home/ck# cd bpf-examples
root@ubuntu:/home/ck/bpf-examples# ./configure
clang: 11.1.0-++20211011094159+1fdec59bffc1-1~exp1~20211011214614.8
libmnl support: yes
libbpf support: submodule
Submodule 'lib/libbpf' (https://github.com/xdp-project/libbpf.git) registered for path 'lib/libbpf'
Submodule 'lib/xdp-tools' (https://github.com/xdp-project/xdp-tools) registered for path 'lib/xdp-tools'
Cloning into '/home/ck/bpf-examples/lib/libbpf'...
Cloning into '/home/ck/bpf-examples/lib/xdp-tools'...
Submodule path 'lib/libbpf': checked out 'a6d7530cb7dff87ac1e64a540e63b67ddde2e0f9'
Submodule path 'lib/xdp-tools': checked out '344b241da22a5358c714d6db1ea6f225f951dbdb'
ELF support: yes
zlib support: yes
libxdp support: submodule
Configuring libxdp to use our libbpf submodule
Found clang binary 'clang' with version 11 (from 'Ubuntu clang version 11.1.0-++20211011094159+1fdec59bffc1-1~exp1~20211011214614.8')
bpftool doesn't support skeleton generation
root@ubuntu:/home/ck/bpf-examples# make

lib

  libbpf
    CC       install/lib/libbpf.a
    INSTALL  install/lib/libbpf.a

  libxdp
    CC       install/lib/libxdp.a
make[2]: *** [config.mk] Error 1
Makefile:67: recipe for target 'install/lib/libxdp.a' failed
make[1]: *** [install/lib/libxdp.a] Error 2
Makefile:34: recipe for target 'lib' failed
make: *** [lib] Error 2

root@ubuntu:/home/ck/bpf-examples# uname -a
Linux ubuntu 5.4.0-152-generic #169~18.04.1-Ubuntu SMP Wed Jun 7 22:22:24 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu:/home/ck/bpf-examples# bpftool --version
/usr/lib/linux-tools/5.4.0-152-generic/bpftool v5.4.235

@tohojo
Copy link
Member

tohojo commented Aug 23, 2023 via email

@garenchan
Copy link
Author

@tohojo OK. Thank you.

@tohojo
Copy link
Member

tohojo commented Aug 24, 2023 via email

@garenchan
Copy link
Author

@tohojo Thank you so much.

@tohojo
Copy link
Member

tohojo commented Aug 25, 2023 via email

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