DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Failed to load t3.o ebpf example
@ 2021-02-04  4:19 孙向鹏
  0 siblings, 0 replies; only message in thread
From: 孙向鹏 @ 2021-02-04  4:19 UTC (permalink / raw)
  To: users

Hi DPDK Experts,

I try to run ebpf example provided by dpdk source. However, it seems like dpdk cannot validate the t3.o and gives me the following error

testpmd> bpf-load rx 0 0 JM t3.o
validate: invalid src-reg field at pc: 10
rte_bpf_elf_load(fname="t3.o", sname=".text") failed, error code: 22
-22:Invalid argument

Seems like the call pc 10 is invalid to the validate code. My testbed is based on dpdk-stable-18.11.2 / clang version 7.0.1 (tags/RELEASE_701/final)  / Linux localhost.localdomain 3.10.0-1160.11.1.el7.x86_64 #1 SMP Fri Dec 18 16:34:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux.

Yours,
Xiangpeng Sun

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-07  9:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04  4:19 [dpdk-users] Failed to load t3.o ebpf example 孙向鹏

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).