Blame SOURCES/dpdk-dev-vfio-eventfd-should-be-non-block-and-not-inherited.patch
|
|
15b5e9 |
diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c
|
|
|
15b5e9 |
index aea1fb1..426953a 100644
|
|
|
15b5e9 |
--- a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c
|
|
|
15b5e9 |
+++ b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c
|
|
|
15b5e9 |
@@ -294,7 +294,7 @@ pci_vfio_setup_interrupts(struct rte_pci_device *dev, int vfio_dev_fd)
|
|
|
15b5e9 |
}
|
|
|
15b5e9 |
|
|
|
15b5e9 |
/* set up an eventfd for interrupts */
|
|
|
15b5e9 |
- fd = eventfd(0, 0);
|
|
|
15b5e9 |
+ fd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);
|
|
|
15b5e9 |
if (fd < 0) {
|
|
|
15b5e9 |
RTE_LOG(ERR, EAL, " cannot set up eventfd, "
|
|
|
15b5e9 |
"error %i (%s)\n", errno, strerror(errno));
|