From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0076.outbound.protection.outlook.com [104.47.42.76]) by dpdk.org (Postfix) with ESMTP id BA15F1D02D for ; Fri, 8 Jun 2018 19:25:35 +0200 (CEST) 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:X-MS-Exchange-SenderADCheck; bh=SfZDlwHtdaiom2iYXc0n9bgMeW7FZYUXKJ5gPzt+5Cc=; b=BfsiO4dk7t7yKcMvOktThDKvI6hzQiP2HTXM8Ihya791W6/+ZIudAEnLBSCKKeyxNENY6pvY4ipBwwr+iGkjYxc5DGES2qENxsSmWIP1cyO+JxYCj/LWOWST2ZHSMPtXfFl9J4Zw2NsnDXc8Ml9kXQtvkyFkcfjsKYiT+htCi2o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.caveonetworks.com (115.113.156.2) by DM6PR07MB4906.namprd07.prod.outlook.com (2603:10b6:5:a3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.17; Fri, 8 Jun 2018 17:25:30 +0000 From: Anoob Joseph To: Bruce Richardson , Jerin Jacob , Pablo de Lara Cc: Anoob Joseph , Hemant Agrawal , Narayana Prasad , Nikhil Rao , Pavan Nikhilesh , Sunil Kumar Kori , dev@dpdk.org Date: Fri, 8 Jun 2018 22:54:09 +0530 Message-Id: <1528478659-15859-11-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528478659-15859-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528478659-15859-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BM1PR0101CA0050.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::12) To DM6PR07MB4906.namprd07.prod.outlook.com (2603:10b6:5:a3::11) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB4906; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4906; 3:v9aqhhnC0NcP1CvNRONO59U/ibwbKhFs6/UFjydhbiBEvOCPFMja7+2AVCrlOCGYJAcOfUC86PPOJDuQS7YL+s+0i4GNVXsZHOWLOq66eTdsQVxRWanuMds6WGqKGFKBEtEK1HmcB8ZhkmTEa/9KKmaV9jd0TkH1tiIHWmbccCb2J00miQXX2XWYpSQYEHCSEPVJsrlBeTh4ky+lYbdLNDjDGEgxSoGpm8+X3kiIvR3hV19U8JMyYlqCAfxmZRKd; 25:b2blHV3+HFOelG/Pk4kYQN10EmdJ9IuhbAsS8ZEM0CJuyzIlgZEN2eo8Rr9mJK8FyClgnxCBLipAFTJpZieDgO05aVTo1KiagXfIl1fnNfpxZMsTCZrEt1ktdpb7dhBAa82B9mSzXNynp5aNfbGJ0hXKKyenarubtACoHoR5hZEVj1sONj7wtYsybVLUeb69tkXTJiTuiaF4DwS/m3qUx52UqLeL51nGaeZQJG87RyqDtIUtDoGPTJcFtRg5PWgOis/4E+5kAHQvjQy/EKlL+2ACNGigxA/qPwFV002Dd8c4PKi5zRWYkTbPX21lvqx75XPKT28vyxJWFIhuxyZkyA==; 31:0/hKX+de6owihK9UyIM3saGGghMZeJtdigkaXZ6bbcYmTS238asiQfB3qWIgvX0+VSbXKPqhoxzkb0FbLvCs7Zmmj4B0eMxTIEXaUvDLC7WQ9uar8s67ytF6U5dMv9/0tdbR46EAZ0+V8gd/TW9c6I3O/QPxtbQ8orRvoh6x7QvMPDzghfOnTnwJnYCL8NG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exchange-Antispam-Report-Test: UriScan:(278428928389397); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(3231254)(944501410)(52105095)(10201501046)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:DM6PR07MB4906; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB4906; X-Forefront-PRVS: 06973FFAD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(366004)(376002)(396003)(39380400002)(189003)(199004)(186003)(16526019)(5660300001)(26005)(42882007)(55236004)(66066001)(47776003)(68736007)(6666003)(305945005)(2906002)(8676002)(7736002)(8936002)(36756003)(52116002)(2616005)(956004)(476003)(446003)(50226002)(81166006)(11346002)(44832011)(6506007)(386003)(486006)(76176011)(51416003)(48376002)(50466002)(97736004)(316002)(6512007)(25786009)(53936002)(6486002)(81156014)(4326008)(3846002)(6116002)(16586007)(54906003)(110136005)(105586002)(106356001)(72206003)(478600001)(8656006); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB4906; H:ajoseph83.caveonetworks.com.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR07MB4906; 23:VwWj/ppD21XXvbt332P6QTnI5kTpmdYGnEzw/RmAL?= =?us-ascii?Q?wjVy9faGp/F1oHUONbyRipA6OTyFENn2ZLDD4H1LA8lSMsbTx16j36eHS/Iv?= =?us-ascii?Q?D9Iu55p+/AgSaq35VSzSNysPD/+VGkj0ZioAnwsv55CwTdaN2zVMkH0S5p0q?= =?us-ascii?Q?BlJyaRQDsZjTiTYBjcWooKeceA5kb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lvAIuzwhVIBg4MpDvw/FOxL34tqIGbZOBhGrT7R0AflLfH7bv02Y6GACN/UCS+mbzZwjn8B3Sffa6eeLHcZhfjnvjT6TvQqLptWF2yPfqDQNWTxs2A=; 24:hAgaCm0EkorVT4VhnoTEOWB8IKyBqMGxJ8z52NsWDcu89iu5Q/CRmfZj8V9BXx3E089EVmIR1svXfnMxB+sLnY2ns7KcF7SIO4bmNE3voNY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4906; 7:KYgM1gkV379b59aZrlGW7VFIcxqIMXW+gv5prvcv/4zG++1VEVpfAG/v173wWzYCJsHW0byeUKxWMQXl3urq4SjBiSOlG+Etaj+uwxf0V1M6vuHqXXP682gtYVCUruuOUHN9JI8pLS/jheiOWhg93ErxqShm4cQdWgPAYNx38e9ORCqx4x8WPV1fpx+ILOIczzb8B3e2YlHWNuWgwK/aDW3nKXVJOUqrGtjNcDgZDg2VuoL57iTePEZJNay0zayr X-MS-Office365-Filtering-Correlation-Id: eb03b0b4-6da3-4c13-490a-08d5cd64d78c X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2018 17:25:30.9980 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb03b0b4-6da3-4c13-490a-08d5cd64d78c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4906 Subject: [dpdk-dev] [PATCH 10/20] eventdev: add placeholder for ethdev init 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: Fri, 08 Jun 2018 17:25:36 -0000 Presently, all the applications would do ethdev init and then pass control to eventmode helper init. So not doing any "real" initialization. But this would be expanded once applications are modified to pass the eth init task also to the helper routine. Signed-off-by: Anoob Joseph --- lib/librte_eventdev/rte_eventmode_helper.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/librte_eventdev/rte_eventmode_helper.c b/lib/librte_eventdev/rte_eventmode_helper.c index 1c4d88d..9f2d6de 100644 --- a/lib/librte_eventdev/rte_eventmode_helper.c +++ b/lib/librte_eventdev/rte_eventmode_helper.c @@ -349,6 +349,14 @@ rte_eventmode_helper_initialize_eventdev(struct eventmode_conf *em_conf) return 0; } +static int +rte_eventmode_helper_initialize_ethdev(struct eventmode_conf *em_conf) +{ + RTE_SET_USED(em_conf); + + return 0; +} + int32_t rte_eventmode_helper_initialize_devs( struct rte_eventmode_helper_conf *mode_conf) @@ -388,6 +396,11 @@ rte_eventmode_helper_initialize_devs( if (ret != 0) return ret; + /* Setup ethdev */ + ret = rte_eventmode_helper_initialize_ethdev(em_conf); + if (ret != 0) + return ret; + /* Start eth devices after setting up adapter */ RTE_ETH_FOREACH_DEV(portid) { -- 2.7.4