aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2022-03-21 11:42:00 +0100
committerDavid S. Miller <davem@davemloft.net>2022-03-21 13:21:16 +0000
commitfc9769f62e5937b496139b07e9e9656896479018 (patch)
treea17f96acf1874e6922eb4df161d5add169fb2de8 /tools/perf/scripts/python/export-to-postgresql.py
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next (diff)
downloadlinux-dev-fc9769f62e5937b496139b07e9e9656896479018.tar.xz
linux-dev-fc9769f62e5937b496139b07e9e9656896479018.zip
nfp: calculate ring masks without conditionals
Ring enable masks are 64bit long. Replace mask calculation from: block_cnt == 64 ? 0xffffffffffffffffULL : (1 << block_cnt) - 1 with: (U64_MAX >> (64 - block_cnt)) to simplify the code. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Fei Qin <fei.qin@corigine.com> Signed-off-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions