[bugfix] set same mac of bond slave
    Stephen Hemminger 
    stephen at networkplumber.org
       
    Tue Apr 30 17:55:39 CEST 2024
    
    
  
On Tue, 30 Apr 2024 09:17:30 +0800
Simon Jones <batmanustc at gmail.com> wrote:
> +               for (i = 0; i < internals->slave_count; i++) {
> +                       if (rte_eth_dev_default_mac_addr_set(
> +                                       internals->slaves[i].port_id,
> +                                       bonded_eth_dev->data->mac_addrs)) {
> +                               RTE_BOND_LOG(ERR, "Failed to update port Id
> %d MAC address",
> +
> internals->slaves[i].port_id);
> +                               return -1;
> +                       }
> +               }
>                 bond_mode_8023ad_mac_address_update(bonding_eth_dev);
This patch looks wrong. If you read bond_mode_8023ad_mac_address_update() it
expects each member to have different address.
Other modes, already set all members of the bond to have the same mac address.
    
    
More information about the dev
mailing list