net: hisilicon: Fix ping latency when deal with high throughput
authorJiangfeng Xiao <xiaojiangfeng@huawei.com>
Mon, 28 Oct 2019 05:09:46 +0000 (13:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Oct 2019 23:34:06 +0000 (16:34 -0700)
commite56bd641ca61beb92b135298d5046905f920b734
tree9d96737ded975c8392cd16ce57341e87948487cf
parente19868efea0c103f23b4b7e986fd0a703822111f
net: hisilicon: Fix ping latency when deal with high throughput

This is due to error in over budget processing.
When dealing with high throughput, the used buffers
that exceeds the budget is not cleaned up. In addition,
it takes a lot of cycles to clean up the used buffer,
and then the buffer where the valid data is located can take effect.

Signed-off-by: Jiangfeng Xiao <xiaojiangfeng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hip04_eth.c