* [PATCH] interrupts: add uio type to support multiple interrupt vector
@ 2022-04-07 14:44 Tianli Lai
2022-04-28 12:18 ` David Marchand
0 siblings, 1 reply; 2+ messages in thread
From: Tianli Lai @ 2022-04-07 14:44 UTC (permalink / raw)
To: dev; +Cc: Harman Kalra
vmxnet3 device use MSI-X interrupt type.
vmxnet3 driver configure the hardware to generate MSI-X interrupts
would fail when call rte_intr_cap_multiple function return zero.
Signed-off-by: Tianli Lai <laitianli@tom.com>
---
lib/eal/linux/eal_interrupts.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c
index d52ec8eb4c..4b4dffa20c 100644
--- a/lib/eal/linux/eal_interrupts.c
+++ b/lib/eal/linux/eal_interrupts.c
@@ -1596,6 +1596,9 @@ rte_intr_cap_multiple(struct rte_intr_handle *intr_handle)
if (rte_intr_type_get(intr_handle) == RTE_INTR_HANDLE_VDEV)
return 1;
+ if (rte_intr_type_get(intr_handle) == RTE_INTR_HANDLE_UIO)
+ return 1;
+
return 0;
}
--
2.27.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] interrupts: add uio type to support multiple interrupt vector
2022-04-07 14:44 [PATCH] interrupts: add uio type to support multiple interrupt vector Tianli Lai
@ 2022-04-28 12:18 ` David Marchand
0 siblings, 0 replies; 2+ messages in thread
From: David Marchand @ 2022-04-28 12:18 UTC (permalink / raw)
To: Tianli Lai; +Cc: dev, Harman Kalra
On Thu, Apr 7, 2022 at 8:45 AM Tianli Lai <laitianli@tom.com> wrote:
>
> vmxnet3 device use MSI-X interrupt type.
> vmxnet3 driver configure the hardware to generate MSI-X interrupts
> would fail when call rte_intr_cap_multiple function return zero.
Iiuc, the issue is that you are using vmxnet3 devices bound to igb_uio.
Out of curiosity, why not use vfio-pci?
>
> Signed-off-by: Tianli Lai <laitianli@tom.com>
> ---
> lib/eal/linux/eal_interrupts.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c
> index d52ec8eb4c..4b4dffa20c 100644
> --- a/lib/eal/linux/eal_interrupts.c
> +++ b/lib/eal/linux/eal_interrupts.c
> @@ -1596,6 +1596,9 @@ rte_intr_cap_multiple(struct rte_intr_handle *intr_handle)
> if (rte_intr_type_get(intr_handle) == RTE_INTR_HANDLE_VDEV)
> return 1;
>
> + if (rte_intr_type_get(intr_handle) == RTE_INTR_HANDLE_UIO)
> + return 1;
> +
Doing this will let drivers think there are multiple fds, ok.
Though (I am not entirely sure) with this patch only, are not all
vectors pointing to a single fd.
For example, did you test Rx interrupts? with more than 1 rxq?
--
David Marchand
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-28 12:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 14:44 [PATCH] interrupts: add uio type to support multiple interrupt vector Tianli Lai
2022-04-28 12:18 ` David Marchand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).