[PATCH v3 15/27] net/i40e: avoid rte malloc in DDP ptype handling

Bruce Richardson bruce.richardson at intel.com
Mon Feb 16 18:13:04 CET 2026


On Wed, Feb 11, 2026 at 01:52:57PM +0000, Anatoly Burakov wrote:
> Currently, when updating customized protocol and packet type information
> via DDP packages, we are using rte_zmalloc followed by immediate rte_free.
> This is not needed as these buffers are only used temporarily within
> the function scope, so replace it with regular malloc/free.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
>  drivers/net/intel/i40e/i40e_ethdev.c | 25 ++++++++++++-------------
>  1 file changed, 12 insertions(+), 13 deletions(-)

Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the dev mailing list