Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210267
b: refs/heads/master
c: de6be6c
h: refs/heads/master
i:
  210265: 00c0980
  210263: bcc3152
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Sep 1, 2010
1 parent d3cd003 commit 9fb941a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 750e9fad8c7f44e0005ffb7195f72dd76978c2cf
refs/heads/master: de6be6c1f77798c4da38301693d33aff1cd76e84
19 changes: 11 additions & 8 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2520,24 +2520,27 @@ static inline void sky2_tx_done(struct net_device *dev, u16 last)
}
}

static inline void sky2_skb_rx(const struct sky2_port *sky2,
static inline void sky2_skb_rx(struct napi_struct *napi,
const struct sky2_port *sky2,
u32 status, struct sk_buff *skb)
{
#ifdef SKY2_VLAN_TAG_USED
u16 vlan_tag = be16_to_cpu(sky2->rx_tag);
if (sky2->vlgrp && (status & GMR_FS_VLAN)) {
if (skb->ip_summed == CHECKSUM_NONE)
u16 vlan_tag = be16_to_cpu(sky2->rx_tag);

if (skb->ip_summed == CHECKSUM_NONE ||
sky2->netdev != napi->dev)
vlan_hwaccel_receive_skb(skb, sky2->vlgrp, vlan_tag);
else
vlan_gro_receive(&sky2->hw->napi, sky2->vlgrp,
vlan_tag, skb);
vlan_gro_receive(napi, sky2->vlgrp, vlan_tag, skb);
return;
}
#endif
if (skb->ip_summed == CHECKSUM_NONE)
if (skb->ip_summed == CHECKSUM_NONE ||
sky2->netdev != napi->dev)
netif_receive_skb(skb);
else
napi_gro_receive(&sky2->hw->napi, skb);
napi_gro_receive(napi, skb);
}

static inline void sky2_rx_done(struct sky2_hw *hw, unsigned port,
Expand Down Expand Up @@ -2638,7 +2641,7 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do, u16 idx)

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

sky2_skb_rx(sky2, status, skb);
sky2_skb_rx(&hw->napi, sky2, status, skb);

/* Stop after net poll weight */
if (++work_done >= to_do)
Expand Down

0 comments on commit 9fb941a

Please sign in to comment.