net/bnxt: fix allocation of LED config info
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 15 May 2020 07:01:51 +0000 (00:01 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:57 +0000 (20:35 +0200)
commit205b742952828afa26ca00c590cf00cb12939bea
tree2f7c62fb049e434d3c839411743f963a27e5389a
parent4939f374ad369b4b15ba17a186bd17bf736371f0
net/bnxt: fix allocation of LED config info

Dynamically allocate bnxt_led_cfg.
This helps reduces memory footprint of struct bnxt.

Fixes: bb81e07323bb ("net/bnxt: support LED on/off")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_hwrm.c