net/bnxt: free default completion ring before VF config
authorSantoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
Thu, 10 Oct 2019 01:41:43 +0000 (18:41 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:08 +0000 (16:43 +0200)
commit6d178ea04082101d9e75997927403fd8b0af7854
tree15c7281ecf5b3951913cf0ac0282bac7572639b9
parent9f55e6ac7500e828d42e95100d5cb061e912be5c
net/bnxt: free default completion ring before VF config

If the VF resources need to be reconfigured using the
bnxt_hwrm_func_reserve_vf_resc, make sure that the default completion
ring is freed first before the resources are reserved.

Reallocate the ring once the VF resources are configured.

Fixes: 7bc8e9a227cc ("net/bnxt: support async link notification")
Cc: stable@dpdk.org
Signed-off-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c