octeontx2-pf: cn10k: Fix egress ratelimit configuration
authorSunil Goutham <sgoutham@marvell.com>
Sun, 24 Jul 2022 08:21:13 +0000 (13:51 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 Jul 2022 10:51:52 +0000 (12:51 +0200)
commit5ec9c514d4a0e1749781c4c61485f9a69c212716
tree6820f470560ca69e2fac09cbe30f3650f3c87217
parent58d8bcd47ecc55f1ab92320fe36c31ff4d83cc0c
octeontx2-pf: cn10k: Fix egress ratelimit configuration

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>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c