summaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-bridge.h
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-05-16 03:55:22 +0300
committerDavid S. Miller <davem@davemloft.net>2017-05-16 19:59:04 +0300
commit4aa3b7660aa79bb030aaa887dc16a60e02fa4348 (patch)
tree1a96f186c151530f5c6b24bdb071934b34566418 /include/linux/fpga/fpga-bridge.h
parentabeeec4adf6a6fe71a6a4d8199ff0a533d73a57f (diff)
downloadlinux-4aa3b7660aa79bb030aaa887dc16a60e02fa4348.tar.xz
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>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions