]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Break NAPI processing after one ring-full of TX completions
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 28 Apr 2010 09:29:42 +0000 (09:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Apr 2010 19:44:39 +0000 (12:44 -0700)
commitcef4b5de8eb22c893e5c995dd4c896e1d699cf03
tree75b7222d666c5d7d71c153503d1ce6890e901e1f
parent15fdab739a0a5fbbc471724160e118098d7ee594
sfc: Break NAPI processing after one ring-full of TX completions

Currently TX completions do not count towards the NAPI budget.  This
means a continuous stream of TX completions can cause the polling
function to loop indefinitely with scheduling disabled.  To avoid
this, follow the common practice of reporting the budget spent after
processing one ring-full of TX completions.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/efx.c
drivers/net/sfc/nic.c