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

Stephen Hemminger stephen at networkplumber.org
Fri Jan 5 18:40:07 CET 2024


On Fri, 5 Jan 2024 14:58:22 +0000
Madhuker Mythri <madhuker.mythri at oracle.com> wrote:

> Hi Stephen,
> 
> As part of hash calculation logic, the hash value is going beyond 32-bits and thus the eBPF verifier throws error with the 32-bit hash variable.
> So, I need to modify as 64-bit hash variable to resolve the BPF verifier error.
> 
> Here, in the code this rte_softrss_be() function is returning the hash variable, which is a 64-bit value, so modified the return type from 32-bit to 64-bit.

Simple cast should do the necessary truncation.


More information about the dev mailing list