diff options
author | Greg Rose <gregory.v.rose@intel.com> | 2011-08-27 02:24:59 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-10-17 08:08:05 -0400 |
commit | 4d2d55ac94f52ea8787270ec29579ced83f5f96b (patch) | |
tree | bc3551fe21a5569051b34197b6f23c428da845a2 /drivers/net/ethernet/intel/igbvf | |
parent | fd38f734cb8200529e281338514945fcbff2364b (diff) |
igbvf: Fix trunk vlan
Changes to clean up the VLAN Rx path by Jiri Pirko broke trunk VLAN.
Trunk VLANs in a VF driver are those set using
"ip link set <pfdev> vf <n> <vlanid>"
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
CC: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igbvf')
-rw-r--r-- | drivers/net/ethernet/intel/igbvf/netdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c index 32b3044fa45c..23cc40f22d6f 100644 --- a/drivers/net/ethernet/intel/igbvf/netdev.c +++ b/drivers/net/ethernet/intel/igbvf/netdev.c | |||
@@ -102,8 +102,8 @@ static void igbvf_receive_skb(struct igbvf_adapter *adapter, | |||
102 | { | 102 | { |
103 | if (status & E1000_RXD_STAT_VP) { | 103 | if (status & E1000_RXD_STAT_VP) { |
104 | u16 vid = le16_to_cpu(vlan) & E1000_RXD_SPC_VLAN_MASK; | 104 | u16 vid = le16_to_cpu(vlan) & E1000_RXD_SPC_VLAN_MASK; |
105 | 105 | if (test_bit(vid, adapter->active_vlans)) | |
106 | __vlan_hwaccel_put_tag(skb, vid); | 106 | __vlan_hwaccel_put_tag(skb, vid); |
107 | } | 107 | } |
108 | netif_receive_skb(skb); | 108 | netif_receive_skb(skb); |
109 | } | 109 | } |