From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0059.outbound.protection.outlook.com [104.47.34.59]) by dpdk.org (Postfix) with ESMTP id B8A361B29E for ; Sun, 4 Feb 2018 16:34:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fkVX9ZwVdNBRXo+/e3CDRRSJ7N6ADRPvCiqRyWieAb0=; b=WPJAczDgXRJ/GcwBx+s+lSIbWEcgP4vFfWX5tUqAC0doWTerTGW3i8NaxqPAEa9KBfdfKC3cvYAk4mrHF/bahiI0Zp4lWaL3dmQ/cvTKo7mHVB7qaFoBTa3co0JO3XSJytdTkPam5h2QjoWAPo5+BdrxuPmXOMjfAHEL8fkRgs0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (223.227.100.179) by CY4PR07MB3464.namprd07.prod.outlook.com (2603:10b6:910:75::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Sun, 4 Feb 2018 15:34:13 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, ferruh.yigit@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Sun, 4 Feb 2018 21:03:09 +0530 Message-Id: <20180204153309.17312-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180122154507.14617-1-pbhagavatula@caviumnetworks.com> References: <20180122154507.14617-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [223.227.100.179] X-ClientProxiedBy: BMXPR01CA0010.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::20) To CY4PR07MB3464.namprd07.prod.outlook.com (2603:10b6:910:75::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a09ce75f-2f56-4af0-df73-08d56be4c0ad X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:1uliMljRt9qS4XysLkHRHSN2l7D2DOtKAKf1REfQptmlxtdXPkRTtIdlcBBHn2Fe47DhH4ENfauI9I9WQuAgroz3yGYql6swoXPbzr9oZK672sSch8EhCAPnsQmIv7peYhAA0DI9JKN2txC4LFPj9mw7QKOl/EeVzoqgMpVNvwzOFO/P1YQEWiARovaFNBa5yDjCsmujDC7DwKJU2Oc6JyGHxirYGqlG5bKe44oYTX5Kitp2VuloxhGV/jd8rhoa; 25:U2bkZwJJWdquRnZXYdC+zfnAAGCBf/ZsXmXi4xE3kkXx99LKkwX9Dtye9Wu9J567S2y8admCL3ndZQPQd1YZxw8teOX8dUB3n4LIvZI5KBoIQ4J43E/SK9bbM3hYtPfl3EVOPilIaegtBHy3TKcvb3r/LUwnIcgV2yxLngRGa1fnD1wtdIDXaVKdAXXkEuT47Xbg9l333ERlDIlSd5MlY+mD/fmpOM1y9L00kwGcq/1n/CFI1nTtCMXjyDaCV9pm3bmvvkEJzduhVyAckCHR1EPYBy967fNVN4LnowUpMP+953YIpCI74c5bOCDQ89oesoeqRxwVpp9jrmED4fE/BA==; 31:j9KV+Q8gU3qYYM+3ZuYAQZbtXukYZfKSvVVK9nkQINMwrw44cL2TAwyBK8lcYtvu5s4THc139FQJqRCpJDKtBCOBIaB4YZuZaBBuTbkmZlCQNQipaPlBljvnSuW54OsDJO0/e6jh7glW332aDodxz0FNRSdZGUYp60vrEgj7cj4g4AascHeQHZ5dKvD+z1kUY7SYmIcabhC3T06hNJPLwkiAfQWNPRoeALtooqCPHo8= X-MS-TrafficTypeDiagnostic: CY4PR07MB3464: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 20:2mANpl9H11gd+XaQMoXfmgDxiDBU1qBWYDA3njD6cMKx4zkMkYUv3WkHXImhh4KoteIqRWHrd05z6JRI9NMWPV/AAva8ck6z3zTAhWoabEpXv3W+KW4YtFxu/R1ej5kUcskeuuzIkCeOlGGNocl96Fw3L0dPUdn6geMCF5jvOUirXzbFcIe3C3cPYXnWar0X5xoc3e1s4LM7PmEKsJTiv4+5t5QcImYlYOPyFRO1kbXuqXIjh3z5QyIent2rJ1ttv/xmnkKdj/y/l571/VmNSEjiDJTDRr8fKwurYlyGBAqV//sHlHwtF6aQ5RSI7HzN+VZExZxB6kF9u95iCw/lO7GTYwek8WZVVdyOl1Ksa0Cf6sBaPWT6zIU/s64sI71zmmXVnR24ECvCydx43RSoFc9eabVVy2iTzBParkL5yQ7CqwfV3CsPbrZQqfsgn0+SbzO1mLwsOzD2BhHur85tU+29PjANTn86Z5ml0j8nZe+AsNDA2bt2Mq08ox+quMYbU7d75Fhl1CcwgLSKqs2q/LhvmW41qpD8KZpbDh39/Vhn47C7oFd+paQsd3Q8lxjmUvSZgTDW5OSSyIU5hgsxBWSAaH4LqS78tVy34ImPVe8=; 4:NxW/jl0qd/6WjrIDIpbHSt9byFNHHrfxcmb6EP5OQN6qALWe1TL/j77mOSF5+0bGawfLF79V+Mu4T/dg1Yt41XgVPP+BgJ7bnvFNYzunzVhRNDd1hupPSVMwfvhoXkLkP9gWlPbD6anlVEDoEknykqxg58D42UNAe0k8VT4GHFU6XtWpV3y5vH7X/+ozEA0JuT7kt8wM6XlaOc2VjSVwtRpQKRB9rtq+9Szz/oghiEtRL9pOwcgMvx4Y1TWR0mZQDa3kwkfSqx5cxgee0aRSww== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(93006095)(3002001)(10201501046)(3231101)(2400082)(944501161)(6041288)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3464; X-Forefront-PRVS: 05739BA1B5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(39850400004)(39380400002)(346002)(376002)(366004)(396003)(189003)(199004)(53936002)(575784001)(51416003)(52116002)(106356001)(4326008)(305945005)(6486002)(16586007)(50466002)(25786009)(107886003)(7736002)(105586002)(478600001)(48376002)(316002)(97736004)(50226002)(2906002)(81166006)(81156014)(66066001)(5660300001)(68736007)(8676002)(47776003)(16526019)(36756003)(1857600001)(72206003)(8936002)(76176011)(26005)(2950100002)(3846002)(1076002)(42882006)(6116002)(6506007)(386003)(6512007)(6666003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3464; 23:nCDq1n2TxUyIJHb/L7crXzdJ47ZgEbuupsROGYsu/?= =?us-ascii?Q?WDhWLxlkG1a3a1+87Z9iLgmJ00gUoS/Gj5vKSDB1u2qosyH8j6GDp0eQVqbe?= =?us-ascii?Q?2BEg5ZTfF5jdejCxbtKwNM+gKfRLLSZwnYauK0YLkUxBdbxusZ+L3BaXwBHz?= =?us-ascii?Q?349qczN8FvRKIlethXsnTeEAH2kv3z0M73A0TO+N8c4V3hoqUI6V7jzjqtEt?= =?us-ascii?Q?mmU+fPeyDvjdbOTT8WOKzXYpH3NHF8HqOePmlTAdc2/1F69mmcAsocQLE4Vj?= =?us-ascii?Q?oVWA3S7PUC72UOSZ+7Cg6Nlu64GI2tCXJ85bZsXosOK6lB+NmsUeUOCewDFS?= =?us-ascii?Q?MC0BTDJhPRV4RoSiL5fuVyDS4YIjrAwrXW3uvjjfOdO6x6ll7Ka+kAz0ywnB?= =?us-ascii?Q?IDik4rV50ReRLKflywQ7B4ZWJP/cerhFfBtogwWnQruF05DuYTX604Omd3f5?= =?us-ascii?Q?ZOBaYGK/xP0XAnKHm2IiPExjn9Du5f9J1OQJreIKiQwPu5GIButcjrlj2Rmo?= =?us-ascii?Q?C5LLEfFc71vMh6lje7EeN/YanuF2C1iIk6D8wsBH0yrF18dztbDz2lLRK6I0?= =?us-ascii?Q?+U00yWiX5GklCelmeATAcRn5gMZ+zG6XNVR7kDIP29/cSXOYapkURxF/rVut?= =?us-ascii?Q?ybgjFO/nvDMVAXVWLNaRgoDT6HarckuJOXFtWiQx5zMRyEyYPd9B3TQOn7m9?= =?us-ascii?Q?Y2GNDFGmau9UJmK+T6I0caUmM8u8putTp1Y1R0GLyz00BOfmXutgn0y7ndXM?= =?us-ascii?Q?mzneG+6/IuiaGplaSSF60lRC0cLSzM7SQt+MXJCvecQ+tb6BrkybHei346tZ?= =?us-ascii?Q?tuT8T/02vtP35sr0qcflNQOhbeZckURkL/kKIkzUzyh9YnzHz1svPXxPb8ec?= =?us-ascii?Q?w5FvxD0tAowjQkco5zqTyUDLbcDH1O8goJiXq/kC+pv6NmT05Afmi/b40D9o?= =?us-ascii?Q?YXWqYhUnR2G26Ttsb3i+6DuG8aV7Ga7er9u4QvnJwveOJxZiDGIxUPu+CYg2?= =?us-ascii?Q?amx1U8Dp223pA2tpdICv2bxoBLE4LfxG/WV9bCBTnQr26ho0FOJywUI/Q3dj?= =?us-ascii?Q?Yy+yYNplzS0uFIQCnrImHL5UhoM3kk5G5W1yTBpnZI/iWYnpRw0u3YOsNYjc?= =?us-ascii?Q?FmusQBKQ59yk4VXPy80zLQgi10LwXnn8mTlW2wmmYRmivCWJKFkP2+9PkVhi?= =?us-ascii?Q?3m56Ik5pRq5RrCrc4C3BdDHtWq9q2gj5ku9?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 6:grNz48XPO0audQh8D6/KVSwctcVE7MvSYUkaW76NprK0x7IV0VVQ6wk1uqZO4myZAc3d+3h4bbbV8rtzKVq44FVHRWWGncBtsEoj6a2+RVY82+yGayoftfsv/rjGlxiSjDDouOFWfeVrY/bdZQv3Ak+03/w+qTavKLzRx9fU6z3roL8lQ2/NhbV5s2FbxqOPCL+Pi26ImwN7FP+aTkMOha2zfFS+NoCm3ud5lCD/BfZQA1Tl3DvkD7GGOftS5QsCH0qho03zgQVS91e/9cpsSARJcpinXwaQe3mmPVfrJLFgmBQu7ZESQwj2DAEtsDySL5fkuDKT+eJI84I5h+BRiktF5HvAkwGeKEkz7viCg3o=; 5:hNTcDiGmU/SCk5/4VNnZlNmdvVz50HlWG0E3L83ZLtj9skJfTTosSlX8rF3kSTS3CUDyyroKGGxvrISGLSWAbI7Jl19VwaJ9UWVTCjgX4KJ2n3tKKcxjhQvCd9WkPh1/1Wxjvb1+zg2wTc8npc4g3a4hUq522iGAFiU/y6DoDHM=; 24:3e+Dm0RWjVetW38eSVfiL3c7FqjAoO7Riw6fXj33GHgpd4XmK/DHLQbX9nTUdNMoabZDpxmIyYN5kHBqu/sKGMsqMpFt49MpOqkYVlG9TY8=; 7:BoJjor2N6av2YjNl4fc3Sr13D3cyLBgWAArKFVSn9IMytfFv1YFEr+cgb9Ug32AY+b+AEW/Lnv3Vh5ZeBL4/nrIZAiqhQj8vBvGIFeIP9yXIO9WmiSsHK1NSh2PtallL1Zea5TfUSmpZd4WHeU4uiVwdl7pd3dpDMdE2vp7KTYKRPSzDvzh2q/JqwddpdWVCk+7n/cpkqB6LFH5NcrjUCCUGhSHmbl6Lss8pFCYqeCdYbHAClr4gxIIcJST0zWBz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Feb 2018 15:34:13.2597 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a09ce75f-2f56-4af0-df73-08d56be4c0ad X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: [dpdk-dev] [PATCH v2] net/octeontx: register fpa as platform HW mempool 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: Sun, 04 Feb 2018 15:34:20 -0000 Register octeontx-fpavf as platform HW mempool when net/octeontx pmd is used. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - fixed compilation issues caused by using experimental API in both meson and make. drivers/net/octeontx/Makefile | 2 ++ drivers/net/octeontx/meson.build | 2 ++ drivers/net/octeontx/octeontx_ethdev.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/drivers/net/octeontx/Makefile b/drivers/net/octeontx/Makefile index b47bf7a40..3e4a10662 100644 --- a/drivers/net/octeontx/Makefile +++ b/drivers/net/octeontx/Makefile @@ -43,6 +43,8 @@ else CFLAGS_octeontx_rxtx.o += -O3 -Ofast endif +CFLAGS_octeontx_ethdev.o += -DALLOW_EXPERIMENTAL_API + LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs LDLIBS += -lrte_mempool_octeontx diff --git a/drivers/net/octeontx/meson.build b/drivers/net/octeontx/meson.build index ef789eaa9..135e63e2f 100644 --- a/drivers/net/octeontx/meson.build +++ b/drivers/net/octeontx/meson.build @@ -8,6 +8,8 @@ sources = files('octeontx_rxtx.c', 'octeontx_ethdev.c' ) +cflags += '-DALLOW_EXPERIMENTAL_API' + deps += ['mempool_octeontx', 'eventdev'] includes += include_directories('base') diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c index 06aa0a2c9..b739c0b39 100644 --- a/drivers/net/octeontx/octeontx_ethdev.c +++ b/drivers/net/octeontx/octeontx_ethdev.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -1326,6 +1327,7 @@ octeontx_probe(struct rte_vdev_device *dev) res = -ENOTSUP; goto parse_error; } + rte_mbuf_set_platform_mempool_ops("octeontx_fpavf"); probe_once = 1; return 0; -- 2.16.0