Hi I configured static aggregation on the physical switch and also configured a static aggregation bond port on the latest version of OVS. When I set the LACP of the bond port to active, the port goes down, which is reasonable because the protocols on both ends do not match. However, when I restore the LACP setting to off, the port status cannot be recovered.
This situation occurs because when I set LACP to off, it does not trigger seq_change(connectivity_seq_get()), so the port status is not updated in the port_run function. A simple solution is to update the connectivity_seq when the LACP status changes. This will ensure that the port status is refreshed during the next port_run. A simple patch is provided below. Index: bond.c bool bond_run(struct bond *bond, enum lacp_status lacp_status) { struct bond_member *member, *primary; bool revalidate; ovs_rwlock_wrlock(&rwlock); if (bond->lacp_status != lacp_status) { bond->lacp_status = lacp_status; bond->bond_revalidate = true; + seq_change(connectivity_seq_get()); /* Change in LACP status can affect whether the bond is falling back to * active-backup. Make sure to create or destroy buckets if * necessary. */ Best regards, ------------------------------------------------------------------------------------------------------------------------------------- ????????????????????????????????? ???????????????????????????????????????? ???????????????????????????????????????? ??? This e-mail and its attachments contain confidential information from New H3C, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
_______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss