Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Raed Salem and committed by
Steffen Klassert
03891f82 a444ad14

+1
+1
net/xfrm/xfrm_device.c
··· 383 383 return xfrm_dev_feat_change(dev); 384 384 385 385 case NETDEV_DOWN: 386 + case NETDEV_UNREGISTER: 386 387 return xfrm_dev_down(dev); 387 388 } 388 389 return NOTIFY_DONE;