Re: [dpdk-dev] [PATCH] igb_uio: fix unknown symbols

2017-10-12 Thread Patrick MacArthur
On 10/12/2017 10:46 PM, Ferruh Yigit wrote: This patch partially reverts the commit d196343a258e and adds some functions from Markus' previous version of the patch [1]. igb_uio uses pci_msi_unmask_irq() and pci_msi_mask_irq() kernel APIs when kernel version is >= 3.19 because these APIs are impl

Re: [dpdk-dev] [PATCH v7 5/6] igb_uio: use kernel functions for masking MSI-X

2017-10-09 Thread Patrick MacArthur
Hi, Markus, This commit appears to cause a regression on CentOS 7.4 with the in-box Linux 3.10.0-639-2.2.el7.x86_64 kernel. Although the kernel module appears to build correctly, when I attempt to load the module with insmod, it fails and I see the following errors in dmesg: [620323.805125]

Re: [dpdk-dev] [PATCH v2] vfio: fix close unchecked file descriptor

2017-09-21 Thread Patrick MacArthur
Signed-off-by: Kuba Kozak Acked-by: Anatoly Burakov FWIW: Acked-by: Patrick MacArthur

Re: [dpdk-dev] [PATCH] vfio: fix close unchecked file descriptor

2017-09-20 Thread Patrick MacArthur
On 09/20/2017 10:39 AM, Burakov, Anatoly wrote: On 20-Sep-17 3:34 PM, Patrick MacArthur wrote: On 09/20/2017 05:59 AM, Kuba Kozak wrote: Add file descriptor value check before calling close() function. Coverity issue: 141297 Fixes: 811b6b25060f ("vfio: fix file descriptor leak in

Re: [dpdk-dev] [PATCH] vfio: fix close unchecked file descriptor

2017-09-20 Thread Patrick MacArthur
n_sock, fd); - close(fd); + if (fd != -1) + close(fd); IMHO this should be: if (fd >= 0) What specifically is Coverity complaining about here? Is there a specific code path that leads to fd being -1 here? Thanks, Patrick MacArthur

[dpdk-dev] [PATCH] eal: Copy raw strings taken from command line

2017-08-04 Thread Patrick MacArthur
these buffers as there is nowhere to free them. Using static buffers is an option but would make these strings have a fixed maximum length whereas there is currently no limit defined by the API. [1] http://spdk.io [2] https://github.com/zrlio/urdma Fixes: af75078fece3 ("first public release"

[dpdk-dev] [PATCH] vfio: fix file descriptor leak in multi-process applications

2017-01-26 Thread Patrick MacArthur
ned-off-by: Patrick MacArthur --- lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c b/lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c index 00cf919b64d0..fb4a2f84b180 100644 --- a/lib/librte_eal/li