2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-09 22:24:04 +08:00
linux-next/drivers/staging/unisys
Neil Horman f6346ad662 staging: unisys: Fix improper use of NETDEV_TX_BUSY
Using NETDEV_TX_BUSY is tricky.  Its meant for situations where the error
in question is transient and quickly resolved.  But the driver rarely is
able to know that to a certainty.  And in the case of visornic, it just
uses it without any care for that, in the hopes that it won't loose frames,
even if the problem is that the skb is somehow malformed for the hardware.
If we get one of those kinds of skbs, NETDEV_TX_BUSY will just cause us to
spin, processing the same error over and over.

Fix it by dropping the frame, stopping the queue where appropriate, and
returning NETDEV_TX_OK

Signed-off-by: Neil Horman <nhorman@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-07-22 21:20:25 -07:00
..
Documentation staging: unisys: ABI documentation for new sysfs entries 2014-07-24 15:07:59 -07:00
include staging: unisys: prevent faults processing messages 2015-07-14 18:34:58 -07:00
visorbus staging: unisys: fix copyright statements 2015-07-16 10:12:45 -07:00
visornic staging: unisys: Fix improper use of NETDEV_TX_BUSY 2015-07-22 21:20:25 -07:00
Kconfig staging: unisys: Fix broken build when ARCH=um 2015-07-14 18:35:55 -07:00
MAINTAINERS staging: s-Par driver documentation 2014-03-04 17:04:28 -08:00
Makefile staging: unisys: Add s-Par visornic ethernet driver 2015-06-16 14:34:55 -07:00
TODO staging: unisys: update MAINTAINERS and TODO 2014-03-08 22:42:14 -08:00