Re: XDP invalid memory access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, 16 Jan 2020, Maciej Fijalkowski wrote:

> 
> I see that optlen is a global variable. This line might be valid but
> you're using iproute2's loader for your XDP program, right? AFAIK it
> doesn't have support for BPF global variables, only libbpf does (Daniel,
> Andrii? is that true?).
> 

move optlen to local variable resolves the iproute2 loading problem. I 
tried libbpf way (xdp-loader load enp3s0 tcp_option.o) from 
https://github.com/xdp-project/xdp-tools to load the program, but it 
failed with "Couldn't load BPF program: Relocation failed". I will have 
more detail in email respond to Toke.  




[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux