]> 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 10:51:52 +0000 (12:51 +0200)
commit080c8550b9b87bddd84d195437eb1c0222b70547
tree6820f470560ca69e2fac09cbe30f3650f3c87217
parentdfa96e42fbeb49aeffec6cd5faa61f5f8c244c5d
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