Re: [PATCH v4 22/27] net/iavf: avoid rte malloc in queue operations

Bruce Richardson
2026-02-16T17:31:27Z

On Fri, Feb 13, 2026 at 10:26:33AM +0000, Anatoly Burakov wrote:
> Currently, when enabling, disabling, or switching queues, we are using
> rte_malloc followed by an immediate rte_free. This is not needed as these
> structures are not being stored anywhere, so replace them with stack
> allocation or malloc/free where appropriate.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> ---
> drivers/net/intel/iavf/iavf_vchnl.c | 65 ++++++++++++-----------------
> 1 file changed, 26 insertions(+), 39 deletions(-)
>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>