diff options
author | Michael Chan <michael.chan@broadcom.com> | 2017-08-23 19:34:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-23 22:42:42 -0700 |
commit | 146ed3c5b87d8c65ec31bc56df26f027fe624b8f (patch) | |
tree | fd1c6e36f1b1789461e5b8b9fa14cc7be2b6ff61 /drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | |
parent | 87e9b3778c94694c9e098c91a0cc05725f0e017f (diff) | |
download | linux-146ed3c5b87d8c65ec31bc56df26f027fe624b8f.tar.gz linux-146ed3c5b87d8c65ec31bc56df26f027fe624b8f.tar.bz2 linux-146ed3c5b87d8c65ec31bc56df26f027fe624b8f.zip |
bnxt_en: Free MSIX vectors when unregistering the device from bnxt_re.
Take back ownership of the MSIX vectors when unregistering the device
from bnxt_re.
Fixes: a588e4580a7e ("bnxt_en: Add interface to support RDMA driver.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c index 77da75a55c02..997e10e8b863 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c @@ -84,6 +84,8 @@ static int bnxt_unregister_dev(struct bnxt_en_dev *edev, int ulp_id) max_stat_ctxs = bnxt_get_max_func_stat_ctxs(bp); bnxt_set_max_func_stat_ctxs(bp, max_stat_ctxs + 1); + if (ulp->msix_requested) + edev->en_ops->bnxt_free_msix(edev, ulp_id); } if (ulp->max_async_event_id) bnxt_hwrm_func_rgtr_async_events(bp, NULL, 0); |