Re: [PATCH v3 17/17] net/dpaa2: add devargs alternative for data stashing getenv

Stephen Hemminger
2026-03-06T17:48:19Z

On Fri, 6 Mar 2026 14:30:35 +0100
Maxime Leroy <maxime@leroys.fr> wrote:

> The DPAA2_DATA_STASHING_OFF environment variable is used by customers
> to dynamically disable data stashing without rebuilding their
> application. Add a devargs option "drv_no_data_stashing" as an
> alternative, consistent with the existing devargs pattern (drv_loopback,
> drv_no_prefetch, drv_no_taildrop), while keeping the getenv for
> backward compatibility.
>
> Move the check from dpaa2_dev_rx_queue_setup() to dpaa2_dev_init(),
> consistent with how other driver flags are handled.
>
> Signed-off-by: Maxime Leroy <maxime@leroys.fr>

FYI use of environment variables in drivers should have been more
strongly discouraged. In future will add that to automated review to
add adding environment variables as a warning.