ixgbe: check return value of napi_complete_done()
authorSong Liu <songliubraving@fb.com>
Wed, 3 Oct 2018 18:30:35 +0000 (11:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Oct 2018 21:40:32 +0000 (14:40 -0700)
commit4233cfe6ec4683497d7318f55ce7617e97f2e610
tree5a742ed70e661b7a2e166e825a53ff6e24251335
parent2cc543f5cd6deda27ef463686fa08c16c8c0990b
ixgbe: check return value of napi_complete_done()

The NIC driver should only enable interrupts when napi_complete_done()
returns true. This patch adds the check for ixgbe.

Cc: stable@vger.kernel.org # 4.10+
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c