From patchwork Thu Apr 7 14:44:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianli Lai X-Patchwork-Id: 109406 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 30C7CA050B; Thu, 7 Apr 2022 08:44:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BB01240689; Thu, 7 Apr 2022 08:44:39 +0200 (CEST) Received: from smtp.tom.com (smtprz14.163.net [106.3.154.247]) by mails.dpdk.org (Postfix) with ESMTP id E71704014F for ; Thu, 7 Apr 2022 08:44:37 +0200 (CEST) Received: from my-app01.tom.com (my-app01.tom.com [127.0.0.1]) by freemail01.tom.com (Postfix) with ESMTP id 861441EA0091 for ; Thu, 7 Apr 2022 14:44:34 +0800 (CST) Received: from my-app01.tom.com (HELO smtp.tom.com) ([127.0.0.1]) by my-app01 (TOM SMTP Server) with SMTP ID 1708277847 for ; Thu, 07 Apr 2022 14:44:34 +0800 (CST) Received: from antispam3.tom.com (unknown [172.25.16.54]) by freemail01.tom.com (Postfix) with ESMTP id 7A5E31EA0080 for ; Thu, 7 Apr 2022 14:44:34 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tom.com; s=201807; t=1649313874; bh=8n9YK2Dw1DhgtiVAtIqBLUYgYenJbhMpVjKXTF8ZsB8=; h=From:To:Cc:Subject:Date:From; b=p6j3xt1yhOoPcjrTQXflsCLeyim++2hWqsJS9EOZCkLqijjnUKU4OilI+I/zwwElZ 6i/Qv+K0ZuoRZ5VPqxfbRgF+dUFqS02K+/cmxuzE6zap2DeUDJ5BuWeatudkCEAayT /jiUVlszbG3Dv5obSIpkJylOv3nu0LSw9Qq/o6qo= Received: from antispam3.tom.com (antispam3.tom.com [127.0.0.1]) by antispam3.tom.com (Postfix) with ESMTP id 65AF99C1A94 for ; Thu, 7 Apr 2022 14:44:34 +0800 (CST) X-Virus-Scanned: Debian amavisd-new at antispam3.tom.com Received: from antispam3.tom.com ([127.0.0.1]) by antispam3.tom.com (antispam3.tom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wp1ZyJBw4GEr for ; Thu, 7 Apr 2022 14:44:33 +0800 (CST) Received: from localhost.localdomain (unknown [119.123.241.123]) by antispam3.tom.com (Postfix) with ESMTPA id 540829C0F7C; Thu, 7 Apr 2022 14:44:33 +0800 (CST) From: Tianli Lai To: dev@dpdk.org Cc: Harman Kalra Subject: [PATCH] interrupts: add uio type to support multiple interrupt vector Date: Thu, 7 Apr 2022 22:44:11 +0800 Message-Id: <20220407144411.5520-1-laitianli@tom.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 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 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 --- 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; }