aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2024-10-23 16:52:47 +0300
committerJakub Kicinski <kuba@kernel.org>2024-10-30 17:33:53 -0700
commita0af7162ccb501a22ac448ad94dad81757743725 (patch)
tree7373b5db23d6492eb61d772c8ee92c1f4ecda21e /tools/perf/scripts/python/call-graph-from-postgresql.py
parentnet: sched: propagate "skip_sw" flag to struct flow_cls_common_offload (diff)
downloadwireguard-linux-a0af7162ccb501a22ac448ad94dad81757743725.tar.xz
wireguard-linux-a0af7162ccb501a22ac448ad94dad81757743725.zip
net: dsa: clean up dsa_user_add_cls_matchall()
The body is a bit hard to read, hard to extend, and has duplicated conditions. Clean up the "if (many conditions) else if (many conditions, some of them repeated)" pattern by: - Moving the repeated conditions out - Replacing the repeated tests for the same variable with a switch/case - Moving the protocol check inside the dsa_user_add_cls_matchall_mirred() function call. This is pure refactoring, no logic has been changed, though some tests were reordered. The order does not matter - they are independent things to be tested for. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://patch.msgid.link/20241023135251.1752488-3-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions