commit | 4aa3b7660aa79bb030aaa887dc16a60e02fa4348 | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Mon May 15 17:55:22 2017 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue May 16 12:59:04 2017 -0400 |
tree | 1a96f186c151530f5c6b24bdb071934b34566418 | |
parent | abeeec4adf6a6fe71a6a4d8199ff0a533d73a57f [diff] |
nfp: add a helper for wrapping descriptor index We have a number of places where we calculate the descriptor index based on a value which may have overflown. Create a macro for masking with the ring size. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>