octeontx2-pf: cn10k: Fix egress ratelimit configuration
authorSunil Goutham <sgoutham@marvell.com>
Sun, 24 Jul 2022 08:21:13 +0000 (13:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Aug 2022 10:03:53 +0000 (12:03 +0200)
commitbe5cd347ba22fbeacd26e35d8d8386b8e95bfe0f
treea822b0ed8208a3f2b27d0ba0e0da3e104ea7582b
parent3688939cd3e84b70875fae350400cbc52024567d
octeontx2-pf: cn10k: Fix egress ratelimit configuration

[ Upstream commit b354eaeec8637d87003945439209251d76a2bb95 ]

NIX_AF_TLXX_PIR/CIR register format has changed from OcteonTx2
to CN10K. CN10K supports larger burst size. Fix burst exponent
and burst mantissa configuration for CN10K.

Also fixed 'maxrate' from u32 to u64 since 'police.rate_bytes_ps'
passed by stack is also u64.

Fixes: e638a83f167e ("octeontx2-pf: TC_MATCHALL egress ratelimiting offload")
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c