From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0078.outbound.protection.outlook.com [104.47.41.78]) by dpdk.org (Postfix) with ESMTP id 341B71B2F7 for ; Mon, 5 Feb 2018 11:56:23 +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=bDYvjFG/n0PwSqkIKKaGaLgxlm+HP1CY29rfTkMICJk=; b=iu68iAhRU9FHTmarO24k20/pcv9Iu0HdPDOeim8zc/tCEfUMyYvcc3HqmLYhLR7wojdNTl97/5KkKLXh7BL82EbWSGrMWzrTtQzDTPPAnEQ8B1mQfnCkqW/8FyqVzIbWBy5hGqD1+RFHZWiu8KFeo2s6VS05zC06KffE6Ph4yTw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by BN6PR07MB3459.namprd07.prod.outlook.com (10.161.153.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Mon, 5 Feb 2018 10:56:19 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, ferruh.yigit@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Mon, 5 Feb 2018 16:25:57 +0530 Message-Id: <20180205105557.25940-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: [111.93.218.67] X-ClientProxiedBy: MWHPR2201CA0003.namprd22.prod.outlook.com (10.174.164.16) To BN6PR07MB3459.namprd07.prod.outlook.com (10.161.153.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f2a2a96-71de-4ebf-8706-08d56c871766 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:BN6PR07MB3459; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3459; 3:EOdQGiYXS6ZF4Ju0EjOUH88lx1bMhklwOon0OzozA/h5N3hUzgb26GRAFQBSOyHjfwt6e2PZp0/WCWl7cLpwclKbqqJo/yv94ZK48HX5Oo+nb9YTAjMjBmgHuMW0z+fIqOki4QO90MMdxS5ztvJ8PDWn4mjmN76F5ZT5inDzDcFJEtHNG96qwEXR+pEkH93f2n5dvVzIpsmk932ganyKeLVkvN5JIqdvwN1K92wBxKe8loNrPiIHeT4YuxfLtHns; 25:NaVCCI67Lm7H+9Hj1iOCUSc/Rf0+O75ZO/MNASyJ5P1TEcv5qID5wzVVlj+SHV5ZFlnK3tJxm0rYNT2xUZxhlB+L7g3+MISAbdg5oP1H650VwKBEkDDnBLZnU4M1tW9DAqycT7rUq7vaHJtPB3HJyEpahI1JDGlRa1TnzMbHu7wdoYGwMxMisWsZq2wREK1G3Q4yA+6uMsUwc4eTPHB5ccB6JyLV7Z3LZ/VDVq0AMWMhI93I8SfNbLKt/gYCuNoZSSVze0vd7l51HGNtGGFBA1ADDBPc/pieVV4pZPfDagYdyjPvE/xdCNxNxXTGaJK268QGz0BZjSWGX8Cw3gRF8w==; 31:B/2FbVbkfx0SkHvPomkcpyVEMFeOwlkHt+Ykez/XYdiEci/sF9nVGDbR2pkNbDBL7A4Lb7ETt3fU/RDM5sk5TcTVn5NJWAop+qOTI74mo6cE5n7/8O+uvgrw04qUY1uOrY5z3eUW4Nwnh+VniAHn5zvzoe5TPUggtErT6tEiAkU4kbBsmXqnpUWBBGFJsDtsqvLm4ecI7npjvh+XLpA8Su9Ld6uZ/FMI0oZc1vR9w2o= X-MS-TrafficTypeDiagnostic: BN6PR07MB3459: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3459; 20:Wr6l0k0mX1ymLjS5iOiXYZXV7f0gxQb5FOvLmoyp2VTiGeKUVbUeT3Cu3mCUEmQYF6tYI4Mkwx19eFTf05ZksDAD2cP4IevSQbHnsguQOs4z0i/Ba6/eDr6jMzLjTipK8jBqDKyemiUMLe4H8j7UTMAYF2P4CVFhw6JG6lFvX3Uh2Pv/K9isqV/y7q1nEPU/vQ/Vb7QHejuw9wQwqxw3kJp4pxm6bTanvxesYwWneu378L2Y3ZZJtMV73jJwvHXpJIXUk5W21AkChWyvKg1DjmGRK/xAsJ3Ac4H2YOSbYdseft+66Qq68dMxJRtxWlFJCgumJYTKcV9mgbo6LA3YZBX8B3TNqSr9WBllpMxgzMJHeBu9Sk4RleDyy1CVunmMNpqa+jh/wi7QgfoE5LL/83rIGfhqW6rcaZdbPZeZWJbAVms1ToRMEVXRqH88BP1jwE6FIun/JsQA+ZBQkoRBcdnFShVo0fxE+9RCeVKfq4edbYYUscNwC9gYv04TsZHPm0ofnLkM7WAToiPyW8s1WkbmyhCZw6gLZuqf9zQ+a43RWN4Rp0uFwytcYFhmtz9/xRMrsIBHxwZ+eGx/V6MO/vyfboAIsBx6ryjmfPjwfQk=; 4:/pFdeO/gSLVhgFN5DSegPgAkXy3Rziyy5pkGjPqYyUI0tqhYyJB+0HQesL+pUisLd8RAi6EsEArrDb9g1INCLXLkSCJ9jqc219kREjS4KCyExSveKDZyqLzw6K0DV9nmgSXk0E/6FZOJL+aBFKI9cRU3liS1FvXJFP5r/UZ7IVBbean7Z2bGRyqFC5cLJ8/6IS5/0siGOmCkWvQ+DcSEfWcAy8UAIaTDbYf5oJpF2V+R1M1Ddibo8V/Os55o2t+cKpVQqNfI/JGUizqyR3CatQ== 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)(3231101)(2400082)(944501161)(3002001)(10201501046)(93006095)(6041288)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:BN6PR07MB3459; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB3459; X-Forefront-PRVS: 0574D4712B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39850400004)(366004)(39380400002)(346002)(376002)(396003)(199004)(189003)(42882006)(1076002)(2950100002)(68736007)(36756003)(5660300001)(50466002)(81156014)(81166006)(48376002)(8676002)(50226002)(316002)(106356001)(16586007)(6512007)(5009440100003)(66066001)(107886003)(2906002)(25786009)(4326008)(53936002)(47776003)(8936002)(69596002)(6486002)(53416004)(6116002)(305945005)(6666003)(7736002)(3846002)(26005)(6506007)(52116002)(76176011)(386003)(51416003)(97736004)(478600001)(1857600001)(16526019)(105586002)(575784001)(72206003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3459; H:Pavan-LT.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; BN6PR07MB3459; 23:T65/c+ZpEssnnJBcoW5q8guLrLXmMWSYIPzj7cNj6?= =?us-ascii?Q?docKj6fXmutddOsglstyKLCc4J8A6FqF+6r70k/PLsGWuMxGSLFL9pBMNKMh?= =?us-ascii?Q?hZh2W8nPyLbTU+cdOpdplkdrrS1A3BfHXKUtQV6uAjZpALF7i9f/rQJp1e7c?= =?us-ascii?Q?hi31QCoZTwlqJ2LpWji6JKYZANvmXtzU8OMi8mEUP8GvJJtuDgmhGWQUE0hO?= =?us-ascii?Q?C7reZnIaqA5ryxEIKYgCodk2rKK6ljzLVZ+Qv9Cgdq04YnF3NZUG1SPAqnLL?= =?us-ascii?Q?OQrMKYg8rhQ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jV1v5bjN/wFGaItYfhAk4OoBGmp+4DT5TMcGtZ0 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2018 10:56:19.1478 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f2a2a96-71de-4ebf-8706-08d56c871766 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3459 Subject: [dpdk-dev] [PATCH v3] 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: Mon, 05 Feb 2018 10:56:23 -0000 Register octeontx-fpavf as platform HW mempool when net/octeontx pmd is used. Signed-off-by: Pavan Nikhilesh Acked-by: Santosh Shukla --- v3 Changes: - spilt meson specific changes to a separate patch. v2 Changes: - fixed compilation issues caused by using experimental API in both meson and make. drivers/net/octeontx/Makefile | 2 ++ drivers/net/octeontx/octeontx_ethdev.c | 2 ++ 2 files changed, 4 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/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.14.1