svn commit: r313711 - head/sys/dev/virtio/network
Philip Paeps
philip at FreeBSD.org
Mon Feb 13 21:44:30 UTC 2017
Author: philip
Date: Mon Feb 13 21:44:29 2017
New Revision: 313711
URL: https://svnweb.freebsd.org/changeset/base/313711
Log:
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
Modified:
head/sys/dev/virtio/network/if_vtnet.c
Modified: head/sys/dev/virtio/network/if_vtnet.c
==============================================================================
--- head/sys/dev/virtio/network/if_vtnet.c Mon Feb 13 21:33:50 2017 (r313710)
+++ head/sys/dev/virtio/network/if_vtnet.c Mon Feb 13 21:44:29 2017 (r313711)
@@ -3473,6 +3473,7 @@ vtnet_update_vlan_filter(struct vtnet_so
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",
More information about the svn-src-head
mailing list