diff options
| author | Jiangfeng Xiao <[email protected]> | 2019-08-03 12:31:40 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-08-06 21:14:01 +0000 |
| commit | f2243b82785942be519016067ee6c55a063bbfe2 (patch) | |
| tree | 46c815f3b8cea0148dfd1caab9a6a47550c38d87 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | net: hisilicon: make hip04_tx_reclaim non-reentrant (diff) | |
| download | kernel-f2243b82785942be519016067ee6c55a063bbfe2.tar.gz kernel-f2243b82785942be519016067ee6c55a063bbfe2.zip | |
net: hisilicon: fix hip04-xmit never return TX_BUSY
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
