aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2017-05-15 17:55:22 -0700
committerDavid S. Miller <[email protected]>2017-05-16 12:59:04 -0400
commit4aa3b7660aa79bb030aaa887dc16a60e02fa4348 (patch)
tree1a96f186c151530f5c6b24bdb071934b34566418 /tools/perf/scripts/python
parentabeeec4adf6a6fe71a6a4d8199ff0a533d73a57f (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 <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions