netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] xfrm: handle NETDEV_UNREGISTER for xfrm device
@ 2020-02-02 11:19 Raed Salem
  2020-02-07  9:41 ` Steffen Klassert
  0 siblings, 1 reply; 2+ messages in thread
From: Raed Salem @ 2020-02-02 11:19 UTC (permalink / raw)
  To: steffen.klassert; +Cc: netdev, Raed Salem

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>
---
 net/xfrm/xfrm_device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c
index 189ef15..64486ad 100644
--- a/net/xfrm/xfrm_device.c
+++ b/net/xfrm/xfrm_device.c
@@ -390,6 +390,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;
-- 
1.9.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net] xfrm: handle NETDEV_UNREGISTER for xfrm device
  2020-02-02 11:19 [PATCH net] xfrm: handle NETDEV_UNREGISTER for xfrm device Raed Salem
@ 2020-02-07  9:41 ` Steffen Klassert
  0 siblings, 0 replies; 2+ messages in thread
From: Steffen Klassert @ 2020-02-07  9:41 UTC (permalink / raw)
  To: Raed Salem; +Cc: netdev

On Sun, Feb 02, 2020 at 01:19:34PM +0200, Raed Salem wrote:
> 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>

Patch applied, thanks Raed!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-07  9:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-02 11:19 [PATCH net] xfrm: handle NETDEV_UNREGISTER for xfrm device Raed Salem
2020-02-07  9:41 ` Steffen Klassert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).