raw/ifpga/base: fix interrupt handler instance usage
authorWei Huang <wei.huang@intel.com>
Fri, 23 Oct 2020 08:59:55 +0000 (04:59 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:30:39 +0000 (23:30 +0100)
commitdf016da79b59bf48118deab544d4e1829b0eebe1
tree7dcbe0dbfd6835aa19776fda7756673f61159aa2
parent9810975cf424b9ee3984b0541dc71f445b216697
raw/ifpga/base: fix interrupt handler instance usage

Interrupt handler copied to the local 'intr_handle' variable by value
before passing it to IRQ functions.
This leads IRQ functions update the local variable instead of
'ifpga_irq_handle'.

Instead, using 'intr_handle' local variable as pointer to
'ifpga_irq_handle' as intended.

Fixes: e0a1aafe2af9 ("raw/ifpga: introduce IRQ functions")
Cc: stable@dpdk.org
Signed-off-by: Wei Huang <wei.huang@intel.com>
Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
drivers/raw/ifpga/ifpga_rawdev.c