Date: Mon, 13 Feb 2017 21:44:29 +0000 (UTC) From: Philip Paeps <philip@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313711 - head/sys/dev/virtio/network Message-ID: <201702132144.v1DLiTxq066513@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702132144.v1DLiTxq066513>