]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6019746c7dc11191dc102d9e0a9aabe818335a94
tree559375d70ac79f744ad0b996dc68b4b82c4414f4
parent5c79ffc33c71637835ab849cb13689123b8667a6
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: 4874bb62d2fc ("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