aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorLipeng <lipeng321@huawei.com>2017-10-23 19:51:07 +0800
committerDavid S. Miller <davem@davemloft.net>2017-10-24 01:16:42 +0100
commit24e750c410ae046d1236af50014cbc697bb375d7 (patch)
tree6e51b577618ddc2b30c6c94f8692ad244daff9eb /net/ipv4/tcp_ipv4.c
parent51145dae2748233315a7a411cd97f4bedf8cc22f (diff)
net: hns3: fix a bug about hns3_clean_tx_ring
The return value of hns3_clean_tx_ring means tx ring clean result. Return true means clean complete and there is no more pakcet need clean. Retrun false means there is packets need clean and napi need poll again. The last return of hns3_clean_tx_ring is "return !!budget" as budget will decrease when clean a buffer. If there is no valid BD in TX ring, return 0 for hns3_clean_tx_ring will cause napi poll again and never complete the napi poll. This patch fixes the bug. Fixes: 76ad4f0 (net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC) Signed-off-by: Lipeng <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions