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 11:05:44 +0000 (13:05 +0200)
commitb354eaeec8637d87003945439209251d76a2bb95
tree559375d70ac79f744ad0b996dc68b4b82c4414f4
parentb89fc26f741d9f9efb51cba3e9b241cf1380ec5a
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