]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit92a578c61853aeb7e84071dad605ebeaff555279
tree4dbe695612a22eb864d3239a4dc37835637d5db5
parentfed7d001c74ccd471b9781e481c929b16d5b5d26
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: 599e0738a0ce ("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