Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15795
b: refs/heads/master
c: 0e3ff6a
h: refs/heads/master
i:
  15793: 26ac912
  15791: cb9a07d
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Dec 12, 2005
1 parent 3a0c210 commit c24710c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 6cdbbdf3055f4657c9d6ccc79257bbcac1a9a1fc
refs/heads/master: 0e3ff6aab1ff2d093996bd7b8c9c06c3d823855c
7 changes: 3 additions & 4 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ static inline unsigned tx_le_req(const struct sk_buff *skb)
if (skb_shinfo(skb)->tso_size)
++count;

if (skb->ip_summed)
if (skb->ip_summed == CHECKSUM_HW)
++count;

return count;
Expand Down Expand Up @@ -1207,7 +1207,7 @@ static int sky2_xmit_frame(struct sk_buff *skb, struct net_device *dev)
sky2_put_idx(hw, txqaddr[sky2->port], sky2->tx_prod,
&sky2->tx_last_put, TX_RING_SIZE);

if (tx_avail(sky2) < MAX_SKB_TX_LE + 1)
if (tx_avail(sky2) <= MAX_SKB_TX_LE)
netif_stop_queue(dev);

out_unlock:
Expand All @@ -1229,8 +1229,7 @@ static void sky2_tx_complete(struct sky2_port *sky2, u16 done)
struct net_device *dev = sky2->netdev;
unsigned i;

if (done == sky2->tx_cons)
return;
BUG_ON(done >= TX_RING_SIZE);

if (unlikely(netif_msg_tx_done(sky2)))
printk(KERN_DEBUG "%s: tx done, up to %u\n",
Expand Down

0 comments on commit c24710c

Please sign in to comment.