octeontx2-af: Fix LBK backpressure id count
authorSunil Goutham <sgoutham@marvell.com>
Fri, 21 Jan 2022 06:34:40 +0000 (12:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Feb 2022 16:27:10 +0000 (17:27 +0100)
commitb578044bf4dee7e62e2f6ce1a2415831b1c1f76e
treed96aa5313b3e7fc243f13eb290870b1e1b693dcd
parent77c5abff9330dc4acac2758b0134110e894c25a3
octeontx2-af: Fix LBK backpressure id count

[ Upstream commit 00bfe94e388fe12bfd0d4f6361b1b1343374ff5b ]

In rvu_nix_get_bpid() lbk_bpid_cnt is being read from
wrong register. Due to this backpressure enable is failing
for LBK VF32 onwards. This patch fixes that.

Fixes: fe1939bb2340 ("octeontx2-af: Add SDP interface support")
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Subbaraya Sundeep <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c