summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2020-09-12 20:12:09 +0000
committerkn <kn@openbsd.org>2020-09-12 20:12:09 +0000
commit9b8cd10a5e8648e447de5d435ba16ae7620f720c (patch)
tree3401383e26341f91d72bbfbaa546688ecf1652cf
parentLet snmp df make use of the new displayhint code, so we don't print random (diff)
downloadwireguard-openbsd-9b8cd10a5e8648e447de5d435ba16ae7620f720c.tar.xz
wireguard-openbsd-9b8cd10a5e8648e447de5d435ba16ae7620f720c.zip
Keep port interface UP on removal
There is no reason to change flags on member interfaces when removing them, aggr(4) does not pull its members down either. OK florian bluhm
-rw-r--r--sys/net/if_trunk.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/if_trunk.c b/sys/net/if_trunk.c
index 4a1dfe1f797..58ead509983 100644
--- a/sys/net/if_trunk.c
+++ b/sys/net/if_trunk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_trunk.c,v 1.149 2020/07/28 09:52:32 mvs Exp $ */
+/* $OpenBSD: if_trunk.c,v 1.150 2020/09/12 20:12:09 kn Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -423,10 +423,6 @@ trunk_port_destroy(struct trunk_port *tp)
/* Remove multicast addresses from this port */
trunk_ether_cmdmulti(tp, SIOCDELMULTI);
- /* Port has to be down */
- if (ifp->if_flags & IFF_UP)
- if_down(ifp);
-
ifpromisc(ifp, 0);
if (tr->tr_port_destroy != NULL)