From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0061.outbound.protection.outlook.com [104.47.32.61]) by dpdk.org (Postfix) with ESMTP id 02B3D8CEE for ; Mon, 14 Aug 2017 18:12:22 +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; bh=/CkvVsG9+4YtxfrdUgGEkhi8vkARp+KjumTBZLSGnpw=; b=F4q+P03VUGA0kJp3HwjQ2kM6QiAID1zUlPE8GCp1vwHQMNLFuUr6aqyvuVGbkY01Y2ZDOAwTFFqK2jMux7W3aCLP7U8HU7OwPi6y3Fgudj9s9wI89uxYs7GfbRtBYbPNFD+AO0IHrEah6ggNLyQMejzpfH2o7CJsvWeqvrcejfo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from localhost.localdomain (14.140.2.178) by CY4PR07MB3093.namprd07.prod.outlook.com (10.172.115.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1341.21; Mon, 14 Aug 2017 16:12:16 +0000 From: Santosh Shukla To: dev@dpdk.org Cc: olivier.matz@6wind.com, thomas@monjalon.net, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, maxime.coquelin@redhat.com, sergio.gonzalez.monroy@intel.com, bruce.richardson@intel.com, shreyansh.jain@nxp.com, gaetan.rivet@6wind.com, anatoly.burakov@intel.com, stephen@networkplumber.org, Santosh Shukla Date: Mon, 14 Aug 2017 21:40:49 +0530 Message-Id: <20170814161059.6684-3-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170814161059.6684-1-santosh.shukla@caviumnetworks.com> References: <20170724084004.25542-1-santosh.shukla@caviumnetworks.com> <20170814161059.6684-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: PN1PR01CA0087.INDPRD01.PROD.OUTLOOK.COM (10.174.144.155) To CY4PR07MB3093.namprd07.prod.outlook.com (10.172.115.7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2a31ac2d-650f-4924-d990-08d4e32f3ea9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR07MB3093; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3093; 3:wW6GOBiDFg4kfYe+uqCTUdIW7Db2YCAs8qDea6O+XbIKtqJoMNSMSCic9PjSgZpIIESC+/OzQC5hTvmXUYg6w79LbcmEIWYMbK6p14XS1WYvEsL4M4X40vSwsHQglctoGqJFpzJh7VYQJ+7YRuwfZnaB41vSCzXJQkGOBT/X0W5pzh1Hk1qFIdbqxlBgPfVoRTjLgaIMki50GRjZK+A6/5+ycyuoGKUd9ACEnhkH5+StwqC7N+G+hAx/5UE135PE; 25:kCNKMFNSjc/w0EKypX1N30SGAhsq4XXXVsOxoUKK5nv4p04lv75eBiVfrgkORLdv4xPqkBZajZ0rMMVo8eLZYtuTo9dqRgFM8h2BiFjkEVTfca5QUAAv9VNdSVHcRSttgRSHGqPHZR4VQhAbo9mo81FjvLYeR+571lqJ3Xg3civTmHCOWuZVqRfCiSq4itDHT2qN1aFliqXCtijuqZnkw5kw4gXsQ/AEgY0va0kYUK8EumOiRIb04mwnaBTSeXGKq/9gfc+eZqhYBBLH2a+J+8SjAPUOlue70AA3GfUI+n6WXFLqc5x4KQLCL/fEqd74yI2K9qnTsnqXrYxKUnTdmw==; 31:Wa1aqaCEMkH0fes28tDFnRWuF12v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YVnevDwFN4yswcagCJM/9x8/p23jJeXSGCrzSBLubg3+snJoPLqgEb6LxvmrmrXykYHS2ZvTJ X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(100000703101)(100105400095)(3002001)(10201501046)(6041248)(20161123562025)(20161123560025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3093; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3093; X-Forefront-PRVS: 039975700A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6069001)(6009001)(189002)(199003)(76176999)(101416001)(1076002)(50986999)(8656003)(6116002)(66066001)(72206003)(7350300001)(5009440100003)(3846002)(107886003)(47776003)(110136004)(2361001)(8676002)(42186005)(6486002)(50466002)(48376002)(105586002)(106356001)(189998001)(4326008)(6506006)(5660300001)(2351001)(25786009)(6512007)(81156014)(478600001)(36756003)(33646002)(7416002)(5003940100001)(7736002)(305945005)(68736007)(97736004)(6666003)(50226002)(6916009)(42882006)(575784001)(2906002)(2950100002)(81166006)(53936002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3093; 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; CY4PR07MB3093; 23:eR0MGk0No2OzOhfyUvh/iKSNed5/wvma5Fn+j+70h?= =?us-ascii?Q?hZvaA4WTRgcCHL64RhSB/B1GzJjeOTjdu1rrNd2lF3iAELu4+HEYzLWFrdmQ?= =?us-ascii?Q?oIuym1xgEqierfV0Ga900Lny1MwDnvBy1Lv3Z1bf6sr9xjxho15AWuZWHfNH?= =?us-ascii?Q?uYwCYHt3nV42rTehD98s5GssWVIF20gwUp8SZQuRAy4ioa1+P/M+sxMXDb4R?= =?us-ascii?Q?sqEZtqK/kiZRm+vYCYUvYtB+FzRUOqrFnrK8R9tWboCSSqnu8tS5LxIWhnhZ?= =?us-ascii?Q?mgKnLapdMKDETPbunc87vsLON9y2WE6iplyP0orQRGspw78eh2hMZ0jGXMg2?= =?us-ascii?Q?XIXY29QVivjjVCEM+VpxX2uUXqbu9SOfeR/fMunqxJ9MykHikXDnVNE4kzBe?= =?us-ascii?Q?Jwm29PmdR3a18Ahr4N6WNVOaO6BSjgSD9vDFtSuXzaPqWubnE0n9SSqKnyZf?= =?us-ascii?Q?297JzkRkPXFSN2kToYMYrVF+Wdq7RSrGp+++EKMeveG8q1/BDbvj9cY0UMIx?= =?us-ascii?Q?IDE5B/XHou+dB6GVkjDYguIbLri2v3MU6qMfmnDNTuo5hD32zL6hemMYjqkA?= =?us-ascii?Q?xNIvw8DFsULBDsaTizLJ9Uhwc5YN02p7KO2wKHgM2HeAXXatjErdBwRmMSLy?= =?us-ascii?Q?rsmLkILnC7PE1HKsDgKgE/Pm5Qx795r4X77ynecqn6wDMPWWOIa3n2zLUjT4?= =?us-ascii?Q?FgjI02J8C3XCH+0LsSyCwUJVkfXneZGhiIGvKX8gs/zXuhikfEbMt927BSnZ?= =?us-ascii?Q?VnnSklmeB8p4zfDuIipPzZ6o6ejBbRqDOulpczJqXHhfDE7npaJflgpuetRC?= =?us-ascii?Q?tbH/sR02EGe42DpjfdQLGmMr0yf0k5jVSkjP0neSVVuiyOZHwiALVhEEMbH7?= =?us-ascii?Q?bjfvwdByUFUlGPYO8T8qX5DSkqhtX1yss8w9SvbEr5TqArQd93PslgNabAZT?= =?us-asc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uEam0Iz9QpZkc5VE6vgNpDszhgxquXRGuOGD9tIlA4EDJLAV9lbMbqXnXzk4=; 7:LrAISl6qZi25Ts0ez7+MQgmTy5GQQV8yb6XhWsUd+Nzhva/PSMmNIIm+A5hciMMKdYVBNzSHQq3YjCAvQrbgVYDvsfhV4MIQIocPaN1ue9NmcprpstLfwAoxXnjpPy9J/YVuMBERROqId79IjhuCMTxLhw+LSa97CExTr/OU4qX+ISyiCjwNULHQuWIqG9i+srZ+x120LTyGrmO1qmIZ3zl+UwDEBEflzc4g5Zo3RiI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2017 16:12:16.9743 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3093 Subject: [dpdk-dev] [PATCH v6 02/12] eal/pci: export match function 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, 14 Aug 2017 16:12:23 -0000 Export rte_pci_match() function as it needed in the followup patch. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Acked-by: Maxime Coquelin --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 +++++++ lib/librte_eal/common/eal_common_pci.c | 10 +--------- lib/librte_eal/common/include/rte_pci.h | 15 +++++++++++++++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 7 +++++++ 4 files changed, 30 insertions(+), 9 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map b/lib/librte_eal/bsdapp/eal/rte_eal_version.map index aac6fd776..c819e3084 100644 --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map @@ -237,3 +237,10 @@ EXPERIMENTAL { rte_service_unregister; } DPDK_17.08; + +DPDK_17.11 { + global: + + rte_pci_match; + +} DPDK_17.08; diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c index 52fd38cdd..3b7d0a0ee 100644 --- a/lib/librte_eal/common/eal_common_pci.c +++ b/lib/librte_eal/common/eal_common_pci.c @@ -150,16 +150,8 @@ pci_unmap_resource(void *requested_addr, size_t size) /* * Match the PCI Driver and Device using the ID Table - * - * @param pci_drv - * PCI driver from which ID table would be extracted - * @param pci_dev - * PCI device to match against the driver - * @return - * 1 for successful match - * 0 for unsuccessful match */ -static int +int rte_pci_match(const struct rte_pci_driver *pci_drv, const struct rte_pci_device *pci_dev) { diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index 743392f91..47f0532e4 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -368,6 +368,21 @@ int rte_pci_scan(void); int rte_pci_probe(void); +/* + * Match the PCI Driver and Device using the ID Table + * + * @param pci_drv + * PCI driver from which ID table would be extracted + * @param pci_dev + * PCI device to match against the driver + * @return + * 1 for successful match + * 0 for unsuccessful match + */ +int +rte_pci_match(const struct rte_pci_driver *pci_drv, + const struct rte_pci_device *pci_dev); + /** * Map the PCI device resources in user space virtual memory address * diff --git a/lib/librte_eal/linuxapp/eal/rte_eal_version.map b/lib/librte_eal/linuxapp/eal/rte_eal_version.map index 3a8f15406..a15b382ff 100644 --- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map +++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map @@ -242,3 +242,10 @@ EXPERIMENTAL { rte_service_unregister; } DPDK_17.08; + +DPDK_17.11 { + global: + + rte_pci_match; + +} DPDK_17.08; -- 2.11.0