> > > > 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
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
> 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 ~
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
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
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
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
7 matches
Mail list logo