net/bnxt: allocate space dynamically for EM defrag
authorRandy Schacher <stuart.schacher@broadcom.com>
Mon, 20 Sep 2021 07:42:12 +0000 (13:12 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 21 Sep 2021 04:41:58 +0000 (06:41 +0200)
commitadf0802e0c62224a2cb3ab0dce480144271b7996
treee28ef29e3c16c87053419cec83a6705c329f4e66
parent0e3c0b53dfdd166f3cadadce70a40de085a1108f
net/bnxt: allocate space dynamically for EM defrag

The dynamic pool allocation defrag function currently uses stack
allocation. To improve use of stack space, dynamically allocate
and deallocate memory for use to defragment the dynamic pool of
EM resources.

Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com>
Reviewed-by: Peter Spreadborough <peter.spreadborough@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_core/dpool.c