From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v4 1/5] net/bonding: remove bonding APIs using ABI versioning Date: Thu, 21 Sep 2017 11:36:55 +0100 Message-ID: <341cb310-5446-62c4-ec3a-f6c914ae2471@intel.com> References: <20170909144727.46388-1-zhiyong.yang@intel.com> <20170921083243.57991-1-zhiyong.yang@intel.com> <20170921083243.57991-2-zhiyong.yang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: thomas@monjalon.net To: Zhiyong Yang , dev@dpdk.org Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 7F0C31B192 for ; Thu, 21 Sep 2017 12:36:58 +0200 (CEST) In-Reply-To: <20170921083243.57991-2-zhiyong.yang@intel.com> Content-Language: en-US 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 9/21/2017 9:32 AM, Zhiyong Yang wrote: > There are two bonding APIs using ABI versioning, and both have > port_id as parameter. Since we are already breaking ABI, no need > to keep older versions of APIs. > > Signed-off-by: Zhiyong Yang <...> > -int > -rte_eth_bond_8023ad_conf_get_v1708(uint8_t port_id, > +rte_eth_bond_8023ad_conf_get(uint8_t port_id, > struct rte_eth_bond_8023ad_conf *conf) > { > struct rte_eth_dev *bond_dev; > @@ -1409,10 +1320,6 @@ rte_eth_bond_8023ad_conf_get_v1708(uint8_t port_id, > bond_mode_8023ad_conf_get_v1708(bond_dev, conf); I am aware this is not focus of the patchset, but it would be good to rename this function too and remove _v1708 suffix. It seems there is already a function named "bond_mode_8023ad_conf_get" and after removed code, "bond_mode_8023ad_conf_get" only called by "bond_mode_8023ad_conf_get_v1708": bond_mode_8023ad_conf_get_v1708() bond_mode_8023ad_conf_get() So it is possible to merge them into name "bond_mode_8023ad_conf_get()" Thanks, ferruh