Skip to content

Commit 03891f8

Browse files
Raed Salemklassert
authored andcommitted
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: e4db5b6 ("xfrm: policy: remove pcpu policy cache") Signed-off-by: Raed Salem <[email protected]> Reviewed-by: Boris Pismenny <[email protected]> Reviewed-by: Saeed Mahameed <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
1 parent a444ad1 commit 03891f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/xfrm/xfrm_device.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ static int xfrm_dev_event(struct notifier_block *this, unsigned long event, void
383383
return xfrm_dev_feat_change(dev);
384384

385385
case NETDEV_DOWN:
386+
case NETDEV_UNREGISTER:
386387
return xfrm_dev_down(dev);
387388
}
388389
return NOTIFY_DONE;

0 commit comments

Comments
 (0)