Don't explicitly invoke ifn_start on new child interfaces (vaps and

subinterfaces) after they are created.  Interfaces are already started
by devd invoking /etc/pccard_ether when they are created, so the explicit
calls in childif_create() resulted in interfaces being started twice.

Note that interfaces created via cloned_interfaces are not explicitly
started but depend on the devd mechanism already.

MFC after:	1 week
This commit is contained in:
John Baldwin 2013-11-05 19:49:53 +00:00
parent 37968927c8
commit 765f1c5ae7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257715

View File

@ -1429,9 +1429,6 @@ childif_create()
fi
${IFCONFIG_CMD} $i name $child && cfg=0
fi
if autoif $child; then
ifn_start $child
fi
done
# Create vlan interfaces
@ -1455,9 +1452,6 @@ childif_create()
${IFCONFIG_CMD} $i name $child && cfg=0
fi
fi
if autoif $child; then
ifn_start $child
fi
done
return ${cfg}