From 0ca63093252a9cb27fce4edeff62c1c3d68ca615 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 16 Feb 2006 20:45:38 +0000 Subject: Only set HW VLAN assist flag when IFCAP_VLAN_HWTAGGING is set. --- sys/dev/pci/if_ti.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c index 87568a63095..c1a985aac4d 100644 --- a/sys/dev/pci/if_ti.c +++ b/sys/dev/pci/if_ti.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ti.c,v 1.75 2006/02/16 20:16:30 brad Exp $ */ +/* $OpenBSD: if_ti.c,v 1.76 2006/02/16 20:45:37 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -1481,7 +1481,8 @@ ti_gibinit(struct ti_softc *sc) rcb->ti_flags = TI_RCB_FLAG_HOST_RING; rcb->ti_flags |= TI_RCB_FLAG_IP_CKSUM | TI_RCB_FLAG_NO_PHDR_CKSUM; #if NVLAN > 0 - rcb->ti_flags |= TI_RCB_FLAG_VLAN_ASSIST; + if (ifp->if_capabilities & IFCAP_VLAN_HWTAGGING) + rcb->ti_flags |= TI_RCB_FLAG_VLAN_ASSIST; #endif rcb->ti_max_len = TI_TX_RING_CNT; if (sc->ti_hwrev == TI_HWREV_TIGON) -- cgit v1.2.3