net/nfp: fix Rx interrupt
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Tue, 21 Mar 2017 10:43:21 +0000 (10:43 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:45 +0000 (18:59 +0200)
Current code enables RX interrupts even if this it not
requested.

Fixes: ea121b28316d ("net/nfp: add Rx interrupts")
Cc: stable@dpdk.org
Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c

index 6155d7c..a1ad97a 100644 (file)
@@ -708,7 +708,8 @@ nfp_net_start(struct rte_eth_dev *dev)
                        return -1;
        }
 
-       nfp_configure_rx_interrupt(dev, intr_handle);
+       if (rte_intr_dp_is_en(intr_handle))
+               nfp_configure_rx_interrupt(dev, intr_handle);
 
        rte_intr_enable(intr_handle);