Skip to contentSkip to conversation

net/bonding: rename global symbols

PATCH New Stephen Hemminger 1 participant 1 message Sep 26, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/bonding: rename global symbols

All global symbols should use a consistent prefix to avoid conflict when linking statically. The device ops can just be made local.

---
 drivers/net/bonding/eth_bond_private.h | 57 +++++++++------------
 drivers/net/bonding/rte_eth_bond_api.c | 45 ++++++++---------
 drivers/net/bonding/rte_eth_bond_pmd.c | 69 +++++++++++++-------------
 3 files changed, 80 insertions(+), 91 deletions(-)
drivers/net/bonding/eth_bond_private.h +24 -33
index 378bbba4e6..1796bf5d9d 100644
@@ -188,11 +188,6 @@ struct bond_dev_private {
 	struct rte_bitmap *vlan_filter_bmp;
 };
 
-extern const struct eth_dev_ops default_dev_ops;
-
-int
-check_for_main_bonding_ethdev(const struct rte_eth_dev *eth_dev);
-
 int
 check_for_bonding_ethdev(const struct rte_eth_dev *eth_dev);
 
@@ -218,65 +213,61 @@ valid_port_id(uint16_t port_id);
 int
 valid_bonding_port_id(uint16_t port_id);
 
-int
-valid_member_port_id(struct bond_dev_private *internals, uint16_t port_id);
-
 void
-deactivate_member(struct rte_eth_dev *eth_dev, uint16_t port_id);
+bond_deactivate_member(struct rte_eth_dev *eth_dev, uint16_t port_id);
 
 void
-activate_member(struct rte_eth_dev *eth_dev, uint16_t port_id);
+bond_activate_member(struct rte_eth_dev *eth_dev, uint16_t port_id);
 
 int
-mac_address_set(struct rte_eth_dev *eth_dev,
-		struct rte_ether_addr *new_mac_addr);
+bond_mac_address_set(struct rte_eth_dev *eth_dev,
+		     struct rte_ether_addr *new_mac_addr);
 
 int
-mac_address_get(struct rte_eth_dev *eth_dev,
-		struct rte_ether_addr *dst_mac_addr);
+bond_mac_address_get(struct rte_eth_dev *eth_dev,
+		     struct rte_ether_addr *dst_mac_addr);
 
 int
-mac_address_members_update(struct rte_eth_dev *bonding_eth_dev);
+bond_mac_address_members_update(struct rte_eth_dev *bonding_eth_dev);
 
 int
-member_add_mac_addresses(struct rte_eth_dev *bonding_eth_dev,
-		uint16_t member_port_id);
+bond_member_add_mac_addresses(struct rte_eth_dev *bonding_eth_dev,
+			      uint16_t member_port_id);
 
 int
-member_remove_mac_addresses(struct rte_eth_dev *bonding_eth_dev,
-		uint16_t member_port_id);
+bond_member_remove_mac_addresses(struct rte_eth_dev *bonding_eth_dev,
+				 uint16_t member_port_id);
 
 int
 bond_ethdev_mode_set(struct rte_eth_dev *eth_dev, uint8_t mode);
 
 int
-member_configure(struct rte_eth_dev *bonding_eth_dev,
-		struct rte_eth_dev *member_eth_dev);
+bond_member_configure(struct rte_eth_dev *bonding_eth_dev,
+		      struct rte_eth_dev *member_eth_dev);
 
 int
-member_start(struct rte_eth_dev *bonding_eth_dev,
-		struct rte_eth_dev *member_eth_dev);
+bond_member_start(struct rte_eth_dev *bonding_eth_dev,
+		  struct rte_eth_dev *member_eth_dev);
 
 void
-member_remove(struct bond_dev_private *internals,
-		struct rte_eth_dev *member_eth_dev);
+bond_member_remove(struct bond_dev_private *internals,
+		   struct rte_eth_dev *member_eth_dev);
 
 void
-member_add(struct bond_dev_private *internals,
+bond_member_add(struct bond_dev_private *internals,
 		struct rte_eth_dev *member_eth_dev);
 
 void
-burst_xmit_l2_hash(struct rte_mbuf **buf, uint16_t nb_pkts,
-		uint16_t member_count, uint16_t *members);
+bond_xmit_l2_hash(struct rte_mbuf **buf, uint16_t nb_pkts,
+			uint16_t member_count, uint16_t *members);
 
 void
-burst_xmit_l23_hash(struct rte_mbuf **buf, uint16_t nb_pkts,
-		uint16_t member_count, uint16_t *members);
+bond_xmit_l23_hash(struct rte_mbuf **buf, uint16_t nb_pkts,
+		   uint16_t member_count, uint16_t *members);
 
 void
-burst_xmit_l34_hash(struct rte_mbuf **buf, uint16_t nb_pkts,
-		uint16_t member_count, uint16_t *members);
-
+bond_xmit_l34_hash(struct rte_mbuf **buf, uint16_t nb_pkts,
+		   uint16_t member_count, uint16_t *members);
 
 void
 bond_ethdev_primary_set(struct bond_dev_private *internals,
drivers/net/bonding/rte_eth_bond_api.c +22 -23

162 lines not on this page · raw message

drivers/net/bonding/rte_eth_bond_pmd.c +34 -35

218 lines not on this page · raw message

Signature · 1 line
2.47.3