tag from the received frame. Do not add the tag from the receive
descriptor in this case so that the packet isn't tagged twice.
Matches FreeBSD.
ok brad@
-/* $OpenBSD: if_bge.c,v 1.353 2014/02/24 20:00:48 brad Exp $ */
+/* $OpenBSD: if_bge.c,v 1.354 2014/04/22 11:54:46 naddy Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
bge_rxcsum(sc, cur_rx, m);
#if NVLAN > 0
- if (cur_rx->bge_flags & BGE_RXBDFLAG_VLAN_TAG) {
+ if (ifp->if_capabilities & IFCAP_VLAN_HWTAGGING &&
+ cur_rx->bge_flags & BGE_RXBDFLAG_VLAN_TAG) {
m->m_pkthdr.ether_vtag = cur_rx->bge_vlan_tag;
m->m_flags |= M_VLANTAG;
}