> Please see comments below.
From: Matan Azrad >> +/* >> + * Remove additional MAC addresses from the slave */ int >> +slave_remove_mac_addresses(struct rte_eth_dev *bonded_eth_dev, >> + uint16_t slave_port_id) >> +{ >> + int i, ret = 0; >> + struct ether_addr *mac_addr; >> + >> + for (i = 1; i < BOND_MAX_MAC_ADDRS; i++) { >> + mac_addr = &bonded_eth_dev->data->mac_addrs[i]; >> + if (is_same_ether_addr(mac_addr, &null_mac_addr)) >> + break; >> + >> + ret = rte_eth_dev_mac_addr_remove(slave_port_id, >> mac_addr); >> + } > I suggest to return the first error, also in case of all success > with last failure, the code here wrongly returns success. Fixed in the patch v4. -- Alex