net/bnxt: release HWRM lock before returning
authorLance Richardson <lance.richardson@broadcom.com>
Mon, 4 Nov 2019 20:27:46 +0000 (15:27 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:04 +0000 (23:15 +0100)
commit67678ec0769fd4df3d9c7aceb5e6da6e7f0ce7a6
tree8019d32ece14218c0a7bb1a1338570f365123260
parentf9241d2fae7d2762b5926a9dc732ae14757417ca
net/bnxt: release HWRM lock before returning

The function bnxt_vnic_rss_configure_thor() returns early when
all receive queues are stopped without releasing the hwrm
spinlock, which causes subsequent HWRM operations to hang. Fix
by ensuring that the lock is released before returning from
this function.

Fixes: 38412304b50a ("net/bnxt: enable RSS for thor-based controllers")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c