]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/tap/tap_intr.c
net/tap: allow all-zero checksum for UDP over IPv4
[dpdk.git] / drivers / net / tap / tap_intr.c
index 7af0010e373a5b5a6e4f371e23b8afe878a16040..5cf4f173a0bc29a4fd868a13774714208751c55f 100644 (file)
@@ -7,7 +7,6 @@
  * Interrupts handling for tap driver.
  */
 
-#include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
@@ -72,7 +71,7 @@ tap_rx_intr_vec_install(struct rte_eth_dev *dev)
                struct rx_queue *rxq = pmd->dev->data->rx_queues[i];
 
                /* Skip queues that cannot request interrupts. */
-               if (!rxq || process_private->rxq_fds[i] <= 0) {
+               if (!rxq || process_private->rxq_fds[i] == -1) {
                        /* Use invalid intr_vec[] index to disable entry. */
                        intr_handle->intr_vec[i] =
                                RTE_INTR_VEC_RXTX_OFFSET +