From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id F1CF42BAA; Tue, 28 Feb 2017 07:38:24 +0100 (CET) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2017 22:38:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,217,1484035200"; d="scan'208";a="62797925" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by orsmga004.jf.intel.com with ESMTP; 27 Feb 2017 22:38:22 -0800 Date: Tue, 28 Feb 2017 14:37:18 +0800 From: Yuanhan Liu To: Ami Sabo Cc: dev@dpdk.org, stable@dpdk.org, Thomas Monjalon Message-ID: <20170228063718.GK18844@yliu-dev.sh.intel.com> References: <1487851096-32479-1-git-send-email-amis@radware.com> <1488102926-24158-1-git-send-email-amis@radware.com> <1488102926-24158-2-git-send-email-amis@radware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1488102926-24158-2-git-send-email-amis@radware.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-stable] [PATCH 1/2] lib/librte_ether: export secondary attach function X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2017 06:38:25 -0000 Cc Thomas, the librte_ether maintainer. On Sun, Feb 26, 2017 at 11:55:25AM +0200, Ami Sabo wrote: > /** > * @internal > + * Attach to the ethdev already initialized by the primary > + * process. > + * > + * @param name Ethernet device's name. > + @return mailformed comment: missing *. > + * - Success: Slot in the rte_dev_devices array for attached > + * device. > + * - Error: Null pointer. > + */ > +struct rte_eth_dev *rte_eth_dev_attach_secondary(const char *name); > + > +/** > + * @internal > * Release the specified ethdev port. > * > * @param eth_dev > diff --git a/lib/librte_ether/rte_ether_version.map b/lib/librte_ether/rte_ether_version.map > index c6c9d0d..d34c57a 100644 > --- a/lib/librte_ether/rte_ether_version.map > +++ b/lib/librte_ether/rte_ether_version.map > @@ -154,3 +154,10 @@ DPDK_17.02 { > rte_flow_validate; > > } DPDK_16.11; > + > +DPDK_17.05 { > + global: > + > + rte_eth_dev_attach_secondary; I saw whitespace chars. Like code, it should be TABs. Other than those minor nits, it looks good to me. Reviewed-by: Yuanhan Liu --yliu