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)
commit9acfd1c02993b4fb11f08104e7166249925f25d5
treeccf156dce08febbdad6edd0fa127bc8d2746d589
parentf93e1cdcf42c1218e2a73be477d8ac21135e7f56
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