On 5/14/24 15:15, Eelco Chaudron wrote: > The flow_reval_monitor.py script incorrectly reported the reasons for > FDR_PURGE and FDR_TOO_EXPENSIVE, as their descriptions were swapped. > This patch rectifies the order using a dictionary to avoid similar > problems in the future. > > In addition this patch also syncs the delete reason output of the > script, with the comments in the code. > > Fixes: 86b9e653ef22 ("revalidator: Add a USDT probe during flow deletion with > purge reason.") > Signed-off-by: Eelco Chaudron <echau...@redhat.com> > > --- > v3: - Renamed ofproto dpif to bridge in delete reasons. > - Added comment pointing back to delete reasons in .c. > v2: - Converted the list of strings to dictionary. > - Added comment to code to keep code and script in sync. > - Unified flow_delete reason comments and script output. > ---
I didn't test, but the code looks fine to me. Thanks! Acked-by: Ilya Maximets <i.maxim...@ovn.org> BTW, is there a reason why we can't just report a static string from the USDT probe instead of an integer? If we did that we would not need to have this mapping in the script at all. Best regards, Ilya Maximets. _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev