From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0076.outbound.protection.outlook.com [104.47.38.76]) by dpdk.org (Postfix) with ESMTP id 167741B018 for ; Tue, 2 Jan 2018 13:43:55 +0100 (CET) Received: from MWHPR03CA0047.namprd03.prod.outlook.com (2603:10b6:301:3b::36) by SN2PR03MB2366.namprd03.prod.outlook.com (2603:10b6:804:e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Tue, 2 Jan 2018 12:43:53 +0000 Received: from BL2FFO11OLC013.protection.gbl (2a01:111:f400:7c09::122) by MWHPR03CA0047.outlook.office365.com (2603:10b6:301:3b::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.366.8 via Frontend Transport; Tue, 2 Jan 2018 12:43:53 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11OLC013.mail.protection.outlook.com (10.173.160.161) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Tue, 2 Jan 2018 12:43:28 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w02Chfde020140; Tue, 2 Jan 2018 05:43:50 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain Date: Tue, 2 Jan 2018 18:27:46 +0530 Message-ID: <20180102125749.2379-3-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180102125749.2379-1-shreyansh.jain@nxp.com> References: <20180102125749.2379-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131593706087393122; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(396003)(346002)(376002)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(76176011)(1076002)(77096006)(4326008)(97736004)(86362001)(59450400001)(498600001)(305945005)(2906002)(51416003)(356003)(8656006)(53936002)(68736007)(36756003)(47776003)(54906003)(6666003)(106466001)(16586007)(50226002)(2351001)(8936002)(8676002)(6916009)(316002)(2950100002)(105606002)(5660300001)(85426001)(81156014)(81166006)(50466002)(48376002)(104016004); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2366; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC013; 1:fLC60XIaNKl73FADfrgRIf3Yvupc/B9WFpq/QkutXiwvC3Q+h8wOki0ACy6GkM2+UWjPLZtMPtm/1GxLE6qsvQYz+IsSSUVzigHYoOonpdEnbAgpfkXxMpYalUmxOGPQ MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 61cb7cb1-3485-4678-2762-08d551de6c7b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603307); SRVR:SN2PR03MB2366; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2366; 3:SkB6EEXtrx8eku2hK6aluMJn69chFOm3ABagVcC8h2D257M/YjZ1r+rjejeknUWiauiY+p510yCUx913pHuoK+JjBv8MYYuE4tGuqRapa1ZqGLasz3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9MwpSrhtWtM7W4i6Foqx72ORuFjzRmEhdbmCvIyw2TPjDwxUjt8ei8sqGkSPX3aZq7pP9cz8WuakYSv3t87NV4s+MRxPy7Lo6Im9HopZGyhIski7yRGG1Lo3WZh04CJ/NaQbn5TbMS3Wi9tx46Y3XvM2bwfZBBIpo5N X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231023)(944510075)(944921075)(946801075)(946901075)(6055026)(6096035)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123563025)(20161123556025)(20161123561025)(20161123565025)(201708071742011); SRVR:SN2PR03MB2366; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:SN2PR03MB2366; X-Forefront-PRVS: 0540846A1D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2366; 23:EiCM3bNTPNf6Dlc4iPwS6BFUuZLaSbQU0cN0t3hA7?= =?us-ascii?Q?xtGEof6dEI8U7yRgbQbcy3ppzP/GofCOlj72hvQGBh6tNUo9tOY9bTHUZmvD?= =?us-ascii?Q?T3+PO2Cen/BnNzFtZ4YN0F6YUxAR7SuU70ad4ogBKPj1hTHdPrzGW7Rh0n/F?= =?us-ascii?Q?IW3Ev9lxAl9wIU+i7xMj0vXvZ5DawaQBg9V508zTgfqSqS5A28Z8Pmvx4fz3?= =?us-ascii?Q?8/mcWlFrt8wRNo8JrNJjmFVBBZoNsWb3eImj6+gpheuBTm3sqJNzRGlsC088?= =?us-ascii?Q?JqbVN9Rn1iDjElMygApd6GnwN3WnNyRje775z3usYmFqfrzWnDklzW4sHjDO?= =?us-ascii?Q?S4QkFcN3YQRTJjdfejXCMiwHa1FMgeS3E6/AK0ijbIE3pkg/CMt5ZrmqxkfG?= =?us-ascii?Q?bL4h7pv8U1BZ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MmUToShPLFw+v1nxBht5XNX5oYF4ThPzNxDNL/QhgXUjB8z+lvjRAip/bUl5RuzuPMtyBqP0yF8kx0xORxHU/+Gk3MPsyJkOr2k4T/NF/QjK2j92Oeswl6sv3omcIuc/JGAoUj4rZ1LzNHjuPSdm8zgp44I8hltm52uHgzlNg2uFLoISm+r8kZQxFnyb2gx0m3W/Y35x1b+12gJOI=; 5:KYUpMMFdnhX2GBJUkbHzwW5FPwzxAo3VXwNUnpTXDGtEO7f2c1h97l7n/tmCR1QQqkYLLquly/+eFFQ5qnnbfQ6n5BAuuzOpaBfqs0jw7rvLShJcMY67oUH+o4g8qKRxVtTgcoZGzzeBkP6xmCflU+/OaI1xHgyNZ6CP/WTGi7Q=; 24:lB1Ruz+Ynhm9Gz3MPJwIyeDU3/izotlQAk6Q87Zum3xIxkQHNrslZoxnD9oUnx6cXYZqZctHHesz17Zr7K7gt64EPhYjuWUniqaA9h9aQbs=; 7:QUJ6RJtJsWrFQB3f1xolVEdCtATgoTbH83Qp6zcaM8fQnzS/uylZjUQxebARvba0ZeG524e355rP2zvs/A3v0RqZ1tc8LIGHgLdCzTAFBnKtlCRqTcDjIfgnjYAptjvjj7VONXllI1XobrYT/Y1Bi30kQS06bltEIX1x2xwK9frVoRQTHLJPyq8nYP9BtAbLmR8AaJp3N43FwN3XUIKJkD3XJi4lRi445apTBsBE2IFO9Ppe4qo4y9+e+ysrPj2X SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jan 2018 12:43:28.5833 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 61cb7cb1-3485-4678-2762-08d551de6c7b X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB2366 Subject: [dpdk-dev] [PATCH v1 2/5] config: enable compilation of rawdev library 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: , X-List-Received-Date: Tue, 02 Jan 2018 12:43:55 -0000 Add config option CONFIG_RTE_LIBRTE_RAWDEV for toggling rawdev library support. This patch also enables compilation of the library. Signed-off-by: Shreyansh Jain --- config/common_base | 7 +++++++ lib/Makefile | 3 +++ mk/rte.app.mk | 1 + 3 files changed, 11 insertions(+) diff --git a/config/common_base b/config/common_base index e74febef4..3d2e12c31 100644 --- a/config/common_base +++ b/config/common_base @@ -792,6 +792,13 @@ CONFIG_RTE_LIBRTE_VHOST=n CONFIG_RTE_LIBRTE_VHOST_NUMA=n CONFIG_RTE_LIBRTE_VHOST_DEBUG=n +# +# Compile raw device support +# EXPERIMENTAL: API may change without prior notice +# +CONFIG_RTE_LIBRTE_RAWDEV=y +CONFIG_RTE_MAX_RAWDEVS=10 + # # Compile vhost PMD # To compile, CONFIG_RTE_LIBRTE_VHOST should be enabled. diff --git a/lib/Makefile b/lib/Makefile index dc4e8df70..c75b7a694 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -126,4 +126,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_KNI) += librte_kni endif DEPDIRS-librte_kni := librte_eal librte_mempool librte_mbuf librte_ether +DIRS-$(CONFIG_RTE_LIBRTE_RAWDEV) += librte_rawdev +DEPDIRS-librte_rawdev := librte_eal librte_ether + include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 6a6a7452e..d783de2c1 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -104,6 +104,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_EAL) += -lrte_eal _LDLIBS-$(CONFIG_RTE_LIBRTE_CMDLINE) += -lrte_cmdline _LDLIBS-$(CONFIG_RTE_LIBRTE_REORDER) += -lrte_reorder _LDLIBS-$(CONFIG_RTE_LIBRTE_SCHED) += -lrte_sched +_LDLIBS-$(CONFIG_RTE_LIBRTE_RAWDEV) += -lrte_rawdev ifeq ($(CONFIG_RTE_EXEC_ENV_LINUXAPP),y) _LDLIBS-$(CONFIG_RTE_LIBRTE_KNI) += -lrte_kni -- 2.14.1