]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9eef55f0a3c9e49ed78c57f15f87e9234a96309
treeb2aa23abefb21491fcf779fe942ce0abc7b86bd2
parentb2cbfbfe8f19d490d0ffa1e0663de3ad0476cc78
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