xfrm: handle NETDEV_UNREGISTER for xfrm device
commitcb2775c906eed8f350b8deed7d681bf285fbcb72
authorRaed Salem <raeds@mellanox.com>
Sun, 2 Feb 2020 11:19:34 +0000 (2 13:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2020 13:28:18 +0000 (2 15:28 +0200)
treeb5ac1e31d4c14635ab86e456317cb1f3bf5ff522
parent277db1b634fc3035640d863f2ed6d4e733031887
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