From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0053.outbound.protection.outlook.com [104.47.32.53]) by dpdk.org (Postfix) with ESMTP id 0E1E0235 for ; Wed, 20 Sep 2017 13:24:50 +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=GsaO9BjZawNUkXjXhlDUJe4tNvWDj/0XbZI//wvUETQ=; b=fNOd8m5nCTmXMhLhvC1+SdTPRA9HJ7aaLvwq27Md0QklAN/SupYjiL9l9POW7yeXc9ECq1T7buyBK2NbsLlY8w/Kb8jvrueVIdTP/WIsiBEGbzEIWmkEC6uXoMAatrzjAUF1cMaMPHMUepzilc+F46juBBTc3ln/EhNabPRYzKM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from localhost.localdomain (111.93.218.67) by DM5PR07MB3098.namprd07.prod.outlook.com (10.172.85.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 20 Sep 2017 11:24:43 +0000 From: Santosh Shukla To: dev@dpdk.org Cc: olivier.matz@6wind.com, thomas@monjalon.net, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, aconole@redhat.com, stephen@networkplumber.org, anatoly.burakov@intel.com, gaetan.rivet@6wind.com, shreyansh.jain@nxp.com, bruce.richardson@intel.com, sergio.gonzalez.monroy@intel.com, maxime.coquelin@redhat.com, Santosh Shukla Date: Wed, 20 Sep 2017 16:53:48 +0530 Message-Id: <20170920112356.17629-2-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170920112356.17629-1-santosh.shukla@caviumnetworks.com> References: <20170918104234.9149-1-santosh.shukla@caviumnetworks.com> <20170920112356.17629-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0076.INDPRD01.PROD.OUTLOOK.COM (10.174.208.144) To DM5PR07MB3098.namprd07.prod.outlook.com (10.172.85.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1aa9a0c8-ccfe-4af4-3644-08d5001a3419 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM5PR07MB3098; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 3:57SwA8zAC6s5TMsCM0pNZK9/kR638b0WH6JhEvnADYtoHx1gr4ooA1rRTLxku0pvbElKKP5Rlzr9efQ0KcO7S932OB//oMW5ZnwuQPdm3jtoRXSyFITX6q/VJGvhXSqbRK7KdD68vg5IbExrJX10SiWNJ3tRu883EI6T+iVM8csRdjHTeOjeFtLaTKuPLRHDxGNuQxr9ysdCiASNdbx7Cztq7pGjEDBv/rvBYveQ0rhGI9eP1+Efo4hxvCGd0FDj; 25:EPr3r2oV58Ga++c8ThyU6Xszv+1vecfoj21zHZaQIcouayVglni6Pvnkb5caLqRA5XIybdZXxfW1oc+SUF6BE4kBYmLvDStD0tbfPmzrqgrc5lRT8k3ebVZUxw+1+fXnjqzWYYVhPN/5RLp9ta20UhOc0NvyAy1xfLV9ielst59AUhpvs/9IJGRMMCFZfZi2RzyKpzhzlIGQ8lCNqHk/90gTT1BvsLweOcd1mKKtboU7wx+G0f7KTgN/RHQ9GOVfD0o1gt9EQ/m1bGeDBpp+m1xQudpDcI/Q/jV3S93QZp9BRUzkuiES7yg+r1ri9HwopSr5uRqUieOmagXu85ToLA==; 31:z1dp0FHnMLLoVBzS18Z9TSWBDC9swcuOTzpzqxJzoKljZXatdPoYwWRZCmGxU3vWQVvrYhF6giR+WCou7Jlz5t9ghKrzo25ZsYe76IIANNmTdFTlp9NRct0PFV/9iWyDbKgVtny12nQEGVxE7MQVyr44t3RCWM/NnxkneXGR7zHxxiT8d29EMXNvy/K3xOFs4IJ4u3akR4SBmP8Ng84h+gwUFk+0SqSxIv4xbOr8LxM= X-MS-TrafficTypeDiagnostic: DM5PR07MB3098: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 20:tLN9gq1syIBq9VwywbL6chXzg+eY5IbHO+fZDGYIYecSyPWBgOsmIyW1B82+HMzG3ZrUEDuUmveqwsPxAiNvl8e4a0gYKnhEEKs4g/eh3dMb2un3r4XMQdXuFoytWgYP1nFXg6R4YBFhOGT4HM1IDnsehnzIDnj56WSOki7w7v9WLzC+PSglbdMkSBqP4kPHRM3UJyECtKvANpDtmK+L/c5Etdpyt73GGMaQUY2vWfoZcOxz4sg2tEK7mBMHMxxJ1x0WDgO9wnD/LgLfk2KeEoZvVieVPricCN/qU0QGxNCsFoXdM2Z0FfV4lIzcJ+paulLoB2i15Y8LRzPqzs3nSfJsnvJDQQtklngabiJNVaSDP/s5krbFRJ4eIrMwUp/BsoSnSJZP8gS6IeGIU7PykRqG5M7M2E5BdTTmMhDzN9ZYsbUNyqNuKD1NoxkKY8IvLcaNjvpNvzytadpyXsb2Mlltwg0e8VzDI65lHOB6p87m0/+vTsmwIGzjtRS8eWWnxBLJMmOxhflVb7YWmTmMl/3OskNSTRRNgPC+zGy/Tk0zhDE7HO+rIhokmhcnI1ZTmYfTqDsWWV4xpaEAPLVOcxIkOXvALRNOY4lWyX6QsqE= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(93006095)(3002001)(6041248)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR07MB3098; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR07MB3098; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 4:i7FrTmWynGjX37L0/Srb2xTzP14KoxDw39UFLWMKZlUEASqUMzwQnhMMmh0FLjoZ//Uwyyhh6dKM/HM5pNP0VcxLk+nmZXlW/YZj/xq6z77jsA/kOsHGnmtF5IZCOkJGRDSy6QnG5EVqWZiZvCf/NGDMtUcBiOuVQO012IjgAZM+260ueLMhwKkJMV00C9tefYiuAgdyX4KGYjdgQIFPzXY2lOCBOjVoTA8KwNmCdLM2YDk7vcOkChB7Q/gXlt32wjy1kbaekrD7B/+lvPpE7FDAo0OA1jMoMQdW5KT21kuEOMpisni+vz6jv2gPMESLKvWewgmn0ft8VxuSb0FArA== X-Forefront-PRVS: 04362AC73B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(346002)(376002)(189002)(199003)(66066001)(3846002)(106356001)(8936002)(7736002)(2361001)(33646002)(6506006)(2351001)(47776003)(25786009)(105586002)(53936002)(6116002)(316002)(36756003)(6486002)(107886003)(68736007)(5009440100003)(101416001)(6512007)(81156014)(81166006)(97736004)(4326008)(50986999)(76176999)(16526017)(8676002)(2906002)(16586007)(189998001)(305945005)(478600001)(72206003)(2950100002)(5003940100001)(1076002)(48376002)(50226002)(6916009)(42882006)(50466002)(5660300001)(575784001)(8656003)(7416002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3098; 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; DM5PR07MB3098; 23:rBAsS0GDrq+Tqp8ocGfFkSLvW8BCYRoqRUMhSubnD?= =?us-ascii?Q?kHaItQXZpDHSAaDOr+nW5jhzcw/i9sOcMCNvEzuqVWCoSOk7uRY3wozMX4Pw?= =?us-ascii?Q?qe+nH5bb+922/yYfKq3kkqZN2k6+N+tOcj4gi4Ezm0leQTqa6+wgxKY/2P1J?= =?us-ascii?Q?3nLx/g/7W9yo8SdItzp8898V9GLXmn3+2UAa/hwM/dm3ErgiKQ7t7fAb69MK?= =?us-ascii?Q?mJOH6QfyOu6Ka+RxtMucT5l4Aek2uZzfPaiTS76VNYv/g8FaYZ0K8vo1hw9z?= =?us-ascii?Q?nVTkaosf/ggF+JhTaUgbrlr1MFzfdegFsWLsRohAHb3tfKT5Sf2V+IkYYQ+m?= =?us-ascii?Q?cvV8Je6BcGbMVZj5M36ICtRIAOpXuu4Yxpyj+CXbATGfty4cPv4WrPaPL/Vf?= =?us-ascii?Q?y2i8UnKEBZxHP8PWJP1GsKExPD+6Jr/Y4t/5fqzcDhgA1a4i56N5Xx2HyOMA?= =?us-ascii?Q?kMbjQtQHT3UDPAl45n2qL+frKuCyQAiOlAD0Ut97W2oUz0VaJKGFPk9mMOoZ?= =?us-ascii?Q?oWP9Qeq4vjIKYGwGGhoh9LcaF/KnrXSR1yWz20BM5j+xgSxuMnOtHonZN8Eu?= =?us-ascii?Q?MScTuCN7rEkgVTjkfaF63AeEm3HtuEbcpimYfM4JiupMKxQiI6c+3z7+gWgY?= =?us-ascii?Q?gvIZlU1kVPI67/5fkyc03tExAwdahD2KW6btdWO+DPNFPWNUFYMVLujyKy2x?= =?us-ascii?Q?nSSSoGphhuHbjqkahhuVjZBhAmTVKbwAsvgFQGvv1kc4e2yZXw8Asm/DphD/?= =?us-ascii?Q?UeVX3Lk79aiQzglVFogy55gkRUASn8X1JW32TZgIF5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hk6FX32zNcalU+WbdRCDA==; 24:HrrrzO4MUU/Fnj7DIKGp3GO7+wvFwyEPfi9CzQKpqMvcMkRbM49l57PPwHwe0xhjR6FoUAp4Ox87o+RvNNKZo0C5zVlo+P/aay/ohtAr49U=; 7:Oze9Is83tJB1cF2v2OJlhOJk8Ky897HrZj9S/3B3etL11RZuMoXu/xcKqwkpkfCPqx9bB1eh3uYf/DidsobkKeI+g4pCjJnXLK3+b4LBjf+5mo/3mRl0yyW4eyefTtvIF3yAXkDtaDQfcy9ZOOpbhGYFrDq/+XVvMbUL+BGbu/4Mj7EOWjmfw1C7ZO9cdWloUtmeGXLt9X0K1OOQ9EDmI4iFEMgJ7BW7QNGclhi79ng= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2017 11:24:43.7572 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3098 Subject: [dpdk-dev] [PATCH v9 1/9] 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: Wed, 20 Sep 2017 11:24:50 -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 Reviewed-by: Anatoly Burakov Tested-by: Hemant Agrawal --- 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 47a09ea7f..cfbf8fbd0 100644 --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map @@ -238,3 +238,10 @@ EXPERIMENTAL { rte_service_start_with_defaults; } 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 8b123391c..eab84c7a4 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -366,6 +366,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 8c08b8d1e..287cc75cd 100644 --- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map +++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map @@ -243,3 +243,10 @@ EXPERIMENTAL { rte_service_start_with_defaults; } DPDK_17.08; + +DPDK_17.11 { + global: + + rte_pci_match; + +} DPDK_17.08; -- 2.14.1