net: thunderx: Wait for delayed work to finish before destroying it
authorThanneeru Srinivasulu <tsrinivasulu@caviumnetworks.com>
Wed, 2 Dec 2015 10:06:14 +0000 (15:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Dec 2015 20:58:50 +0000 (15:58 -0500)
commita7b1f535a8d45816cfe25c0fd900fc726ba5acce
tree73c7f956f5156a61de1fa83ef517c79ac9cdc87e
parent723cda5b055851f5e8bf61aacd8008c43c99e801
net: thunderx: Wait for delayed work to finish before destroying it

While VNIC or BGX driver teardown, wait for already scheduled delayed work to
finish before destroying it.

Signed-off-by: Thanneeru Srinivasulu <tsrinivasulu@caviumnetworks.com>
Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic_main.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.c