summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCunming Liang <cunming.liang@intel.com>2015-07-20 11:02:23 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-27 23:13:56 +0200
commit5cbae268decd7dce54b8fc623b6d58db16375047 (patch)
tree0c868ad8035e4c823b985268cb8d30eaf2a4380e
parent156f7971ed425dc125c1ee7e83edd472a714bbd5 (diff)
downloaddpdk-5cbae268decd7dce54b8fc623b6d58db16375047.zip
dpdk-5cbae268decd7dce54b8fc623b6d58db16375047.tar.gz
dpdk-5cbae268decd7dce54b8fc623b6d58db16375047.tar.xz
eal/linux: fix link status interrupt with uio_pci_generic
The intr handle type(RTE_INTR_HANDLE_UIO_INTX) was introduced by UIO pci generic. When turning on the lsc interrupt, it complains fd read error. The patch uses the correct read size in the case of RTE_INTR_HANDLE_UIO_INTX. Fixes: 3f313bef3467 ("eal/linux: fix irq handling with igb_uio") Reported-by: Yong Liu <yong.liu@intel.com> Signed-off-by: Cunming Liang <cunming.liang@intel.com>
-rw-r--r--lib/librte_eal/linuxapp/eal/eal_interrupts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c
index 12105cc..e919fb0 100644
--- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c
+++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c
@@ -684,6 +684,7 @@ eal_intr_process_interrupts(struct epoll_event *events, int nfds)
/* set the length to be read dor different handle type */
switch (src->intr_handle.type) {
case RTE_INTR_HANDLE_UIO:
+ case RTE_INTR_HANDLE_UIO_INTX:
bytes_read = sizeof(buf.uio_intr_count);
break;
case RTE_INTR_HANDLE_ALARM: