Keep the hwsim netdev as an internal interface

It must exist, and will only handle frames when in
state running, therefore we keep it, but mark it internal.
This commit is contained in:
Mattias Walström
2026-07-02 09:20:38 +02:00
parent 2cfddb448c
commit 1d1afecdc3
@@ -43,5 +43,12 @@ for iface in $ports; do
ip link set "$iface" group port
done
# The mac80211_hwsim monitor tap (hwsim test images only) is a debug
# observer, not a user-facing interface. It cannot be deleted (no rtnl
# link ops), so classify it as internal like the DSA CPU interfaces.
if [ -d /sys/class/net/hwsim0 ]; then
ip link set dev hwsim0 group internal
fi
# At least loopback in iface group
ip link set lo group iface