diff options
| author | Jiangfeng Xiao <xiaojiangfeng@huawei.com> | 2019-08-03 20:31:40 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-06 10:18:08 +0200 |
| commit | e3ae5d356fb608716555ac97ba1b37a52dc0b0d9 (patch) | |
| tree | 653dae884a7beac80f0f8ea37c50afe6ef3eb22b /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 47cadfd9715630479c1930756aed18713f8c0aba (diff) | |
net: hisilicon: fix hip04-xmit never return TX_BUSY
[ Upstream commit f2243b82785942be519016067ee6c55a063bbfe2 ]
TX_DESC_NUM is 256, in tx_count, the maximum value of
mod(TX_DESC_NUM - 1) is 254, the variable "count" in
the hip04_mac_start_xmit function is never equal to
(TX_DESC_NUM - 1), so hip04_mac_start_xmit never
return NETDEV_TX_BUSY.
tx_count is modified to mod(TX_DESC_NUM) so that
the maximum value of tx_count can reach
(TX_DESC_NUM - 1), then hip04_mac_start_xmit can reurn
NETDEV_TX_BUSY.
Signed-off-by: Jiangfeng Xiao <xiaojiangfeng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
