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.

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 孙向鹏

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ https://inbox.dpdk.org/users \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git