1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00

Correct code that was lost somewhere in the past,

this was designed to keep duplicate null vlan tags from
being added. When doing vlans purely via the switch
this problem will occur. Reported by external customer.
This commit is contained in:
Jack F Vogel 2012-10-31 18:16:42 +00:00
parent 4ceaf45de5
commit 89da5b3198
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242403

View File

@ -4688,7 +4688,7 @@ ixgbe_rxeof(struct ix_queue *que, int count)
/* first desc of a non-ps chain */
sendmp->m_flags |= M_PKTHDR;
sendmp->m_pkthdr.len = mp->m_len;
if (staterr & IXGBE_RXD_STAT_VP) {
if (vtag) {
sendmp->m_pkthdr.ether_vtag = vtag;
sendmp->m_flags |= M_VLANTAG;
}