summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2024-11-18 19:59:27 +0000
committerFelix Fietkau2024-11-18 20:00:10 +0000
commitcd96f61ba63e17ab3f13248891d35cfc8a82f513 (patch)
tree42225d9e49ea016d0b3d66e45231e3eef6233d33
parent86da5cbcdb9d417c63d734219c572bb43b089273 (diff)
downloadnetifd-cd96f61ba63e17ab3f13248891d35cfc8a82f513.tar.gz
proto-shell: fix spurious interface teardowns with host deps
Only treat IFEV_UP_FAILED, IFEV_DOWN and IFEV_FREE as down indicators Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--proto-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto-shell.c b/proto-shell.c
index 4039d9e..931a59e 100644
--- a/proto-shell.c
+++ b/proto-shell.c
@@ -269,7 +269,7 @@ proto_shell_if_down_cb(struct interface_user *dep, struct interface *iface,
struct proto_shell_dependency *pdep;
struct proto_shell_state *state;
- if (ev == IFEV_UP || ev == IFEV_UPDATE)
+ if (ev != IFEV_UP_FAILED && ev != IFEV_DOWN && ev != IFEV_FREE)
return;
pdep = container_of(dep, struct proto_shell_dependency, dep);