Don't call rtm_ifchg() in trunk_port_state().
authormvs <mvs@openbsd.org>
Mon, 2 Aug 2021 21:10:55 +0000 (21:10 +0000)
committermvs <mvs@openbsd.org>
Mon, 2 Aug 2021 21:10:55 +0000 (21:10 +0000)
commit60a682ede06ee952e3392035baf97763a51a8beb
tree7728cf8ff4b5c2b9605c15c2bdb65268f8cf6b18
parent06f70a83ac3b09596c4bed7ec25771f3c1b05238
Don't call rtm_ifchg() in trunk_port_state().

The preceding trunk_link_active() already produced RTM_IFINFO message when
trunk(4) state was changed. I such case we double RTM_IFINFO message or we
produce false message when trunk(4) state was not changed.

ok florian@
sys/net/if_trunk.c