Re: [PATCH v4 21/27] net/iavf: avoid rte malloc in IPsec operations

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

On Fri, Feb 13, 2026 at 10:26:32AM +0000, Anatoly Burakov wrote:
> Currently, when performing IPsec security association operations and
> retrieving device capabilities, we are using rte_malloc followed by
> immediate rte_free. This is not needed as these structures are only
> used temporarily, so replace it with stack-allocated structures for
> small fixed-size messages and regular malloc/free for variable-sized
> buffers.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> ---
> drivers/net/intel/iavf/iavf_ipsec_crypto.c | 58 ++++++++--------------
> 1 file changed, 21 insertions(+), 37 deletions(-)
>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>