diff options
author | jfv <jfv@FreeBSD.org> | 2012-10-31 18:16:42 +0000 |
---|---|---|
committer | jfv <jfv@FreeBSD.org> | 2012-10-31 18:16:42 +0000 |
commit | 82e50468a7cd7e5db38adc671ca3b2dee3c5cd82 (patch) | |
tree | 26485e67bc3051e8dd7398d722e422a7d63f2462 /sys/dev/ixgbe/ixgbe.c | |
parent | d38d7bb24528def9112ecd75c967b4202e87cc4e (diff) | |
download | FreeBSD-src-82e50468a7cd7e5db38adc671ca3b2dee3c5cd82.zip FreeBSD-src-82e50468a7cd7e5db38adc671ca3b2dee3c5cd82.tar.gz |
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.
Diffstat (limited to 'sys/dev/ixgbe/ixgbe.c')
-rw-r--r-- | sys/dev/ixgbe/ixgbe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c index e7011af..33f9b5b 100644 --- a/sys/dev/ixgbe/ixgbe.c +++ b/sys/dev/ixgbe/ixgbe.c @@ -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; } |