[PATCH v4 12/27] net/i40e: avoid rte malloc in VF resource queries

Bruce Richardson bruce.richardson at intel.com
Mon Feb 16 18:14:50 CET 2026


On Fri, Feb 13, 2026 at 10:26:23AM +0000, Anatoly Burakov wrote:
> Currently, when responding to VF resource queries, we are dynamically
> allocating a temporary buffer with rte_zmalloc followed by an immediate
> rte_free. This is not needed as the response is only used temporarily,
> so replace it with a stack-allocated structure (the allocation is fixed
> in size and pretty small).
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
As done on v3:
Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list