diff options
author | Mao Wenan <maowenan@huawei.com> | 2019-09-05 04:57:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-29 12:21:48 +0300 |
commit | 42b59e28e1e984935914280fe963731fa6d9d8f2 (patch) | |
tree | 78c4f7d81163b0bc6e356e962489d42d1ab01a56 /fs | |
parent | fc535dc4977631b7ee8aefd6534173d94b270657 (diff) | |
download | linux-42b59e28e1e984935914280fe963731fa6d9d8f2.tar.xz |
net: sonic: return NETDEV_TX_OK if failed to map buffer
[ Upstream commit 6e1cdedcf0362fed3aedfe051d46bd7ee2a85fe1 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions