nm-policy: stop rechecking autoactivation if device is unregistered

Wen Liang requested to merge wl/nm_policy_dev_unregister_fix into main


device: stop rechecking autoactivation if device is utterly deleted


If the device has ifindex 0 which means that the device is utterly deleted by NM, there is no need to schedule a check for autoactivation.


Please read https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/CONTRIBUTING.md before opening the merge request. In particular, check that:

  • the subject for all commits is concise and explicative
  • the message for all commits explains the reason for the change
  • the source is properly formatted
  • any relevant documentation is up to date
  • you have added unit tests if applicable
Edited by Wen Liang

Merge request reports