diff options
author | Vasanthy Kolluri <vkolluri@cisco.com> | 2011-06-09 06:36:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-09 17:58:09 -0400 |
commit | 8757446d8df4446fc7f5d24ad6d53e9f265cc021 (patch) | |
tree | 622d76c722b84bec203089f85d8d0b429d72b7fa | |
parent | 6018e1183ba52735d47e8c183497d8598da75351 (diff) |
enic: Pass 802.1p bits for packets tagged with vlan zero
enic driver currently passes 802.1p bits to the upper layers for packets
tagged with non-zero vlan ids only. This patch extends such behaviour to
zero vlan tagged packets also.
The patch is dependant on the following kernel patches:
1) vlan_dev: VLAN 0 should be treated as "no vlan tag" (802.1p packet)
- net-next-2.6 git commit: ad1afb00393915a51c21b1ae8704562bf036855f
- Available 2.6.36 and later
2) vlan: Centralize handling of hardware acceleration.
- net-next-2.6 git commit: 3701e51382a026cba10c60b03efabe534fba4ca4
- Available 2.6.37 and later
Signed-off-by: Christian Benvenuti <benve@cisco.com>
Signed-off-by: Danny Guo <dannguo@cisco.com>
Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com>
Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: David Wang <dwang2@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/enic/enic_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index c7797ecd90d9..ea4aededbfe1 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c | |||
@@ -1266,8 +1266,7 @@ static void enic_rq_indicate_buf(struct vnic_rq *rq, | |||
1266 | 1266 | ||
1267 | skb->dev = netdev; | 1267 | skb->dev = netdev; |
1268 | 1268 | ||
1269 | if (enic->vlan_group && vlan_stripped && | 1269 | if (vlan_stripped) { |
1270 | (vlan_tci & CQ_ENET_RQ_DESC_VLAN_TCI_VLAN_MASK)) { | ||
1271 | 1270 | ||
1272 | if (netdev->features & NETIF_F_GRO) | 1271 | if (netdev->features & NETIF_F_GRO) |
1273 | vlan_gro_receive(&enic->napi[q_number], | 1272 | vlan_gro_receive(&enic->napi[q_number], |