nfp: don't add ring size to index calculations
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 29 May 2017 00:53:03 +0000 (17:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 15:27:07 +0000 (11:27 -0400)
commit770f0cea19510098cb01ac87370e800b53a6bf5d
treeb2aa23abefb21491fcf779fe942ce0abc7b86bd2
parent193d6218ba801c88a5f3ef1bb2357e39074b3cdc
nfp: don't add ring size to index calculations

Adding ring size to index calculation is pointless, since index
will be masked with ring size - 1.

Suggested-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c