fm10k: fix interrupt fault handling
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 17 Jul 2015 00:33:22 +0000 (17:33 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 22 Jul 2015 10:46:43 +0000 (12:46 +0200)
commit5fd61965ef818cccd9df309e1a54d9249a707dda
treed74724a8f0ec1019079b8a72f64b55536c44158d
parent28d0cf90e0785a7dca1d55cfcbcd61c2aaf08994
fm10k: fix interrupt fault handling

The fm10k driver was reading the interrupt cause register but then
using the interrupt mask register defines to look at the bits.
The result is that if a fault happens, the driver would never clear
the fault and would get into an infinite cycle of interrupts.

Note: I don't work for Intel or have the hardware manuals (probably
requires NDA anyway), but this looks logical and matches how the
known working Linux driver handles these bits.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Jing Chen <jing.d.chen@intel.com>
drivers/net/fm10k/fm10k_ethdev.c