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 B09AFA04B5; Thu, 29 Oct 2020 21:11:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 87837C9E0; Thu, 29 Oct 2020 21:10:59 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B4F9BC9D0 for ; Thu, 29 Oct 2020 21:10:57 +0100 (CET) IronPort-SDR: TVsn2ZB9ZDSqhX8jWlIfXVzlMCXzpnkGGwOCGkflfKE0M+OcWocLB+9mZJD83VwLpHiSW50KlH t3o8Ei6u98cw== X-IronPort-AV: E=McAfee;i="6000,8403,9789"; a="165004312" X-IronPort-AV: E=Sophos;i="5.77,430,1596524400"; d="scan'208";a="165004312" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2020 13:10:55 -0700 IronPort-SDR: ZIQvTVJqUD3dnCPxkunUSKXqTKkBZHITr2UnUhNBeIM/BJyp7C8BUGTn2EPksoWJndYZbrb3Ik AkqYIqgVkCIA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,430,1596524400"; d="scan'208";a="319082137" Received: from silpixa00393944.ir.intel.com ([10.237.213.150]) by orsmga003.jf.intel.com with ESMTP; 29 Oct 2020 13:10:54 -0700 From: Hariprasad Govindharajan To: dev@dpdk.org Cc: ferruh.yigit@intel.com, anatoly.burakov@intel.com, bluca@debian.org, Hariprasad Govindharajan Date: Thu, 29 Oct 2020 20:10:50 +0000 Message-Id: <1604002251-43812-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] [prefix=DPDK_KMODS v6 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 | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/linux/igb_uio/igb_uio.c b/linux/igb_uio/igb_uio.c index 039f5a5..84c3071 100644 --- a/linux/igb_uio/igb_uio.c +++ b/linux/igb_uio/igb_uio.c @@ -15,7 +15,25 @@ #include #include -#include +/** + * These enums and MACRO definitions are copied from the + * file rte_pci_dev_features.h + */ + +/* interrupt mode */ + +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