Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298467
b: refs/heads/master
c: 2e57b79
h: refs/heads/master
i:
  298465: d9ebaa7
  298463: 190ae0d
v: v3
  • Loading branch information
Rick Jones authored and David S. Miller committed Mar 28, 2012
1 parent ded1655 commit ce70294
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 973db5696e6481433fa1bbf4ddc01c56a83effd7
refs/heads/master: 2e57b79ccef1ff1422fdf45a9b28fe60f8f084f7
7 changes: 4 additions & 3 deletions trunk/drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,12 +625,13 @@ static netdev_tx_t start_xmit(struct sk_buff *skb, struct net_device *dev)

/* This can happen with OOM and indirect buffers. */
if (unlikely(capacity < 0)) {
if (net_ratelimit()) {
if (likely(capacity == -ENOMEM)) {
if (likely(capacity == -ENOMEM)) {
if (net_ratelimit()) {
dev_warn(&dev->dev,
"TX queue failure: out of memory\n");
} else {
dev->stats.tx_fifo_errors++;
dev->stats.tx_fifo_errors++;
if (net_ratelimit())
dev_warn(&dev->dev,
"Unexpected TX queue failure: %d\n",
capacity);
Expand Down

0 comments on commit ce70294

Please sign in to comment.