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:
parent
dcb8552acb
commit
e414c66099
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313711
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user