nfp: use correct index to mask link state irq
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 16 Jun 2016 13:42:50 +0000 (14:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jun 2016 05:02:54 +0000 (22:02 -0700)
commitce449ba77a2271dce9771fb1f3eb37e4be6a8b81
tree4dbe695612a22eb864d3239a4dc37835637d5db5
parentd5d8760b78d0cfafe292f965f599988138b06a70
nfp: use correct index to mask link state irq

We were using an incorrect define to get the irq vector number.
NFP_NET_CFG_LSC is a control BAR offset, LSC interrupt vector
index is called NFP_NET_IRQ_LSC_IDX.  For machines with less
than 30 CPUs this meant that we were disabling/enabling IRQ 0.
For bigger hosts we were just playing with the 31st RX/TX
interrupt.

Fixes: 0ba40af963f0 ("nfp: move link state interrupt request/free calls")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c