diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2013-11-17 08:59:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-18 15:45:44 -0500 |
commit | a0d307b21025106157709521d5b88831530e2112 (patch) | |
tree | 4c1c3293aefda4b5d2e6b58be4591980edd49cb4 /drivers/net | |
parent | eca42aaf898c31db1fd04850fb4dc584c9184c49 (diff) | |
download | linux-stable-a0d307b21025106157709521d5b88831530e2112.tar.gz linux-stable-a0d307b21025106157709521d5b88831530e2112.tar.bz2 linux-stable-a0d307b21025106157709521d5b88831530e2112.zip |
bnx2x: Clean the sp rtnl task upon unload
While unloading, bnx2x needs to clean the sp_rtnl_state to prevent
configuration made before the unload to be applied afterwards with
stale values.
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c index dcafbda3e5be..ec96130533cc 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c @@ -2959,6 +2959,10 @@ int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode, bool keep_link) bp->port.pmf = 0; + /* clear pending work in rtnl task */ + bp->sp_rtnl_state = 0; + smp_mb(); + /* Free SKBs, SGEs, TPA pool and driver internals */ bnx2x_free_skbs(bp); if (CNIC_LOADED(bp)) |