]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfrm: handle NETDEV_UNREGISTER for xfrm device
authorRaed Salem <raeds@mellanox.com>
Sun, 2 Feb 2020 11:19:34 +0000 (13:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:00:13 +0000 (11:00 +0200)
commit035cbed7ef33f7ceaa75bac83c68f768431a95bb
treed0d645838e11eef683a8e32f37c5f40126ff698b
parent9185cb074eb1799548fd297a1ef13ec2464dca52
xfrm: handle NETDEV_UNREGISTER for xfrm device

commit 03891f820c2117b19e80b370281eb924a09cf79f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/xfrm/xfrm_device.c