This repository was archived by the owner on Oct 20, 2026. It is now read-only.
Repository navigation
Tags
Tags
Fix bad escape sequences in Python strings (#137) - Some of the Python scripts contain strings with ill-formed escape sequences, which generate errors in newer versions of the Python interpreter. This CL addresses the issue. Signed-off-by: Derek Foster <justffoulkes@gmail.com>
Fix bug that causes the static-mac-move test to fail (#128) Problem: The [static-mac mac moves] test fails against a P4-enabled OVS build because the mac_learning_static_none_move counter is 2 instead of 1. Analysis: is_mac_learning_update_needed() increments the counter in addition to determining whether an update needs to be made. The P4 code adds a second call to this function, resulting in the counter being incremented twice for the same packet. Solution: - Removed the counter increment from is_mac_learning_update_needed() and modified the function to return a Boolean parameter indicating whether the event is a static mac move. - Modified mac_learning_update() to supply the new parameter and increment the counter if its returned value is True. - Modified xlate_normal() to supply the new parameter and ignore the returned value Outcome: With this change in place, the test no longer fails. Signed-off-by: Derek Foster <derek.foster@intel.com>
Fix bug that causes the static-mac-move test to fail (#128) Problem: The [static-mac mac moves] test fails against a P4-enabled OVS build because the mac_learning_static_none_move counter is 2 instead of 1. Analysis: is_mac_learning_update_needed() increments the counter in addition to determining whether an update needs to be made. The P4 code adds a second call to this function, resulting in the counter being incremented twice for the same packet. Solution: - Removed the counter increment from is_mac_learning_update_needed() and modified the function to return a Boolean parameter indicating whether the event is a static mac move. - Modified mac_learning_update() to supply the new parameter and increment the counter if its returned value is True. - Modified xlate_normal() to supply the new parameter and ignore the returned value Outcome: With this change in place, the test no longer fails. Signed-off-by: Derek Foster <derek.foster@intel.com>
PreviousNext