summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_ti.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-05-23 19:25:14 +0000
committerphk <phk@FreeBSD.org>2001-05-23 19:25:14 +0000
commit31d58379e49d3c69e14104acf2b520798655a633 (patch)
tree5d27fc39c09ce2eedac01e67ce41c52f9493c717 /sys/pci/if_ti.c
parentb39746576c7f63926da98dc0ec151b47ff2ca4da (diff)
downloadFreeBSD-src-31d58379e49d3c69e14104acf2b520798655a633.zip
FreeBSD-src-31d58379e49d3c69e14104acf2b520798655a633.tar.gz
Vlan tags are 12 bits, mask off anything above since the chip doesn't
seem to do so for us. PR: 27567 Submitted by: Koji HINO hino@ccm.cl.nec.co.jp MFC after: 1 week
Diffstat (limited to 'sys/pci/if_ti.c')
-rw-r--r--sys/pci/if_ti.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c
index 4db8b7d..3e95df4 100644
--- a/sys/pci/if_ti.c
+++ b/sys/pci/if_ti.c
@@ -1751,7 +1751,7 @@ static void ti_rxeof(sc)
#if NVLAN > 0
if (cur_rx->ti_flags & TI_BDFLAG_VLAN_TAG) {
have_tag = 1;
- vlan_tag = cur_rx->ti_vlan_tag;
+ vlan_tag = cur_rx->ti_vlan_tag & 0xfff;
}
#endif
@@ -2016,7 +2016,7 @@ static int ti_encap(sc, m_head, txidx)
#if NVLAN > 0
if (ifv != NULL) {
f->ti_flags |= TI_BDFLAG_VLAN_TAG;
- f->ti_vlan_tag = ifv->ifv_tag;
+ f->ti_vlan_tag = ifv->ifv_tag & 0xfff;
} else {
f->ti_vlan_tag = 0;
}
OpenPOWER on IntegriCloud