Skip to content

Commit 5e4e757

Browse files
committed
Revert "sky2: don't do GRO on second port"
This reverts commit de6be6c. 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>
1 parent 3d3be43 commit 5e4e757

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

drivers/net/sky2.c

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2520,27 +2520,24 @@ static inline void sky2_tx_done(struct net_device *dev, u16 last)
25202520
}
25212521
}
25222522

2523-
static inline void sky2_skb_rx(struct napi_struct *napi,
2524-
const struct sky2_port *sky2,
2523+
static inline void sky2_skb_rx(const struct sky2_port *sky2,
25252524
u32 status, struct sk_buff *skb)
25262525
{
25272526
#ifdef SKY2_VLAN_TAG_USED
2527+
u16 vlan_tag = be16_to_cpu(sky2->rx_tag);
25282528
if (sky2->vlgrp && (status & GMR_FS_VLAN)) {
2529-
u16 vlan_tag = be16_to_cpu(sky2->rx_tag);
2530-
2531-
if (skb->ip_summed == CHECKSUM_NONE ||
2532-
sky2->netdev != napi->dev)
2529+
if (skb->ip_summed == CHECKSUM_NONE)
25332530
vlan_hwaccel_receive_skb(skb, sky2->vlgrp, vlan_tag);
25342531
else
2535-
vlan_gro_receive(napi, sky2->vlgrp, vlan_tag, skb);
2532+
vlan_gro_receive(&sky2->hw->napi, sky2->vlgrp,
2533+
vlan_tag, skb);
25362534
return;
25372535
}
25382536
#endif
2539-
if (skb->ip_summed == CHECKSUM_NONE ||
2540-
sky2->netdev != napi->dev)
2537+
if (skb->ip_summed == CHECKSUM_NONE)
25412538
netif_receive_skb(skb);
25422539
else
2543-
napi_gro_receive(napi, skb);
2540+
napi_gro_receive(&sky2->hw->napi, skb);
25442541
}
25452542

25462543
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)
26412638

26422639
skb->protocol = eth_type_trans(skb, dev);
26432640

2644-
sky2_skb_rx(&hw->napi, sky2, status, skb);
2641+
sky2_skb_rx(sky2, status, skb);
26452642

26462643
/* Stop after net poll weight */
26472644
if (++work_done >= to_do)

0 commit comments

Comments
 (0)