vtnet: don't update VLAN filter when parent is not running

Submitted by:	Gerrie Roos <groos -at- xiplink -dot- com>
Reviewed by:	gnn
Sponsored by:	XipLink, Inc.
Differential Revision:	https://reviews.freebsd.org/D9573
This commit is contained in:
Philip Paeps 2017-02-13 21:44:29 +00:00
parent dcb8552acb
commit e414c66099
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313711

View File

@ -3473,6 +3473,7 @@ vtnet_update_vlan_filter(struct vtnet_softc *sc, int add, uint16_t tag)
sc->vtnet_vlan_filter[idx] &= ~(1 << bit);
if (ifp->if_capenable & IFCAP_VLAN_HWFILTER &&
ifp->if_drv_flags & IFF_DRV_RUNNING &&
vtnet_exec_vlan_filter(sc, add, tag) != 0) {
device_printf(sc->vtnet_dev,
"cannot %s VLAN %d %s the host filter table\n",