From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0058.outbound.protection.outlook.com [104.47.42.58]) by dpdk.org (Postfix) with ESMTP id 14C7E5582 for ; Tue, 22 Nov 2016 13:44:41 +0100 (CET) Received: from BN6PR03CA0002.namprd03.prod.outlook.com (10.168.230.140) by BY2PR0301MB0741.namprd03.prod.outlook.com (10.160.63.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8; Tue, 22 Nov 2016 12:44:39 +0000 Received: from BY2FFO11OLC001.protection.gbl (2a01:111:f400:7c0c::125) by BN6PR03CA0002.outlook.office365.com (2603:10b6:404:23::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.10 via Frontend Transport; Tue, 22 Nov 2016 12:44:38 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; infradead.org; dkim=none (message not signed) header.d=none;infradead.org; 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 BY2FFO11OLC001.mail.protection.outlook.com (10.1.15.185) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.734.4 via Frontend Transport; Tue, 22 Nov 2016 12:44:37 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:877; Count:13 Received: from [10.232.14.87] ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id uAMCiZDJ004839; Tue, 22 Nov 2016 05:44:35 -0700 To: Jan Blunck References: <1479747322-5774-1-git-send-email-jblunck@infradead.org> <1479747322-5774-2-git-send-email-jblunck@infradead.org> CC: , From: Shreyansh Jain Message-ID: <80172634-8d49-4ea9-fec9-ee2b1ce8ae06@nxp.com> Date: Tue, 22 Nov 2016 18:16:49 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <1479747322-5774-2-git-send-email-jblunck@infradead.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-IncomingHeaderCount: 13 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131242922781271451; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(336004)(339900001)(377454003)(24454002)(189002)(199003)(229853002)(65826007)(81156014)(110136003)(8676002)(81166006)(2950100002)(6916009)(6666003)(8936002)(38730400001)(76176999)(54356999)(50986999)(7846002)(104016004)(189998001)(83506001)(305945005)(356003)(87936001)(97736004)(85426001)(77096005)(36756003)(230700001)(31686004)(106466001)(626004)(47776003)(33646002)(4001350100001)(65806001)(23746002)(65956001)(68736007)(5660300001)(105606002)(50466002)(5890100001)(92566002)(2906002)(64126003)(31696002)(86362001)(4326007); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0741; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC001; 1:7fthf2dUOWajihmCamFe/AY40n6WUkjm2sxn57u9HPtCQ+O8bwULwIdqK+So+mxiPuXLwiscpYF2nDCFy89puFMAKA6rBFJp1HWmM7VmHFQVu/Jj6KJx5zeLkMjbNKhFNim4XXoMfTaXcJoA76n5MxDxHlV2ZmdXIudMlCszBPhv6xKcVAcEp/xE4cvacLbv91OsqSX84D2Wqc/pX1jKeCEy7uP9gOtlDZAvBXjjNAZPxtmqy8uhSqYuGBjLq2RQJLICv/t08ImOuneiPteJ+BswBKBARfQd6qxVg1WTle93v7sp6sBqbW/vxRI0jfZRZuW8c/WZEnX2hfx+PNDCpsPh7soy32/K3LX9s8VlXcc2GlVCjFQC+yIpfAUXbcsxIb8+mKJx6xXkkwwv2qGq0RX9MofvAF23ozIldoRTqRaEU5dSoJoOr0aGDFdDCI78sfDWITA0gYwYVySLQeS+/ivIXTjdqvVURGTsV1MmD9+a3IE12ZH+oMmdHRr7VnC9/TyDGb5OoG9bGcTbYydGy6SDUwU/dVKF/RijqHvBpOxqz1+gAdxNGoN89XEekxoimWKw87s8L+hiHIEItzStyTLl1lv6hnxpIVIK9QRDdVM= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0741; 2:ukAkv5EN6AYnsKbC/DHLrDhsrdklxfdJLz/ZHF8Wx7kXSFzh3EZhTZbkNHMlg9oBS3094mm8gcVpEPCixEICQQc44fNZFuiA5P055YDtH/KpXAABL22le4OffAcJZc/3Z1BpZ7fxVRdFHIN7B55VJgiofUmZjWlyyDWUaYx+nmM=; 3:rawLlxYjUOuOVongUgg1/QzU7IsotntV7hKWt94jJ7oRa9I1g5Q02Dg6b0CXp3yusPaXufXDfQIJzq5ufcJ48RIRZcGD5YsroQl90xf/EnwXEZlIEn95qQKygPU40hI1E2b4zjaPMf/qNirXD6Z1najUIwusbiPNHiq1eRJAgml9u1Hw1HqUhv+S3sPxpeIXxFvF6d+k861sjkoQ1F1U7rgkjPRjBt3p1/nfuBk03m5WurHBMizYmcwZVW8LAruzR1GD92RJff1ztp/EPJ+thw== X-MS-Office365-Filtering-Correlation-Id: 1a173b25-f3d7-431d-043d-08d412d5521e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY2PR0301MB0741; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0741; 25:t/Yz+G2aMdZbE+t9dEml6bAW8uwZk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uS9b73jOGLuwy58tH3zmDqgxtnAijaHXMBr5HUn2dv2ZNIiQ+e5IrnpuARPuF8=; 4:H0FWTt2KICgvZZ4mMU/mlaYK0yYhh6gF6Px4l4mHkSIbVQwjLl9f/w819eOjUhwhyLTa90qVew8NMepbEI8DXzMEYNkveDuYBcjcah6z1gVDGTYI0sgBGhge0DWoUZrB4s971MJ9sG8jvoROA3WTYlkmKBBPHA5GMVrLFeBzl0XpgzG9ehanJFJHNAGK0RCQGzJ9ey+vdaiEWim5x2dxfxBfXteRZ/LU6Co8m7fydooCrNMco1CQsHm2DIxnAgKfhRi0B7SqG1GrSmUtGqn37Xe7VxOhMhf7KZ+44+Yk1x2Z6fxL6HigBDdLjJCJufxvMz5ycTBc7wxqej3Lk1uVXSA25g1Smg7Ty/5lnQ+MEsBVXmMDcGTSLHApm3qRHu3kvn7V0knTCI5fpqngix1HG749cPFHpyAySmOG8G1WN728WRhBcF+WOoWOLU6FQ2PzHU2zA+Dpd86TslEoA3lDNA+4p6/njtPnn+YeOq1jWkpldJuM0uVpETkSSDJgJXn1MFT4r/EwydXfytwpdSkrWVwwqfa6uYTJKf5DeY3trMGT3dpJR4T4YZDn+OW+R/Ll X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095035)(601004)(2401047)(13024025)(13023025)(13018025)(13017025)(13015025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035); SRVR:BY2PR0301MB0741; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB0741; X-Forefront-PRVS: 0134AD334F X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BY2PR0301MB0741; 23:SZY8IjAAHveMwZXZccVirxZK7QF8rsp93y1?= =?Windows-1252?Q?LHE6fTfL/AQIecNXmLEzMQRTDtUOAL/TLyWS/4wXNTpX+Qggnshc109q?= =?Windows-1252?Q?WIU8fXSMIHGvT49Cm5ss7jL3gCakB9dpDl7+ew0aEsn6L9qwdWWt6SoO?= =?Windows-1252?Q?sub3b1fw6aVGMZMvmM2PhJZJdN+l9U7X4VD5/YJaf3zcP0FV4Dn464ze?= =?Windows-1252?Q?U1PI52zX83+NmAx7B9TnJIeeG9NuWNXj/QtQl+tbVEVkphCI7qZuF2Jz?= =?Windows-1252?Q?ak3afcG9mVGV8bKsTwQeSuOr2sPDMPaMgfGJE7b/i3LMFm1r3qxeiUqT?= =?Windows-1252?Q?3L8cmga5XEoPuh1qf2w8/33dQXZilx2qqIOeMORnZl+v7QtFQvRrhkfC?= =?Windows-1252?Q?puV/medWuZomC5j7tVfYsKtY5aX7vgEBJTfYE/5oHTizp/6aRuWNR7VG?= =?Windows-1252?Q?2xaok84gLACjhHKYMeHcDASyJu4ry0lcwPCy5XE9MMkvkfxsxEODNtGZ?= =?Windows-1252?Q?SqglH5uE8zcyVEsap7IATJidWEL1hRiyOOx1wconXzt6TKPkm6+EhYfk?= =?Windows-1252?Q?7SxzdmwbJ4ndsTzVa8zXdtAvSSdSoPApZ/cneTbOHjA+Fmsm9OCE7KBi?= =?Windows-1252?Q?f5tCWXUubEvwWzQNqUYIeE6CxxMVwP6klUWx8BXZPhSVy70bdCfVxQ8f?= =?Windows-1252?Q?xwUhHj657WPCx4bIMxEQ2o0zLjVXUfA/nhmdPkr1HXXS/KAfWGH9aPgV?= =?Windows-1252?Q?TkX1CymVOsx3aHh3rVrRS6XYPCfGmoyBcCqgnhNxiQMxRnxGJjl9dXmg?= =?Windows-1252?Q?+j8qcG0iy5NplRgejO/rNQqA/75a8U7ozwD0R//c5riHqfShoi1gxoja?= =?Windows-1252?Q?UuJyi3Bo6plZ6+td5qEv6CqeS/HjKGW+PNCSnX1VSSjT6WNUArDgfrPQ?= =?Windows-1252?Q?/eStFoRsPQBDDCgsPVgm8oPSIsJGdBJfESffobkxsso8iGZObmTsLqlM?= =?Windows-1252?Q?NnaKWXF5t40GR+ijY6RUs2bf7qv3nAmtTUs4xiAm/vdVf5/RBRUp99zI?= =?Windows-1252?Q?mMVa8xzp6vCLF28ngsGPLV7aVdWtOG8TMD9cSTPYAxpAa20F84MIvXgc?= =?Windows-1252?Q?xisVbhrITM0bLGAdGtrXePtmzb/yG7jsFab3HlsziahKdq/altsbHpou?= =?Windows-1252?Q?H/6066FLEQpF21c2LnBmAprBerD0+YsbpUHKq074wN4/wsXQaMYNTB3n?= =?Windows-1252?Q?ZY+kgsQd903VZjxiitpLbRrA92ntbg9oeyc53Unb091+pUPkgHxvn26X?= =?Windows-1252?Q?EXifsOrQTYs5aLzuZHaWXhUt2nvrRTvjbC6rjtKPDmhjXP185CwvCZkZ?= =?Windows-1252?Q?c9GPzZ4s49yUKFmco4EJg2Pv4nkBLLdumAGiR1J9xlF0oMB7o56GBoc2?= =?Windows-1252?Q?kAEjKj5Ew8+CsUpM8h5yOKWn1m7xqFN0rXXFcUhQNMQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0741; 6:d6zBwO071g/6AzwQaRfwfKEqBjTDuQJcfa+FtbewEef5Jefd7PYGGz4jI/eCxfjdX3VP2UIPiDyVsNkj0jwfoMfyAflW+kfFroqMHjUymBjHWTtOou7jRXTvXrGXj/BkgBtyDB0yzWQAVGwgJ4JZu15vSp0Yi0w91N07ejpnPfJ4kALp8yUbXvkziUDY4KQ8L4wAHpnLwU8WTl6q5XdlIGcGMYJsAb+NJ+evRftaYK3WJiuvr43Pz5i0HXydZcQv2ljrim0oiIdtIxlib4SajBbpF0xAbtAsuVTKrmIQe9fTa82kq2d0ap1SG7+3e/NA3nMJIcVWG5qKRsTajKi68A==; 5:R1ygR2PVhIPtgIpWcTa9cDyLBcDR9q4uWnnp+3IZkLk3nU1M22Y1PaMnmohBdEcp1M5+CImEk3LEalol5/JmTGUoQpdlK8NTMVGyLsqBbu1CQ0BklM9NwCJxm8ArOTsTFD1CvUEu8+R043Equmk3K+LOtlDlbj1EWKJcbcjmokCOFJdtGypbcoqtqAiDYkr5; 24:6hs099RAAWGC/VvNGVq+HWfoVGe8dLLVRXnQrYDcaW4cE67/mvxCF+VRqvHRdpnM7/wGfF5XA3jLst0un4CrfFS4+cJE0OP2PnevWb0pPOQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0741; 7:r3FivcWbdcYrRyR/DbK0HLT8WwD9nU4Qmxs/PRsjvCRyyFS3KtJf9b6Lzgtwnehpaaayz7efk+oVnVAYdRmNrNz7YMi/9YJPZLZCPT3bd5EKXo8vZxeM+DHtfF4v3hFUMrwDNiYgHnWPmlwhitZbJs+Hf+r9CAkaXF59L4Jg6/c2CMv04mlq06md9t2m9V8qwWdMO/BJkdkVIREhcc85oKuJ7/9ZNQFDz0CMX+pfHiS3MAXp+B4QruXVBejJhKvniGSEL809nsKJfRq55X1Wtl+mx6gclKR0+MhjN1Z2d6/vXS0yMqGDU7MRmEKXCVWtuDGBoe1DklmFu3I/RK1JoYci4BYy5o0gVe9bNXT12TQ= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2016 12:44:37.9243 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0741 Subject: Re: [dpdk-dev] [PATCH v2 2/8] ethdev: Helper to convert to struct rte_pci_device 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: Tue, 22 Nov 2016 12:44:41 -0000 On Monday 21 November 2016 10:25 PM, Jan Blunck wrote: > Signed-off-by: Jan Blunck > --- > lib/librte_ether/rte_ethdev.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h > index 9678179..3adbb2b 100644 > --- a/lib/librte_ether/rte_ethdev.h > +++ b/lib/librte_ether/rte_ethdev.h > @@ -1644,6 +1644,12 @@ struct rte_eth_dev { > uint8_t attached; /**< Flag indicating the port is attached */ > } __rte_cache_aligned; > > +/** > + * @internal > + * Helper for drivers that need to convert from rte_eth_dev to rte_pci_device. > + */ > +#define ETH_DEV_PCI_DEV(ptr) ((ptr)->pci_dev) > + > struct rte_eth_dev_sriov { > uint8_t active; /**< SRIOV is active with 16, 32 or 64 pools */ > uint8_t nb_q_per_pool; /**< rx queue number per pool */ > Acked-by: Shreyansh Jain