[dpdk-dev] net/sfc: fix LSC interrupt support for UIO cases
Checks
Commit Message
Recently link status change interrupt was enabled by default in testpmd,
it has opened the driver bug with not working LSC interrupt if either
igb_uio or uio_pci_generic kernel driver is used.
Fixes: 06bc197796e2 ("net/sfc: interrupts support sufficient for event queue init")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
drivers/net/sfc/sfc_intr.c | 2 ++
1 file changed, 2 insertions(+)
Comments
On 4/21/2017 1:16 PM, Andrew Rybchenko wrote:
> Recently link status change interrupt was enabled by default in testpmd,
> it has opened the driver bug with not working LSC interrupt if either
> igb_uio or uio_pci_generic kernel driver is used.
>
> Fixes: 06bc197796e2 ("net/sfc: interrupts support sufficient for event queue init")
> Cc: stable@dpdk.org
>
> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Applied to dpdk-next-net/master, thanks.
@@ -312,9 +312,11 @@ sfc_intr_attach(struct sfc_adapter *sa)
switch (pci_dev->intr_handle.type) {
#ifdef RTE_EXEC_ENV_LINUXAPP
+ case RTE_INTR_HANDLE_UIO_INTX:
case RTE_INTR_HANDLE_VFIO_LEGACY:
intr->type = EFX_INTR_LINE;
break;
+ case RTE_INTR_HANDLE_UIO:
case RTE_INTR_HANDLE_VFIO_MSI:
case RTE_INTR_HANDLE_VFIO_MSIX:
intr->type = EFX_INTR_MESSAGE;