From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0088.outbound.protection.outlook.com [104.47.41.88]) by dpdk.org (Postfix) with ESMTP id B4E49A48F for ; Mon, 15 Jan 2018 15:24:44 +0100 (CET) Received: from BLUPR0301CA0008.namprd03.prod.outlook.com (10.162.113.146) by CY1PR0301MB0730.namprd03.prod.outlook.com (10.160.159.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Mon, 15 Jan 2018 14:24:43 +0000 Received: from BN1AFFO11FD016.protection.gbl (2a01:111:f400:7c10::136) by BLUPR0301CA0008.outlook.office365.com (2a01:111:e400:5259::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Mon, 15 Jan 2018 14:24:42 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; caviumnetworks.com; dkim=none (message not signed) header.d=none; caviumnetworks.com; 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 BN1AFFO11FD016.mail.protection.outlook.com (10.58.52.76) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Mon, 15 Jan 2018 14:24:41 +0000 Received: from [10.214.249.235] ([10.214.249.235]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0FEObht007749; Mon, 15 Jan 2018 07:24:38 -0700 To: Jerin Jacob References: <1513333483-4372-1-git-send-email-hemant.agrawal@nxp.com> <1515996674-26338-1-git-send-email-hemant.agrawal@nxp.com> <1515996674-26338-4-git-send-email-hemant.agrawal@nxp.com> <20180115114127.GA29114@jerin> CC: , , From: Hemant Agrawal Message-ID: <0eba08d8-543e-49d8-5dd8-e53afa5e5fc8@nxp.com> Date: Mon, 15 Jan 2018 19:54:36 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20180115114127.GA29114@jerin> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131604998820468111; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(396003)(376002)(346002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(24454002)(77096006)(229853002)(6916009)(85426001)(50466002)(93886005)(83506002)(104016004)(67846002)(305945005)(4326008)(97736004)(31686004)(36756003)(230700001)(53936002)(68736007)(65826007)(31696002)(54906003)(64126003)(356003)(2950100002)(86362001)(5660300001)(498600001)(8676002)(106466001)(2906002)(316002)(81166006)(81156014)(105606002)(6246003)(23746002)(58126008)(65956001)(47776003)(65806001)(76176011)(53546011)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0730; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD016; 1:BV9Tv8tfnV6P5PwTExUEIukMHBmPAzKzdumCW+ECCQi7luL6aLW+kpP/7U9wAVlYDk6eTmGjIKZ/tomDIJXQ0KfPml672PWURMGIIG3SWI4h+5aQ2dAQ5tGkmDdFs3A7 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8e5f7838-3f53-41d4-b42e-08d55c23b7d0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:CY1PR0301MB0730; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0730; 3:3WfKVX6z3TDsW3IYUv/Bk9h6JARC0wWA++qKZ79I5bj4iEBLRydcDIgRnfB+8EmgdXINIknPfazr5dZCPpT/13SP0+9eJ9rSawAC5JBHm33tSpjewRBvsxJ1BQn/u9uamX868uhcxoOtEh9U92AuOzxofhNFlb9F01DHMMsb0pZsV0ncFDAd1+fMj384nRdAJSK412j+DO48CLnl8a3xW/mSJHjOnbow34zrzDwDV3kB8wwg8fP7y23TynVUX5SZ0agZlMvi9G1ejnS2r9mGzdAv1ZHEdmbEgQn2Ms6CcjCis1+X9aaYa85gmx+ooP3BDWWeigcSJPhg/ccGbYKLGL8f91E/e2lAj4lRf6TaHTU=; 25:42Y7ABT7+G2qkFTwFF0hoY8ZUqSBnTIPw8mrv2mYRuP95j34HeZcSgRalBbS26G28YnT2CDT68kwNUzTjvXKGh+kG56HinV0hOjOi2CCWq9T51QtpIK2N5aia9YnBBQKdX77CwLvp8kS7rswx3lE9b5pYLWQwRG1qejtFc9GI8VU3mpd9p4IG4hgIHoIs8SqyWeonWNAgpezQ6Vk22iOgX/JwDenGqnllylI31kf3bR37f3Xxtv3Ms6xZ5tmYpYA/1Bho8UumY+a8ugAceyUZ/tIbXa1Y+NdpfCy6Ifaagc6ODYHWDiknUo9Liy/2aHvNR0xqdX4ve9nNaA8dCbwkw== X-MS-TrafficTypeDiagnostic: CY1PR0301MB0730: X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0730; 31:v+hx2nvBTCceKXEGwsawssw5uchm8bNcrYNYYQs8dGDlVlX+HZJQAxWpeGj+hNzxz6+S+LZNv86GaUHwvOBveQtHzbZ4lTkBsPkpMnluuxu5sU7YfENrE+nnIdFPaRcmw4ZeonfQ02oX8/ZWyYCn//0+6tTX6GsF6PxxEBPGRK4MecYjtAlM7jtuJmZ567QOfeDOqPRcR413ycrVC6YPWq3r1xPsSnv8uyrtVesCbtU=; 4:uRJD8vzRHTrFuoMzvALgyebYtbsHCfdWSKaL2LSp/K9CmQU9MD5ohJsDd32DdhvAK4fkhNtvvJE6baPIKnjLtlh8/N0N3lU8bMCPfK+Uj/QSZZNe+Vkz4bjw33G4YHu6kYBU/ws+XmoF9twy/td6Ei8Uxz38W9baSUJu8gsBR6gTw/ThJihqvBhAAix7McCUWA/BUMIpHNi+XIfHIAxFncaJyhxuCXq8bQnnjm5BXpD8G1LUnzylQBOVxhuycqy0YqLUUv2TEpF8+1otlyA5fQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3002001)(3231023)(944501161)(93006095)(93001095)(10201501046)(6055026)(6096035)(201703131430075)(201703131433075)(201703131448075)(201703151042153)(20161123559100)(20161123563025)(20161123565025)(20161123556025)(20161123561025)(201708071742011); SRVR:CY1PR0301MB0730; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY1PR0301MB0730; X-Forefront-PRVS: 0553CBB77A X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; CY1PR0301MB0730; 23:PACOlkzr+3wgs+OuibvfCbONtXsFSFjQPTl?= =?Windows-1252?Q?oW2E8o9EKXQrN7yDXbsWouss9vsJGYphniqJM0KjDGPI7qBdQ7FfmuDG?= =?Windows-1252?Q?fpP8tGNU7b8QL71nGL7f3FB49yrLzWemtVemxKZY4m8rwJLIl6qRBrjK?= =?Windows-1252?Q?LJyZ41yFuOhx1IehtU3a35JDAYBEO2W26xnbOggY1JRUViDZHpLSmiBE?= =?Windows-1252?Q?WByhSsC3yhySkNQu+6x/LoQz2MfLgAnQsD1R18rdY1PG6XRs1LHWtYlg?= =?Windows-1252?Q?6nBWfOd7DvTEgTj7IaiwD1tCamqBVTyDz0TElZiZYk+dTQAw05Z9kx/5?= =?Windows-1252?Q?NiuVrFT1GbXpBSxiYHm8VXKWH2VJsHsdpyz/JW2jZ1/ZGqnlKTa3m2SA?= =?Windows-1252?Q?KQjvcOnzjFA6E4tVqlMQUWGh9OUMWzhWs5sSKmfWoQxEx8yIUyfFjWMb?= =?Windows-1252?Q?jGMGaU9ccf87+6NssWrMO0/Fv11bdbKc3oAeWZe4FQKlvoynJ+v74MLV?= =?Windows-1252?Q?O4GgIp32fcPEqRoP17RT2yEVulZ13CQwujab/UQkBn0rKKeY67dPceSZ?= =?Windows-1252?Q?5xkn6nZXSfT6xmmvRfXw52nO6xewuTpRrzfKsDvLC8AmnKde9XshBqs5?= =?Windows-1252?Q?hRX6O3Lvt4DL5QpCI3szszkZQAslkV2XAssgob7aKpTd3S3IQhC79O7a?= =?Windows-1252?Q?4XVUwRDslsi98L/7evc9ID57yVWtg2k+JOVooV1x8OpJc2SEMIihWUO0?= =?Windows-1252?Q?xdYyCsFycaAdWK9fQkEcpbGihpj9FXJQus/YFH+p45VFa0nkg7RoszX0?= =?Windows-1252?Q?gjeZKOYzD66o/eOPcnPxoTCOLGVpLCR6VAPu4Is9YpGHsC36pf+vOSEv?= =?Windows-1252?Q?DuRoD7w8UY5PFIFsR0wT3UTJlvUzc61nu4DWX1hohh7PRXUgpaugEZ6k?= =?Windows-1252?Q?BYg+PHMGQL/AjmZ3gjk3fRUbSFgvMYq7zUnDWHK8Ii5TMuN2ryb8smf/?= =?Windows-1252?Q?LGaOLu6iW8PHLm6H8rchirUJQHmFjs2goUqFN5awKsv1g3DKqaWr1dLY?= =?Windows-1252?Q?bu2fOWu8ws63ZBaAEJOfBcYR8BETvx2MWu3AKDlRjdifshAX+vSU0uqp?= =?Windows-1252?Q?d4yfRlVGoa1VYg0ANRkAuiqT/+MjGv5v+o2nwEJqGFq1w88wCEOF9mja?= =?Windows-1252?Q?G3BegbtoFYGgsXkfyhnuLNSSUyCo6C7aM/SxR2diiivXzzF2tOsQlAvd?= =?Windows-1252?Q?L4WLfo2+8e+iB1/MFsT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77PM2TA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2018 14:24:41.6568 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8e5f7838-3f53-41d4-b42e-08d55c23b7d0 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: CY1PR0301MB0730 Subject: Re: [dpdk-dev] [PATCH v2 3/5] mbuf: support register mempool Hw ops name APIs 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, 15 Jan 2018 14:24:45 -0000 On 1/15/2018 5:11 PM, Jerin Jacob wrote: >> >> +int >> +rte_mbuf_register_platform_mempool_ops(const char *ops_name) >> +{ > > Should we also check the following? > > if (internal_config.plat_mbuf_pool_ops_name != NULL && > strncmp(internal_config.plat_mbuf_pool_ops_name, ops_name, ..) == 0) > return 0; > > i.e avoid returning error if the same the driver but another > instance(different ethdev port) updates the same ops_name value. > No, there shall be only one default platform hw pool name. Any ethdev driven (may be weight based) replacement shall be dealt separately.