From cd96f61ba63e17ab3f13248891d35cfc8a82f513 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 18 Nov 2024 20:59:27 +0100 Subject: [PATCH] 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 --- proto-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2