RE: [PATCH] bpf: don't verify classic bpfs

2024-06-27 Thread Konstantin Ananyev
> > > > When classic BPFs with lots of branching instructions are compiled, > > > > __rte_bpf_bpf_validate runs way too slow. A simple bpf such as: > > > > 'ether host a0:38:6d:af:17:eb or b3:a3:ff:b6:c1:ef or ...' 12 times > > > > > > > > results in ~1 minute of bpf validation. > > > > This patch

Re: [PATCH] bpf: don't verify classic bpfs

2024-06-27 Thread Thomas Monjalon
16/05/2024 11:36, Konstantin Ananyev: > > > On Sun, 12 May 2024 08:55:45 +0300 > > Yoav Winstein wrote: > > > > > When classic BPFs with lots of branching instructions are compiled, > > > __rte_bpf_bpf_validate runs way too slow. A simple bpf such as: > > > 'ether host a0:38:6d:af:17:eb or b3:a3

RE: [PATCH] bpf: don't verify classic bpfs

2024-05-16 Thread Konstantin Ananyev
> On Sun, 12 May 2024 08:55:45 +0300 > Yoav Winstein wrote: > > > When classic BPFs with lots of branching instructions are compiled, > > __rte_bpf_bpf_validate runs way too slow. A simple bpf such as: > > 'ether host a0:38:6d:af:17:eb or b3:a3:ff:b6:c1:ef or ...' 12 times > > > > results in ~

[PATCH] bpf: don't verify classic bpfs

2024-05-11 Thread Yoav Winstein
When classic BPFs with lots of branching instructions are compiled, __rte_bpf_bpf_validate runs way too slow. A simple bpf such as: 'ether host a0:38:6d:af:17:eb or b3:a3:ff:b6:c1:ef or ...' 12 times results in ~1 minute of bpf validation. This patch makes __rte_bpf_bpf_validate be aware of bpf_pr

[PATCH] bpf: don't verify classic bpfs

2024-05-11 Thread Yoav Winstein
When classic BPFs with lots of branching instructions are compiled, __rte_bpf_bpf_validate runs way too slow. A simple bpf such as: 'ether host a0:38:6d:af:17:eb or b3:a3:ff:b6:c1:ef or ...' 12 times results in ~1 minute of bpf validation. This patch makes __rte_bpf_bpf_validate be aware of bpf_pr

[PATCH] bpf: don't verify classic bpfs

2024-05-11 Thread Yoav Winstein
I noticed that when classic BPFs with lots of branching instructions are compiled, __rte_bpf_bpf_validate runs way too slow. A simple bpf such as: 'ether host a0:38:6d:af:17:eb or b3:a3:ff:b6:c1:ef or ...' 12 times results in ~1 minute of bpf validation. This patch makes __rte_bpf_bpf_validate b

[PATCH] bpf: don't verify classic bpfs

2024-05-11 Thread Yoav Winstein
Signed-off-by: Yoav Winstein --- app/test/test_bpf.c | 2 ++ lib/bpf/bpf_convert.c | 1 + lib/bpf/bpf_load.c| 7 +-- lib/bpf/rte_bpf.h | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/test/test_bpf.c b/app/test/test_bpf.c index 53e3a31123..7aae290c1a 100644