DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 281] BPF: Linking error in librte_bpf
@ 2019-05-18  1:34 bugzilla
  2019-05-20 15:03 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2019-05-18  1:34 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=281

            Bug ID: 281
           Summary: BPF: Linking error in librte_bpf
           Product: DPDK
           Version: 19.08
          Hardware: x86
                OS: Linux
            Status: CONFIRMED
          Severity: normal
          Priority: Normal
         Component: testpmd
          Assignee: dev@dpdk.org
          Reporter: michel@digirati.com.br
  Target Milestone: ---

I've downloaded DPDK from the git repository (19.08-rc0), installed libelf and
libelf-dev, enabled CONFIG_RTE_LIBRTE_BPF_ELF in config/common_base, made
config for target "x86_64-native-linuxapp-gcc", and built it. My machine is
running Ubuntu 18.04.1. Then, I ran the following commands:

$ cd $RTE_SDK/$RTE_TARGET/app/

$ sudo ./testpmd -l 0-3 -n 4 -- -i --portmask=0x1 --nb-cores=2
[INITIALIZATION MESSAGES]

testpmd> bpf-load rx 0 0 - /home/michel/git/latest_dpdk/examples/bpf/t1.o
rte_bpf_elf_load() is not supported with current config
rebuild with libelf installed
-95:Operation not supported

Investigating this issue, I've found that it is a linking error since function
rte_bpf_elf_load() is being mapped to bpf_load.o instead of bpf_load_elf.o:

$ grep ^rte_bpf_elf_load x86_64-native-linuxapp-gcc/app/testpmd.map 
rte_bpf_elf_load                                 
/home/michel/test_latest_dpdk/dpdk/x86_64-native-linuxapp-gcc/lib/librte_bpf.a(bpf_load.o)

I also noticed that file bpf_load_elf.o after file bpf_load.o in librte_bpf.a:

$ ar t build/lib/librte_bpf.a
bpf.o
bpf_exec.o
bpf_load.o
bpf_pkt.o
bpf_validate.o
bpf_load_elf.o
bpf_jit_x86.o

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dpdk-dev] [Bug 281] BPF: Linking error in librte_bpf
  2019-05-18  1:34 [dpdk-dev] [Bug 281] BPF: Linking error in librte_bpf bugzilla
@ 2019-05-20 15:03 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2019-05-20 15:03 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=281

Michel Machado (michel@digirati.com.br) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Michel Machado (michel@digirati.com.br) ---
I've followed your steps and it worked. I don't know what I did wrong when I
was testing it.

I'm sorry for bothering you. Thank you for your help.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-20 15:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-18  1:34 [dpdk-dev] [Bug 281] BPF: Linking error in librte_bpf bugzilla
2019-05-20 15:03 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).