From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0100.outbound.protection.outlook.com [207.46.100.100]) by dpdk.org (Postfix) with ESMTP id 8C54A2BA6 for ; Wed, 29 Jun 2016 11:41:27 +0200 (CEST) Received: from BN3PR0301CA0031.namprd03.prod.outlook.com (10.160.180.169) by BY1PR0301MB0853.namprd03.prod.outlook.com (10.160.193.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16; Wed, 29 Jun 2016 09:41:26 +0000 Received: from BL2FFO11FD029.protection.gbl (2a01:111:f400:7c09::117) by BN3PR0301CA0031.outlook.office365.com (2a01:111:e400:4000::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Wed, 29 Jun 2016 09:41:26 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; rehivetech.com; dkim=none (message not signed) header.d=none;rehivetech.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD029.mail.protection.outlook.com (10.173.160.69) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Wed, 29 Jun 2016 09:41:25 +0000 Received: from [10.232.14.199] (Tophie.ap.freescale.net [10.232.14.199]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u5T9fM1I015956; Wed, 29 Jun 2016 02:41:23 -0700 To: Jan Viktorin References: <1462542490-15556-1-git-send-email-viktorin@rehivetech.com> <1462542490-15556-29-git-send-email-viktorin@rehivetech.com> From: Shreyansh jain CC: Message-ID: <577397EF.2080300@nxp.com> Date: Wed, 29 Jun 2016 15:12:07 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <1462542490-15556-29-git-send-email-viktorin@rehivetech.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131116668854249967; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(377454003)(199003)(24454002)(36756003)(64126003)(92566002)(77096005)(50466002)(8676002)(6806005)(305945005)(76176999)(2950100001)(2906002)(230700001)(19580405001)(87266999)(86362001)(4001350100001)(99136001)(47776003)(80316001)(19580395003)(23746002)(81166006)(65956001)(586003)(68736007)(97736004)(189998001)(356003)(8936002)(7846002)(33656002)(87936001)(50986999)(11100500001)(110136002)(59896002)(105606002)(4326007)(65816999)(104016004)(54356999)(106466001)(69596002)(85426001)(81156014)(83506001)(65806001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0301MB0853; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD029; 1:Fz1p9ibQE29uo3CnesQc/r9XvxL6VtZlNe1XPGJhvIY2s2sBO5vKdGlT/ztdevY5+lzSKKpvD+kdqiQFF9mg31dbFeG/mhFLeWvS7qjdbkr2itEK8PgPSwX0uZ6GKeLqa8V51JTaHqJhU24CyX12VTc9SldqOVL6Vy9/V9BBoEJix5d3L8V5fBcAYcLVjPjCb4l6loS7N8c+b0grQr41K9M+Jn7n86seMbz18O0+yeKCpi3uGJM5Km9dKtwefbLBZrPairZ/6r/xns0IXYZNyMw7zIFx/IVU6kt1JEPPgk/P9S5yJvzv/4bHAKG2Z1Tjkd0+l6UCdqQODb4U/YvlDPQZRNToiFWGz65V/AxdE+VTJnnJY+DDev/sDg+eu4xJlxVAB9XOa2loy6OwBJGlHq0LyUEE3BSuVrrr1/iKdtgULru7NiKKanhocCqhgkCpPEnaOTzVfjncg4Nsh7tfFwEo+mEBO7HP9jtxt2oVjjNB9bkDE8n6vsKQv3+LWbJZcXdi/4wmgFG7wA8QDAR0eJfYkEqkUfNblAAun7idwHwh8QCuOVge84B/3pNaGtSVPKiWTIAtCtuZ8/ILN2IF4g== X-MS-Office365-Filtering-Correlation-Id: 84350633-9ee9-4001-3d86-08d3a0018992 X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB0853; 2:WWxqQGIHd/yG3QNUwFVIAM3FoAK4xlptCisK/7Uxdi6VSamqBEq2o2QbaRlMwOzezsB5f5uy5o76TBp8LrcGQTy1YsqfecVl9KwTvWUTF6P+z2QzCtTmbia+jq/XSF97q0IUiF3kBw3YWCqx0wcXBECAvTSTXgStJ/HPavQzqxsoehw1hMN+bG4oIJTg7WER; 3:93QlRfBSApH6AhzUsKFY/QAj2zdOd5h8T7oQeGmqPugu7CxEHITkFQM6iubU3GTVoAgapYMFghxqflAYDqL2QOOGH8YL0osk1rDbePjMzT52oZmq1bB2toP4EiVbeSkTRmhFbJtOWJ+AUsMTp1O/LruR56I4tEWuQwe1IlYERnlg3doPJ4GTSNjkTYTZb1uZMEW+CUPsqjOAPtP5E2jrT3wAX7fxpu+EOisCktM+5wA=; 25:cMF/RiCQgZMeU0SrAbGLm+U98EXPmyoiz7e6lkcZ4+sSujgKS7BzVxQVx7TyicDkumLATlB/iff1FDI6EFqhni8M8eyxXQuvlxOeXfpjNRH7xtX1Xtj2x7MfocpafQIAfKrKUQPd0yM+yGHn4aURTcOTdfxkOoFRILVTm8H/U1nKMaZP0sT/mgFuh1ORDJvGnPMEvbQWYM56bRzRzI5IB30gbIUlxFoI1+CmgHWnAh4PIj83N4i0G6zHHEk2/RMI94ZurRBfzhpE2k9Fs7HTymnrDGLi87Sh9WdTJX29pVlbpA6xkxAsBwbMt/hJ32MYTNtsF5reomgvoTD61lddFI/PuSdpiM6zZtDfrR3Rrum2p9LOb9EV2aQCG93iqL1ec/WErfbi9aQgn4Orr2SvFSLhCykKKx+jEekq7+9MxEI= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB0853; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB0853; 31:68AFwBqBRccBarQVJ/mofHNad2UpTUwXrfISPC3bc42jNNfZMsBGDE/IEcD/0eHWkdi2Otgm9Iv0NV4kkc8mLY3kDK4Wxm7N9TWyCw693fFx61X0vLSogSZQw5dYDbEykh85wpFx4FeaZNA4FCK1QoSROxYtr+52/OwijPv0C45I2oF3ZHX7GZ76YhVV2c3LmpdbOS6Gn/8IBaU2SkutAg==; 4:Zd590M6xecMagUGatJ3bjgzauXjYelt+jD27cRSHqiLn1t0D++WMo+xrB7S8jPZSC66NpsmH/Iolkn8hbJ+0V59GCZeHp/fn78VozQ5HatZ7e5Gsw51amTsKPSTGBdCx33J3GzA3hNEfqeWV9yDCYDFJeAnIlyCxuVEb+wYywwmuK5p/SR1SOFo2sh4qjPT/h6kEVW2MYr+2wVgRJI6D/YJm1xCOxy8HkyrUgZrlouuJgIqblfTGGDcpz08vEOVIesQhIUgEIliGjCPicFwziCOxK4PW5KdWD8fHLwI1U8jPJqYZ2v3+wQRFkxLFxx8e2WPtxzjyAmieEnZNAf+/5A+yzvDRPX3cHI24GYLhe7YAfOAU3kSkbEUVhuB//7oJGlEh0MdIc8wU0uKLs9zzRVp5GMxbkoImLMAwZigbFCF2b2TigXG3s/yEUCkyZw/cYTwMWk50WWFWSSLvokLi46XNGoQAqmuPwo+TiDPLbBg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(13018025)(13023025)(13024025)(13015025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:BY1PR0301MB0853; BCL:0; PCL:0; RULEID:(400006); SRVR:BY1PR0301MB0853; X-Forefront-PRVS: 09888BC01D X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BY1PR0301MB0853; 23:ZA9MHHOo8NvF+1a2txIFCJ03dFjoJoFDLEX?= =?Windows-1252?Q?AxYRv8iaW4qo1Xd5r+cNvPtywycQWUSbGQAY/go5u5aL78NxZ8Y+qiVY?= =?Windows-1252?Q?x0qNQo7a5Iblbr/v8dlsH66rWv1QopYmCCkKPBxRctlngWP8cQuslq8T?= =?Windows-1252?Q?ObKXk/zFduB+T9/qCJ7ieW+6pCxFUWHXriO8kUk014mVOu4MhjIxJjlK?= =?Windows-1252?Q?5qzIT2/G7dT8AN0Qg6LeUTOockQgB50RCyUj3CFfPqd/94kN5ITuA1DG?= =?Windows-1252?Q?WDSXI04LnCDFTmrPvdaX+NKKyg1AKRJMf1oE0o51dzaf6Szwajx9aQZm?= =?Windows-1252?Q?gm5ERf+OCHYhIfmaawBIiRSUZG0UwUqVpKUhpoKafByOO0gbfVcARcBh?= =?Windows-1252?Q?eVcbPoXrByNBZ1sOaaG4DBPizAPNJvQQ8DhEMmfe+/0+LLHRj44JXwqr?= =?Windows-1252?Q?JjYGo+DfCk1DyDgMf6bJS3ja2LvVMCCxEAZgPRx2FIgZ5AywsmNd+pYz?= =?Windows-1252?Q?KRqjuPi7yIkg5G65dbpGzdKtWDieq8opX22kM+jx3ld9Hq8MjSIhSzAD?= =?Windows-1252?Q?px8GCZmF/DpXdva2jhDN9Qc3lq53Y0Ig5PpicWYdjQFWLR8F1UdnJSjO?= =?Windows-1252?Q?ChI4/AGk2yOubGt5mEYYHknY5/uP7Ylhaw5ofcu6MA6Yru3cA9zoATwN?= =?Windows-1252?Q?r/qevr1fMZpANmbgF6+l2xZh4anoSNYeayezF1eyiMKbHXg8DiIlyT3X?= =?Windows-1252?Q?x1KStcO+RvPzbV1ZQMC7Djvu2FvLPcpFX2bksqQV3ciJwyc7LsBo22Ey?= =?Windows-1252?Q?K7lbG8oAfuaI7X2ROisew6C3DrHZ5EtUlCsqjeqYwBR+vA8mYRVjeXwb?= =?Windows-1252?Q?luoKJFsGzuwIQ3DiwXTjp7f8r92V2LAHGDMbq0dep6xY6WJJ8WYm+ZOn?= =?Windows-1252?Q?pFQ86knYhlL7prYNyCxwcr/LnVBiLn4m7VB3pE1b2SuabObhQPhsIYWi?= =?Windows-1252?Q?RtQcfC4IYfjzmUXr5U79ZLuLBVxpLqYArLjzaELfiQWeYPwKPYpXqSJV?= =?Windows-1252?Q?y825rjCqtPXkzaO3jmPrOiBUKAKxpkqVeoGEErggQYKbKySb6LF79KI8?= =?Windows-1252?Q?68TZp4Q/12Njl+S3xldoX1n2vzZApOunmtZny0mXZmQ/CMIqRRzWtGJ5?= =?Windows-1252?Q?qtTy2PKAWbmVcAxkCSVdAQNyTOG5kgwQyz5EanxJmyJaBURvWrefQRDP?= =?Windows-1252?Q?QOok6+nKvrDEdUpdtiY6wUoc7HDaNu3dE0lZBXOnEEOwM5yNShnR2N+8?= =?Windows-1252?Q?xdeAReOfPPruunaM5EjeAJoKmYl3WFmV4eRpCXiALdY/p0TB3cPTUK8C?= =?Windows-1252?Q?uhCejuf1YNDQ4RnXC/LzByQ61fY3EAD2JLO49yzdBv91gwnw26n7WRZc?= =?Windows-1252?Q?gzNHLCxitnxK4stBDU1h9ZLWxnqDd3AohJRZviphpCA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB0853; 6:XOHDX9D/eBeNBelp3OR1N2uHfHtVkJlMbKMo9tY2MIMcLh4xiR8/TQsRsAam4y0A6NuKbsNcughq/zYgtOZnZv9rKk4/kUWXk59NETqvBmcEHpuJ9Zmr1P0lX52BG8qo1bU++0VUoIa4imMs5ymOBqhLcpdPm8zGypyuNZiLKzEmLAPbT1vcehpoFcb2R5R+RtpsGjLjrLBiQ/9ZPUx/3X0czE2IaWLy48Z9KJdQlG5dWMiEh0TS4TPj2dEWBRNAQyLqrKTmYHbUWYHh65VMhwZga3YwhI3laUBxdfQHsVo=; 5:DJDmCe6MFtTq9O1gAR5kSZSVAvRfMn2oYhmgkxQ69CqGm/mKUnYyxaM+rH1InBC8wxvCTcaz1qWJVnn9D0GSwJ2M4U1S60gQ0B8mFZuz6GYqQm88wIgwPiadA5OMPkr3Gq888SDxmsG9eN8t7H4NKR+mP0Y6nzPh/OGf+vU9hAo=; 24:Cyz02j9VSznz9JKtladuxJgPia6tlORZsBGxvabemED/y3Kto7iXWz7O27/QPKguF8XIOnR/X1snQkXO6U+ioLvrMOmJ/uYlxh16EbxVJaA=; 7:ouxM7yTEakoBontv9zcyillCHvFCKq0KNsbX+og61K2HSgUfV+SgPcuRr/dTws5sj/5eOR30bf9y0s7YSaLe9jZZgCb6HXMabvziBwXL+2GzAov43/vuASFQwIa7HjqD2Z9cxUDOtXGjYoHIB4wR9fwu02B5dIyIglS6o6ofrD9EjJy3VtaHfSSKckBRth0Kz7GQUATjTN6jlCqOvqxexjkKhDLwNrkhxrnZXHWlRFLdIjkXWxSxy6hSyxnEzUau SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2016 09:41:25.0661 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB0853 Subject: Re: [dpdk-dev] [PATCH v1 28/28] ether: support SoC device/driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 09:41:28 -0000 Hi Jan, On Friday 06 May 2016 07:18 PM, Jan Viktorin wrote: > Signed-off-by: Jan Viktorin > --- > lib/librte_ether/rte_ethdev.c | 127 +++++++++++++++++++++++++++++++++++++++++- > lib/librte_ether/rte_ethdev.h | 31 +++++++++++ > 2 files changed, 157 insertions(+), 1 deletion(-) > > diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c > index 4af2e5f..9259c2c 100644 > --- a/lib/librte_ether/rte_ethdev.c > +++ b/lib/librte_ether/rte_ethdev.c > @@ -320,6 +320,99 @@ rte_eth_dev_pci_remove(struct rte_pci_device *pci_dev) > } > [...] > +int > rte_eth_dev_is_valid_port(uint8_t port_id) > { > if (port_id >= RTE_MAX_ETHPORTS || > @@ -1431,7 +1524,7 @@ rte_eth_dev_info_get(uint8_t port_id, struct rte_eth_dev_info *dev_info) > > RTE_FUNC_PTR_OR_RET(*dev->dev_ops->dev_infos_get); > (*dev->dev_ops->dev_infos_get)(dev, dev_info); > - dev_info->pci_dev = dev->pci_dev; > + dev_info->soc_dev = dev->soc_dev; I think both the members, pci_dev and soc_dev, should be updated by this call. Is there some specific reason why soc_dev is the only one which is getting updated? > dev_info->driver_name = dev->data->drv_name; > } > [...] - Shreyansh