From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id BCD522BA1 for ; Tue, 20 Sep 2016 18:14:31 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP; 20 Sep 2016 09:14:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,368,1470726000"; d="scan'208";a="11454410" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by orsmga005.jf.intel.com with ESMTP; 20 Sep 2016 09:14:29 -0700 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.6]) by IRSMSX151.ger.corp.intel.com ([169.254.4.226]) with mapi id 14.03.0248.002; Tue, 20 Sep 2016 17:14:29 +0100 From: "Pattan, Reshma" To: "Kerlin, MarcinX" , "dev@dpdk.org" CC: "thomas.monjalon@6wind.com" , "De Lara Guarch, Pablo" , "Kerlin, MarcinX" Thread-Topic: [dpdk-dev] [PATCH v2 1/2] librte_ether: ensure not overwrite device data in mp app Thread-Index: AQHSE0ypb2H6v7hmpEuOr3Ed5S/tOqCCi0Xg Date: Tue, 20 Sep 2016 16:14:28 +0000 Message-ID: <3AEA2BF9852C6F48A459DA490692831F010A59C3@IRSMSX109.ger.corp.intel.com> References: <1472806710-25866-2-git-send-email-marcinx.kerlin@intel.com> <1474381895-16066-1-git-send-email-marcinx.kerlin@intel.com> <1474381895-16066-2-git-send-email-marcinx.kerlin@intel.com> In-Reply-To: <1474381895-16066-2-git-send-email-marcinx.kerlin@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjRjOTQ5YTEtZGFiMC00NjNmLWE0OTMtOTk1YWMzM2Y4YmRlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjJCVG5zenBRVWpTUGxJTWtFNWtQNWdJeVJHSFJWU1dLWDBNd3NiZE5lc3c9In0= x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 1/2] librte_ether: ensure not overwrite device data in mp app 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, 20 Sep 2016 16:14:32 -0000 Hi Marcin, > /** > * @internal > + * Returns a shared device data slot specified by the unique identifier = name. > + * > + * @param name > + * The pointer to the Unique identifier name for each shared Ethernet > +device > + * between multiple processes. > + * @return > + * - The pointer to the device data slot, on success. NULL on error > + */ > +struct rte_eth_dev_data *rte_eth_dev_data_allocated(const char *name); This should be static function in source file rather than public function. And name can be rte_eth_dev_get_dev_by_name() something like that? Thanks, Reshma