summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2016-10-31 23:43:17 +0300
committerDavid S. Miller <davem@davemloft.net>2016-11-01 18:05:00 +0300
commit1a1d74d378b13ad3f93e8975a0ade0980a49d28b (patch)
tree2c4eb8ba6ab039cba1dd408bb6b1ea4970273d56 /tools/perf/scripts/python/bin
parentb64b7bb6d492ef1bbe9aa9ed7eeb18f7148ece3d (diff)
downloadlinux-1a1d74d378b13ad3f93e8975a0ade0980a49d28b.tar.xz
nfp: use AND instead of modulo to get ring indexes
We already force ring sizes to be power of 2 so replace modulo operations with AND (size - 1) in index calculations. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions