diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2016-10-31 20:43:17 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-01 11:05:00 -0400 |
commit | 1a1d74d378b13ad3f93e8975a0ade0980a49d28b (patch) | |
tree | 2c4eb8ba6ab039cba1dd408bb6b1ea4970273d56 /fs/exofs | |
parent | b64b7bb6d492ef1bbe9aa9ed7eeb18f7148ece3d (diff) |
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 'fs/exofs')
0 files changed, 0 insertions, 0 deletions