]> git.baikalelectronics.ru Git - kernel.git/commit
net: aquantia: Add tx clean budget and valid budget handling logic
authorIgor Russkikh <igor.russkikh@aquantia.com>
Tue, 20 Mar 2018 11:40:34 +0000 (14:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 16:02:49 +0000 (12:02 -0400)
commit255f7a053071e80df9206ac96ac2082db7915ce7
tree438e93aba1e1f1dc1d2bb42989ba82b68354ff36
parent9785830852c709d7502a03bcd55eeade28b30c1e
net: aquantia: Add tx clean budget and valid budget handling logic

We should report to napi full budget only when we have more job to do.
Before this fix, on any tx queue cleanup we forced napi to do poll again.
Thats a waste of cpu resources and caused storming with napi polls when
there was at least one tx on each interrupt.

With this fix we report full budget only when there is more job on TX
to do. Or, as before, when rx budget was fully consumed.

Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_cfg.h
drivers/net/ethernet/aquantia/atlantic/aq_ring.c
drivers/net/ethernet/aquantia/atlantic/aq_ring.h
drivers/net/ethernet/aquantia/atlantic/aq_vec.c