DPDK usage discussions
 help / color / mirror / Atom feed
* net/tap: eBPF failed to load BPF section and failed to create flows for TAP device
@ 2023-10-09  4:18 Kouilakonda Anudattu
  2023-10-09  7:04 ` Kouilakonda Anudattu
  0 siblings, 1 reply; 4+ messages in thread
From: Kouilakonda Anudattu @ 2023-10-09  4:18 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

Hi All,


With the latest Oracle EL9 with DPDK 22.11.1 version, I modified the RSS eBPF C program and generated the structure of a C array in the 'tap_bpf_insns.h' file.
This array is in eBPF bytecode instructions format. However, even with new bytecode eBPF failed to load TAP PMD with the following error:

rss_add_actions(): Failed to load BPF section 'l3_l4' (7): Argument list too long.
net_failsafe: Failed to create a flow on sub_device 1."


Currently we are using below kernel:
5.15.0 #9 SMP PREEMPT
x86_64 GNU/Linux


How to resolve these errors ?

Regards,
Anudattu



[-- Attachment #2: Type: text/html, Size: 3227 bytes --]

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

* RE: net/tap: eBPF failed to load BPF section and failed to create flows for TAP device
  2023-10-09  4:18 net/tap: eBPF failed to load BPF section and failed to create flows for TAP device Kouilakonda Anudattu
@ 2023-10-09  7:04 ` Kouilakonda Anudattu
  2023-10-09 15:14   ` Stephen Hemminger
  2023-10-09 15:15   ` Stephen Hemminger
  0 siblings, 2 replies; 4+ messages in thread
From: Kouilakonda Anudattu @ 2023-10-09  7:04 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]

I'm adding some additional details to provide more context. I'm encountering this issue on Azure/Hyper-V platform with the existing DPDK-22.11.1 tap_bpf_insns.h byte-code.


Regards,
Anudattu.

From: Kouilakonda Anudattu <kouilakonda.anudattu@oracle.com>
Sent: Monday, October 9, 2023 9:48 AM
To: users@dpdk.org
Subject: [External] : net/tap: eBPF failed to load BPF section and failed to create flows for TAP device

Hi All,


With the latest Oracle EL9 with DPDK 22.11.1 version, I modified the RSS eBPF C program and generated the structure of a C array in the 'tap_bpf_insns.h' file.
This array is in eBPF bytecode instructions format. However, even with new bytecode eBPF failed to load TAP PMD with the following error:

rss_add_actions(): Failed to load BPF section 'l3_l4' (7): Argument list too long.
net_failsafe: Failed to create a flow on sub_device 1."


Currently we are using below kernel:
5.15.0 #9 SMP PREEMPT
x86_64 GNU/Linux


How to resolve these errors ?

Regards,
Anudattu



[-- Attachment #2: Type: text/html, Size: 4254 bytes --]

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

* Re: net/tap: eBPF failed to load BPF section and failed to create flows for TAP device
  2023-10-09  7:04 ` Kouilakonda Anudattu
@ 2023-10-09 15:14   ` Stephen Hemminger
  2023-10-09 15:15   ` Stephen Hemminger
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2023-10-09 15:14 UTC (permalink / raw)
  To: Kouilakonda Anudattu; +Cc: users

On Mon, 9 Oct 2023 07:04:49 +0000
Kouilakonda Anudattu <kouilakonda.anudattu@oracle.com> wrote:

> I'm adding some additional details to provide more context. I'm encountering this issue on Azure/Hyper-V platform with the existing DPDK-22.11.1 tap_bpf_insns.h byte-code.
> 
> 
> Regards,
> Anudattu.
> 
> From: Kouilakonda Anudattu <kouilakonda.anudattu@oracle.com>
> Sent: Monday, October 9, 2023 9:48 AM
> To: users@dpdk.org
> Subject: [External] : net/tap: eBPF failed to load BPF section and failed to create flows for TAP device
> 
> Hi All,
> 
> 
> With the latest Oracle EL9 with DPDK 22.11.1 version, I modified the RSS eBPF C program and generated the structure of a C array in the 'tap_bpf_insns.h' file.
> This array is in eBPF bytecode instructions format. However, even with new bytecode eBPF failed to load TAP PMD with the following error:
> 
> rss_add_actions(): Failed to load BPF section 'l3_l4' (7): Argument list too long.
> net_failsafe: Failed to create a flow on sub_device 1."
> 
> 
> Currently we are using below kernel:
> 5.15.0 #9 SMP PREEMPT
> x86_64 GNU/Linux
> 
> 
> How to resolve these errors ?

You need to debug the TAP device with either gdb or adding printfs.
Did you see the modified build instructions?

https://patchwork.dpdk.org/project/dpdk/patch/20230722163259.4304-1-stephen@networkplumber.org/



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

* Re: net/tap: eBPF failed to load BPF section and failed to create flows for TAP device
  2023-10-09  7:04 ` Kouilakonda Anudattu
  2023-10-09 15:14   ` Stephen Hemminger
@ 2023-10-09 15:15   ` Stephen Hemminger
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2023-10-09 15:15 UTC (permalink / raw)
  To: Kouilakonda Anudattu; +Cc: users

On Mon, 9 Oct 2023 07:04:49 +0000
Kouilakonda Anudattu <kouilakonda.anudattu@oracle.com> wrote:

> I'm adding some additional details to provide more context. I'm encountering this issue on Azure/Hyper-V platform with the existing DPDK-22.11.1 tap_bpf_insns.h byte-code.

Unless your use case demands rte_flow, use the netvsc PMD.
It has better performance.

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

end of thread, other threads:[~2023-10-09 15:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-09  4:18 net/tap: eBPF failed to load BPF section and failed to create flows for TAP device Kouilakonda Anudattu
2023-10-09  7:04 ` Kouilakonda Anudattu
2023-10-09 15:14   ` Stephen Hemminger
2023-10-09 15:15   ` Stephen Hemminger

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