Module Name: src
Committed By: msaitoh
Date: Mon Nov 28 08:31:18 UTC 2016
Modified Files:
src/sys/dev/pci/ixgbe: ixv.c
Log Message:
Fix vlan check bug in ixv_setup_vlan_support().
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/pci/ixgbe/ixv.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/ixgbe/ixv.c
diff -u src/sys/dev/pci/ixgbe/ixv.c:1.19 src/sys/dev/pci/ixgbe/ixv.c:1.20
--- src/sys/dev/pci/ixgbe/ixv.c:1.19 Mon Nov 28 06:09:19 2016
+++ src/sys/dev/pci/ixgbe/ixv.c Mon Nov 28 08:31:17 2016
@@ -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 @@ ixv_setup_vlan_support(struct adapter *a
** 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 */