RE: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements.

2024-01-13 Thread Madhuker Mythri
With the original code BPF verifier throws error, due to undefined array access and thus could failed to load the BPF instructions onto the Kernel. For safe execution on the Kernel, the array access with such undefined value throws error. So, came up with this loop which has Max-queues as limit.

RE: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements.

2024-01-13 Thread Madhuker Mythri
That's true, SKB pointer access denied and throws error. So, I have to replace with this BPF helper functions. -Original Message- From: Stephen Hemminger Sent: 12 January 2024 22:12 To: Madhuker Mythri Cc: dev@dpdk.org; ferruh.yi...@amd.com Subject: [External] : Re: [PATCH] net/tap: Mo

RE: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements.

2024-01-13 Thread Madhuker Mythri
Even, in the original code the IP-address converted to host-order from network byte order. Now, I just replaced with BPF API's to convert to host-order. -Original Message- From: Stephen Hemminger Sent: 12 January 2024 22:17 To: Madhuker Mythri Cc: dev@dpdk.org; ferruh.yi...@amd.com Sub

Re: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements.

2024-01-13 Thread Stephen Hemminger
On Sat, 13 Jan 2024 17:50:19 + Madhuker Mythri wrote: > With the original code BPF verifier throws error, due to undefined array > access and thus could failed to load the BPF instructions onto the Kernel. > For safe execution on the Kernel, the array access with such undefined value > thro

Re: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements.

2024-01-13 Thread Stephen Hemminger
On Sat, 13 Jan 2024 17:52:34 + Madhuker Mythri wrote: > That's true, SKB pointer access denied and throws error. > So, I have to replace with this BPF helper functions. It does not for me using current Debian kernel. You may have enabled something else.