projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e584d6
)
claw: invalid return codes from hard_start_xmit
author
Ursula Braun
<ursula.braun@de.ibm.com>
Tue, 24 Mar 2009 03:27:46 +0000
(
03:27
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 24 Mar 2009 22:24:29 +0000
(15:24 -0700)
Avoid kernel warnings by using the correct hard_start_xmit return
code NETDEV_TX_BUSY for skb requeuing.
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/claw.c
patch
|
blob
|
history
diff --git
a/drivers/s390/net/claw.c
b/drivers/s390/net/claw.c
index
6669adf
..
a4524ec
100644
(file)
--- a/
drivers/s390/net/claw.c
+++ b/
drivers/s390/net/claw.c
@@
-348,6
+348,8
@@
claw_tx(struct sk_buff *skb, struct net_device *dev)
rc=claw_hw_tx( skb, dev, 1 );
spin_unlock_irqrestore(get_ccwdev_lock(p_ch->cdev), saveflags);
CLAW_DBF_TEXT_(4, trace, "clawtx%d", rc);
+ if (rc)
+ rc = NETDEV_TX_BUSY;
return rc;
} /* end of claw_tx */