diff options
author | Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> | 2020-03-31 22:47:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-01 21:16:43 +0300 |
commit | cef8dac96bc108633f5090bb3a9988d734dc1ee0 (patch) | |
tree | 8697579b477503bc606bd8dcfd09ce0645a5a3da /drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |
parent | 41aa8561ca3fc5748391f08cc5f3e561923da52c (diff) | |
download | linux-cef8dac96bc108633f5090bb3a9988d734dc1ee0.tar.xz |
cxgb4: free MQPRIO resources in shutdown path
Perform missing MQPRIO resource cleanup in PCI shutdown path. Also,
fix MQPRIO MSIX bitmap leak in resource cleanup.
Fixes: b1396c2bd675 ("cxgb4: parse and configure TC-MQPRIO offload")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index ad993d6ff586..a70018f067aa 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c @@ -6671,6 +6671,10 @@ static void shutdown_one(struct pci_dev *pdev) if (adapter->port[i]->reg_state == NETREG_REGISTERED) cxgb_close(adapter->port[i]); + rtnl_lock(); + cxgb4_mqprio_stop_offload(adapter); + rtnl_unlock(); + if (is_uld(adapter)) { detach_ulds(adapter); t4_uld_clean_up(adapter); |