From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7809C42CB9; Wed, 14 Jun 2023 15:40:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5AED740E0F; Wed, 14 Jun 2023 15:40:28 +0200 (CEST) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) by mails.dpdk.org (Postfix) with ESMTP id ABBBE40DDB for ; Wed, 14 Jun 2023 15:40:26 +0200 (CEST) Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5185f195f05so4138485a12.2 for ; Wed, 14 Jun 2023 06:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netgate.com; s=google; t=1686750026; x=1689342026; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/XoSX3oSW359u5gp235+cntKK9+awTf7MSssvRoeRJs=; b=CiQurr5IWm2dTC7cWD9hUBPwKLqmm/7U+/tTj1uIqPTGPtLudRKnjAr+V2pPU2968d CrRiPsKC5Z/uNZAcGDrIzmeHOkXxufH07rwGyFYFHjKV/QbvSGW6A7BUQsNyD6EUj4kP 326PEndSCxSBzxfquS+7RtX/ceJMTpRoezJso= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686750026; x=1689342026; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/XoSX3oSW359u5gp235+cntKK9+awTf7MSssvRoeRJs=; b=enkYjTsGVRzZp8aMNmjE1TRd99GCRpRQtft0Ka3byHWU1S8YgVfXmaI1LLoYW0H/vj p4KypyfXFsITXTACa/Ros3Az8TTtPrXXZF0wQ30SrrDnCVqCdVkBcTTgayDpZcWgOqNe XbvghbVMtepOHI8s8X7/+XCKB9KLJXnQ3pyPqhnDmkAOFicuec9JX3/5Hb3Anezvx9in /t01pIc/GEWyQhcx9OovV9EvNfR4Y4wYGJclaPaepuPxFLJKrQU/a4QNouTS40L57zmb BEPW8VV+DlSoVoZ2j7lPJKr5IuyVpZ5dzARjI6gSZTYkSilqoEf95Fv6XzN/1Pt2zzSc Fqjw== X-Gm-Message-State: AC+VfDyfa5b+vqnJr8hC1Yfxt9kLM8dAA9bBYYQwblm6TATrWEUk2LBF 6Jl1FNIR9vUMpq6H2IoZqRXuLw== X-Google-Smtp-Source: ACHHUZ72OLFtnF3la3goXINMrn4Gwv5D/jHZqgrDm6IBxcokN4qDGiU628o3YuPjkYKirZf0fEMsJw== X-Received: by 2002:a05:6402:14d7:b0:518:4a5b:56a with SMTP id f23-20020a05640214d700b005184a5b056amr4721128edx.32.1686750026334; Wed, 14 Jun 2023 06:40:26 -0700 (PDT) Received: from pb1-2204.. ([87.116.176.65]) by smtp.gmail.com with ESMTPSA id w25-20020a056402129900b0051659c6d50csm7732472edv.22.2023.06.14.06.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 06:40:26 -0700 (PDT) From: Vladimir Ratnikov To: hkalra@marvell.com Cc: dev@dpdk.org, Vladimir Ratnikov Subject: [PATCH] eal/interrupts: Allow UIO interrupts when using igb_uio Date: Wed, 14 Jun 2023 13:40:18 +0000 Message-Id: <20230614134018.2344-1-vratnikov@netgate.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some drivers and devices(ex: igc + i225/i226) use RTE_INTR_HANDLE_UIO handler when captured under igb_uio so just let them use it. Signed-off-by: Vladimir Ratnikov --- 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 c9881143be..037db09cfd 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.34.1