diff options
author | David S. Miller <davem@davemloft.net> | 2010-09-02 12:39:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-02 12:39:09 -0400 |
commit | 5e4e7573e1ec286120109e73bf54cff465488725 (patch) | |
tree | 78f4e8b76d5a5baacac3a64fce016634d50fc3a9 /drivers | |
parent | 3d3be4333fdf6faa080947b331a6a19bce1a4f57 (diff) |
Revert "sky2: don't do GRO on second port"
This reverts commit de6be6c1f77798c4da38301693d33aff1cd76e84.
After some discussion with Jarek Poplawski and Eric Dumazet, we've
decided that this change is incorrect.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/sky2.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index a6ff113d34bb..194e5cf8c763 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -2520,27 +2520,24 @@ static inline void sky2_tx_done(struct net_device *dev, u16 last) | |||
2520 | } | 2520 | } |
2521 | } | 2521 | } |
2522 | 2522 | ||
2523 | static inline void sky2_skb_rx(struct napi_struct *napi, | 2523 | static inline void sky2_skb_rx(const struct sky2_port *sky2, |
2524 | const struct sky2_port *sky2, | ||
2525 | u32 status, struct sk_buff *skb) | 2524 | u32 status, struct sk_buff *skb) |
2526 | { | 2525 | { |
2527 | #ifdef SKY2_VLAN_TAG_USED | 2526 | #ifdef SKY2_VLAN_TAG_USED |
2527 | u16 vlan_tag = be16_to_cpu(sky2->rx_tag); | ||
2528 | if (sky2->vlgrp && (status & GMR_FS_VLAN)) { | 2528 | if (sky2->vlgrp && (status & GMR_FS_VLAN)) { |
2529 | u16 vlan_tag = be16_to_cpu(sky2->rx_tag); | 2529 | if (skb->ip_summed == CHECKSUM_NONE) |
2530 | |||
2531 | if (skb->ip_summed == CHECKSUM_NONE || | ||
2532 | sky2->netdev != napi->dev) | ||
2533 | vlan_hwaccel_receive_skb(skb, sky2->vlgrp, vlan_tag); | 2530 | vlan_hwaccel_receive_skb(skb, sky2->vlgrp, vlan_tag); |
2534 | else | 2531 | else |
2535 | vlan_gro_receive(napi, sky2->vlgrp, vlan_tag, skb); | 2532 | vlan_gro_receive(&sky2->hw->napi, sky2->vlgrp, |
2533 | vlan_tag, skb); | ||
2536 | return; | 2534 | return; |
2537 | } | 2535 | } |
2538 | #endif | 2536 | #endif |
2539 | if (skb->ip_summed == CHECKSUM_NONE || | 2537 | if (skb->ip_summed == CHECKSUM_NONE) |
2540 | sky2->netdev != napi->dev) | ||
2541 | netif_receive_skb(skb); | 2538 | netif_receive_skb(skb); |
2542 | else | 2539 | else |
2543 | napi_gro_receive(napi, skb); | 2540 | napi_gro_receive(&sky2->hw->napi, skb); |
2544 | } | 2541 | } |
2545 | 2542 | ||
2546 | static inline void sky2_rx_done(struct sky2_hw *hw, unsigned port, | 2543 | static inline void sky2_rx_done(struct sky2_hw *hw, unsigned port, |
@@ -2641,7 +2638,7 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do, u16 idx) | |||
2641 | 2638 | ||
2642 | skb->protocol = eth_type_trans(skb, dev); | 2639 | skb->protocol = eth_type_trans(skb, dev); |
2643 | 2640 | ||
2644 | sky2_skb_rx(&hw->napi, sky2, status, skb); | 2641 | sky2_skb_rx(sky2, status, skb); |
2645 | 2642 | ||
2646 | /* Stop after net poll weight */ | 2643 | /* Stop after net poll weight */ |
2647 | if (++work_done >= to_do) | 2644 | if (++work_done >= to_do) |