[PATCH v4 10/25] net/ixgbe: replace always-true check
Bruce Richardson
bruce.richardson at intel.com
Tue Jun 3 18:15:14 CEST 2025
On Fri, May 30, 2025 at 02:57:06PM +0100, Anatoly Burakov wrote:
> There is an option `RTE_PMD_PACKET_PREFETCH` in `rte_config.h` that is
> always set to 1 by default, and that controls some prefetch behavior in the
> driver. However, there's another prefetch behavior that is controlled by
> `RTE_PMD_USE_PREFETCH`, which is always defined unconditionally (literally
> using `#if 1` construct).
>
> Replace the check to also use `RTE_PMD_PACKET_PREFETCH` to allow turning it
> off at build time.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list