From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: Re: [PATCH v2 3/5] mbuf: support register mempool Hw ops name APIs Date: Mon, 15 Jan 2018 19:54:36 +0530 Message-ID: <0eba08d8-543e-49d8-5dd8-e53afa5e5fc8@nxp.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: , , To: Jerin Jacob 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) In-Reply-To: <20180115114127.GA29114@jerin> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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.