Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121932
b: refs/heads/master
c: d6279c8
h: refs/heads/master
v: v3
  • Loading branch information
Brice Goglin authored and David S. Miller committed Nov 20, 2008
1 parent 27f16d6 commit 233db04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: a61fc1e995e6ccc884df50a1609b831a4b45a600
refs/heads/master: d6279c88f246adf94b7f7a014c5f19d527bc785b
6 changes: 4 additions & 2 deletions trunk/drivers/net/myri10ge/myri10ge.c
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ myri10ge_rx_done(struct myri10ge_slice_state *ss, struct myri10ge_rx_buf *rx,

skb = netdev_alloc_skb(dev, MYRI10GE_HLEN + 16);
if (unlikely(skb == NULL)) {
mgp->stats.rx_dropped++;
ss->stats.rx_dropped++;
do {
i--;
put_page(rx_frags[i].page);
Expand Down Expand Up @@ -2926,6 +2926,7 @@ static int myri10ge_sw_tso(struct sk_buff *skb, struct net_device *dev)
{
struct sk_buff *segs, *curr;
struct myri10ge_priv *mgp = netdev_priv(dev);
struct myri10ge_slice_state *ss;
int status;

segs = skb_gso_segment(skb, dev->features & ~NETIF_F_TSO6);
Expand All @@ -2952,8 +2953,9 @@ static int myri10ge_sw_tso(struct sk_buff *skb, struct net_device *dev)
return 0;

drop:
ss = &mgp->ss[skb_get_queue_mapping(skb)];
dev_kfree_skb_any(skb);
mgp->stats.tx_dropped += 1;
ss->stats.tx_dropped += 1;
return 0;
}

Expand Down

0 comments on commit 233db04

Please sign in to comment.