net/qede/base: fix page index for PBL chains
authorRasesh Mody <rmody@marvell.com>
Sun, 6 Oct 2019 20:14:01 +0000 (13:14 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:08 +0000 (16:43 +0200)
commit766d68ac2d116f5a08de0b8667939408ce362c44
tree889eeb69275cc57cf3cac6424401ed3c70b0d7f8
parent483b4817ff84362574575cdb27f534ea1ea34ce3
net/qede/base: fix page index for PBL chains

ecore_chain_set_prod/cons() sets the wrong page index in chains with
non-power of 2 page count. Fix ecore_chain_set_prod/cons() for PBL
chains with non power of 2 page count.
Calculate the right page index according to current indexes.

Fixes: ec94dbc57362 ("qede: add base driver")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rmody@marvell.com>
drivers/net/qede/base/ecore_chain.h