diff options
author | Patrick McHardy <kaber@trash.net> | 2008-07-06 23:48:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-06 23:48:41 -0400 |
commit | 38b221957b155ef410bdc28856a66386303fbd5a (patch) | |
tree | 458006267c33308be8812a9def8eec7cbb23192a /drivers/net/ixgb/ixgb_main.c | |
parent | 4b5a698ef423eebc37cfacc6d3376d6dffd5bf83 (diff) |
netdrv: don't truncate VLAN TCI with VLAN stripping
The vlan_hwaccel_{rx,receive_skb} functions expect the full TCI field
for priority mappings, don't truncate the upper 4 bits.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgb/ixgb_main.c')
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index cb8daddafa29..41f3adf5f375 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -2045,16 +2045,14 @@ ixgb_clean_rx_irq(struct ixgb_adapter *adapter) | |||
2045 | #ifdef CONFIG_IXGB_NAPI | 2045 | #ifdef CONFIG_IXGB_NAPI |
2046 | if(adapter->vlgrp && (status & IXGB_RX_DESC_STATUS_VP)) { | 2046 | if(adapter->vlgrp && (status & IXGB_RX_DESC_STATUS_VP)) { |
2047 | vlan_hwaccel_receive_skb(skb, adapter->vlgrp, | 2047 | vlan_hwaccel_receive_skb(skb, adapter->vlgrp, |
2048 | le16_to_cpu(rx_desc->special) & | 2048 | le16_to_cpu(rx_desc->special)); |
2049 | IXGB_RX_DESC_SPECIAL_VLAN_MASK); | ||
2050 | } else { | 2049 | } else { |
2051 | netif_receive_skb(skb); | 2050 | netif_receive_skb(skb); |
2052 | } | 2051 | } |
2053 | #else /* CONFIG_IXGB_NAPI */ | 2052 | #else /* CONFIG_IXGB_NAPI */ |
2054 | if(adapter->vlgrp && (status & IXGB_RX_DESC_STATUS_VP)) { | 2053 | if(adapter->vlgrp && (status & IXGB_RX_DESC_STATUS_VP)) { |
2055 | vlan_hwaccel_rx(skb, adapter->vlgrp, | 2054 | vlan_hwaccel_rx(skb, adapter->vlgrp, |
2056 | le16_to_cpu(rx_desc->special) & | 2055 | le16_to_cpu(rx_desc->special)); |
2057 | IXGB_RX_DESC_SPECIAL_VLAN_MASK); | ||
2058 | } else { | 2056 | } else { |
2059 | netif_rx(skb); | 2057 | netif_rx(skb); |
2060 | } | 2058 | } |