On 10 Sep 2024, at 19:03, Mike Pattrick wrote:

> On Mon, Sep 9, 2024 at 4:01 AM Jonathan Davies
> <[email protected]> wrote:
>>
>> The OVS DB has a bond_active_slave field. This gets read by
>> port_configure_bond() into struct bond_settings' active_member_mac
>> field. See commit 3e5aeeb5 ("bridge: Keep bond active slave selection
>> across OVS restart") for the original rationale for preserving the
>> active bond member.
>>
>> But since commit 30353934 ("ofproto/bond: Validate active-slave mac.")
>> the bond_settings' active_member_mac field is ignored by bond_create(),
>> which set bond->active_member_mac to eth_addr_zero.
>>
>> Instead, set it to the value of the bond_settings' active_member_mac so
>> that the selection is preserved across OVS restarts.
>>
>> Also add a test that checks this behaviour.
>>
>> Fixes: 303539348848 ("ofproto/bond: Validate active-slave mac.")
>> Signed-off-by: Jonathan Davies <[email protected]>
>
> For posterity: I investigated what happens when the underlying mac
> address changes between restarts. And in that case a new active member
> is selected.
>
> It's unclear to me why eth_addr_zero was set in the first place.
>
> Acked-by: Mike Pattrick <[email protected]>

Thanks for the review Mike. The patch was applied to main and will prepare 
backports.

//Eelco

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to