From: Felix Fietkau Date: Mon, 18 Nov 2024 19:59:27 +0000 (+0100) Subject: proto-shell: fix spurious interface teardowns with host deps X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cd96f61ba63e17ab3f13248891d35cfc8a82f513;p=project%2Fnetifd.git 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 --- 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);