From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A9899A04B5; Fri, 30 Oct 2020 11:53:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 86D93C7F4; Fri, 30 Oct 2020 11:53:00 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 47918C7F0 for ; Fri, 30 Oct 2020 11:52:57 +0100 (CET) IronPort-SDR: Z9wEvtmShRPlz6I9QDSOre1tNBLrYcS/jG5D53eakB+4OcjVK0tqRK0MZ35Jm70eifxZZQLtrk kBFhP9e2Q5vw== X-IronPort-AV: E=McAfee;i="6000,8403,9789"; a="166004356" X-IronPort-AV: E=Sophos;i="5.77,432,1596524400"; d="scan'208";a="166004356" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2020 03:52:56 -0700 IronPort-SDR: g+YVCbJgxsk3CNnMmfTGN93spQYqD0HbG29fKAtkcrO0LxmtWxOm5wYScDXbRjqh1l+6E7d7PP lYhLti6ZtORA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,432,1596524400"; d="scan'208";a="469489663" Received: from silpixa00393944.ir.intel.com ([10.237.213.150]) by orsmga004.jf.intel.com with ESMTP; 30 Oct 2020 03:52:54 -0700 From: Hariprasad Govindharajan To: dev@dpdk.org Cc: ferruh.yigit@intel.com, anatoly.burakov@intel.com, bluca@debian.org, thomas@monjalon.net, david.marchand@redhat.com, Hariprasad Govindharajan Date: Fri, 30 Oct 2020 10:52:48 +0000 Message-Id: <1604055169-47580-1-git-send-email-hariprasad.govindharajan@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601909255-26251-1-git-send-email-hariprasad.govindharajan@intel.com> References: <1601909255-26251-1-git-send-email-hariprasad.govindharajan@intel.com> Subject: [dpdk-dev] [PATCH dpdk-kmods v8 1/2] linux/igb_uio: remove DPDK dependency for building igb_uio X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The igb_uio source code requires interrupt modes defined as macros and enums in the header file rte_pci_dev_features.h. Now, the definitions are moved to the igb_uio.c file so that this module can be built without building DPDK Signed-off-by: Hariprasad Govindharajan --- linux/igb_uio/igb_uio.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/linux/igb_uio/igb_uio.c b/linux/igb_uio/igb_uio.c index 3cf394b..fe7039c 100644 --- a/linux/igb_uio/igb_uio.c +++ b/linux/igb_uio/igb_uio.c @@ -15,7 +15,21 @@ #include #include -#include +/** + * These enum and macro definitions are copied from the + * file rte_pci_dev_features.h + */ +enum rte_intr_mode { + RTE_INTR_MODE_NONE = 0, + RTE_INTR_MODE_LEGACY, + RTE_INTR_MODE_MSI, + RTE_INTR_MODE_MSIX +}; +#define RTE_INTR_MODE_NONE_NAME "none" +#define RTE_INTR_MODE_LEGACY_NAME "legacy" +#define RTE_INTR_MODE_MSI_NAME "msi" +#define RTE_INTR_MODE_MSIX_NAME "msix" + #include "compat.h" -- 2.7.4