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

libbpf: prog 'tp_xdp_redirect_err': on hyper-V linux-azure #378

Closed
tariromukute opened this issue Dec 12, 2023 · 1 comment
Closed

libbpf: prog 'tp_xdp_redirect_err': on hyper-V linux-azure #378

tariromukute opened this issue Dec 12, 2023 · 1 comment

Comments

@tariromukute
Copy link

Hi,

Firstly thank you for this project!

I am trying to compile and run xdp-trafficgen on a virtual machine on Azure. I am using a VM (Standard_D16ds_v4) with accelerated networking. When I compile the project I am getting the error below. I understand xdp_trafficgen requires support for XDP_REDIRECT. While the docs on Hyper-V driver state that XDP_REDIRECT action is not yet supported, the thread here suggests that this is now supported.

  1. Is the error below due to XDP_REDIRECT not being supported?
  2. If it is, is there support for it on Azure or another cloud provider perhaps?
  3. If not, how can I go about the error below.
xdp-trafficgen
    CLANG    xdp_trafficgen.bpf.o
    LLC      xdp_trafficgen.bpf.o
    GEN      xdp_trafficgen.skel.h
libbpf: prog 'tp_xdp_redirect_err': bad map relo against 'redir_err_cnt' in section '.maps'
Error: failed to open BPF object file: Relocation failed
make[1]: *** [../lib/common.mk:124: xdp_trafficgen.skel.h] Error 91
make: *** [Makefile:40: xdp-trafficgen] Error 2
@tariromukute
Copy link
Author

I re-setup the VM and tried again and it worked this time around. I used an ansible play for the set up so they both should be identical. I don't know why I was getting the error previously.

Closing the issue.

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

1 participant