Mao Wenan 6e1cdedcf0 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>
2019-09-06 15:04:57 +02:00
..
2019-08-28 16:02:32 -07:00
2019-08-18 14:11:28 -07:00
2019-06-21 09:58:42 -07:00
2019-07-03 11:24:38 -07:00
2019-05-14 15:20:11 -07:00
2019-07-08 19:25:19 -07:00
2019-06-25 14:26:54 +02:00