Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Fix vlan check bug in ixv_setup_vlan_suppo...



details:   https://anonhg.NetBSD.org/src/rev/9d2bbe3f3406
branches:  trunk
changeset: 349193:9d2bbe3f3406
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Nov 28 08:31:17 2016 +0000

description:
Fix vlan check bug in ixv_setup_vlan_support().

diffstat:

 sys/dev/pci/ixgbe/ixv.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r ffb1cbef9d2f -r 9d2bbe3f3406 sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c   Mon Nov 28 08:21:10 2016 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c   Mon Nov 28 08:31:17 2016 +0000
@@ -31,7 +31,7 @@
 
 ******************************************************************************/
 /*$FreeBSD: head/sys/dev/ixgbe/ixv.c 275358 2014-12-01 11:45:24Z hselasky $*/
-/*$NetBSD: ixv.c,v 1.19 2016/11/28 06:09:19 knakahara Exp $*/
+/*$NetBSD: ixv.c,v 1.20 2016/11/28 08:31:17 msaitoh Exp $*/
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
@@ -3708,7 +3708,7 @@
        ** the VFTA and other state, so if there
        ** have been no vlan's registered do nothing.
        */
-       if (adapter->num_vlans == 0)
+       if (!VLAN_ATTACHED(&adapter->osdep.ec))
                return;
 
        /* Enable the queues */



Home | Main Index | Thread Index | Old Index