mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
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
This commit is contained in:
parent
4787f91d6b
commit
f73cf22ade
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77058
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user