commit | 1a1d74d378b13ad3f93e8975a0ade0980a49d28b | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Mon Oct 31 20:43:17 2016 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Nov 01 11:05:00 2016 -0400 |
tree | 2c4eb8ba6ab039cba1dd408bb6b1ea4970273d56 | |
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>