sfc: don't rearm interrupts if busy polling

Since commit 364b605573 ("net: busy-poll: return busypolling status
to drivers"), napi_complete_done() returns a boolean that can be used
by drivers to conditionally rearm interrupts.

Testing with a 7142 shows a small latency improvement of ~100 ns.

Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Bert Kenward 2017-02-06 16:50:55 +00:00 коммит произвёл David S. Miller
Родитель d15c9ede61
Коммит f820c0ac6c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -328,8 +328,8 @@ static int efx_poll(struct napi_struct *napi, int budget)
* since efx_nic_eventq_read_ack() will have no effect if * since efx_nic_eventq_read_ack() will have no effect if
* interrupts have already been disabled. * interrupts have already been disabled.
*/ */
napi_complete_done(napi, spent); if (napi_complete_done(napi, spent))
efx_nic_eventq_read_ack(channel); efx_nic_eventq_read_ack(channel);
} }
return spent; return spent;