diff options
author | Mao Wenan <maowenan@huawei.com> | 2019-09-05 09:57:12 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-06 15:04:57 +0200 |
commit | 6e1cdedcf0362fed3aedfe051d46bd7ee2a85fe1 (patch) | |
tree | 03a79bfefc7b054b3777efeb404a653fd8fad85c /drivers/net/ethernet/nvidia/forcedeth.c | |
parent | 7bdf4de1267780aa194b3a28c85a6c4d617b0bdb (diff) | |
download | linux-6e1cdedcf0362fed3aedfe051d46bd7ee2a85fe1.tar.bz2 |
net: sonic: return NETDEV_TX_OK if failed to map buffer
NETDEV_TX_BUSY really should only be used by drivers that call
netif_tx_stop_queue() at the wrong moment. If dma_map_single() is
failed to map tx DMA buffer, it might trigger an infinite loop.
This patch use NETDEV_TX_OK instead of NETDEV_TX_BUSY, and change
printk to pr_err_ratelimited.
Fixes: d9fb9f384292 ("*sonic/natsemi/ns83829: Move the National Semi-conductor drivers")
Signed-off-by: Mao Wenan <maowenan@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/nvidia/forcedeth.c')
0 files changed, 0 insertions, 0 deletions