summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorEli Cohen <eli@mellanox.com>2020-03-04 11:32:56 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2020-03-26 09:19:11 +0300
commitdc638d1122d25d44e480070fc3497e80fda5aff0 (patch)
treed860c06b722b6881a5e1b42ba43f661f07cc723a /tools/perf/scripts/python/export-to-postgresql.py
parent0aad2a0b42596468ad199f4408deb1a167f3ac34 (diff)
downloadlinux-dc638d1122d25d44e480070fc3497e80fda5aff0.tar.xz
net/mlx5: Avoid group version scan when not necessary
Group version is used when modifying a rule is allowed (FLOW_ACT_NO_APPEND is clear) to detect a case where the rule was found but while the groups where unlocked a new FTE was added. In this case, the added FTE could be one with identical match value so we need to attempt again with group lock held. Change the code so version is retrieved only when FLOW_ACT_NO_APPEND is cleared. As result, later compare can also be avoided if FLOW_ACT_NO_APPEND is cleared. Also improve comments text. Signed-off-by: Eli Cohen <eli@mellanox.com> Reviewed-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions