Re: [PATCH] net: ethernet: ti: am65-cpsw-qos: fix non-bql configs

From: Jakub Kicinski
Date: Wed Feb 28 2024 - 10:26:05 EST


On Wed, 28 Feb 2024 15:03:10 +0100 Arnd Bergmann wrote:
> +#ifdef CONFIG_BQL
> dql_avail(&netif_txq->dql),
> +#else
> + 0,
> +#endif

Same exact code exists in qdisc_avail_bulklimit()
How about we add static inline in netdevice.h wrapping
this, like we do for other BQL related functionality?
(taking in txq as the argument)