]> git.baikalelectronics.ru Git - kernel.git/commit
enic: unmask intr only when napi is complete
authorGovindarajulu Varadarajan <gvaradar@cisco.com>
Mon, 22 May 2017 19:19:48 +0000 (12:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 May 2017 15:05:45 +0000 (11:05 -0400)
commit28cd5e170ecbb246d105d15eb0a63d8be165bba1
treeccf156dce08febbdad6edd0fa127bc8d2746d589
parent1c7b1f33070cf54d2dbdc2c084e5e3a08ff9b364
enic: unmask intr only when napi is complete

In case of busy poll, napi_complete_done returns false and does not
dequeue napi. In this case do not unmask the intr. We are guaranteed
napi is called again. This reduces unnecessary iowrites.

Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_main.c