diff options
author | Raed Salem <raeds@mellanox.com> | 2020-02-02 13:19:34 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2020-02-04 12:43:46 +0100 |
commit | 03891f820c2117b19e80b370281eb924a09cf79f (patch) | |
tree | 50994d2e7f685e682ffeab3da6e524c496ab67b5 /net/xfrm/xfrm_device.c | |
parent | a444ad1432c5a0fb3bd43fc9ac39fb88b1fb141e (diff) | |
download | lwn-03891f820c2117b19e80b370281eb924a09cf79f.tar.gz lwn-03891f820c2117b19e80b370281eb924a09cf79f.zip |
xfrm: handle NETDEV_UNREGISTER for xfrm device
This patch to handle the asynchronous unregister
device event so the device IPsec offload resources
could be cleanly released.
Fixes: e4db5b61c572 ("xfrm: policy: remove pcpu policy cache")
Signed-off-by: Raed Salem <raeds@mellanox.com>
Reviewed-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_device.c')
-rw-r--r-- | net/xfrm/xfrm_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index 50f567a88f45..3231ec628544 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -383,6 +383,7 @@ static int xfrm_dev_event(struct notifier_block *this, unsigned long event, void return xfrm_dev_feat_change(dev); case NETDEV_DOWN: + case NETDEV_UNREGISTER: return xfrm_dev_down(dev); } return NOTIFY_DONE; |