Thread (100 messages) 100 messages, 16 authors, 2017-10-12

Re: [PATCH v4 1/5] net/bonding: remove bonding APIs using ABI versioning

From: Yang, Zhiyong <hidden>
Date: 2017-09-22 02:02:14

Ferruh,
-----Original Message-----
From: Yigit, Ferruh
Sent: Thursday, September 21, 2017 6:37 PM
To: Yang, Zhiyong <redacted>; dev@dpdk.org
Cc: thomas@monjalon.net
Subject: Re: [PATCH v4 1/5] net/bonding: remove bonding APIs using ABI
versioning

On 9/21/2017 9:32 AM, Zhiyong Yang wrote:
quoted
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 <redacted>
<...>
quoted
-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,
quoted
 	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()"
Ok. I will merge them into one.
Thanks,
Ferruh

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help