common/cnxk: handle packet mode shaper limits
authorSatha Rao <skoteshwar@marvell.com>
Wed, 22 Sep 2021 06:11:44 +0000 (02:11 -0400)
committerJerin Jacob <jerinj@marvell.com>
Tue, 28 Sep 2021 10:06:39 +0000 (12:06 +0200)
commit680078faf32095b845f59b4e19461d28d2165059
tree81fe8776d3a27722e341d4c935187769d2d538d5
parent6fe49f1097445f60c01f5675760105cda6fbd1bd
common/cnxk: handle packet mode shaper limits

Add new macros to reflect HW shaper PPS limits. New API to validate
input rates for packet mode. Increase adjust value to support lesser
PPS (<61).

Signed-off-by: Satha Rao <skoteshwar@marvell.com>
Acked-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
drivers/common/cnxk/hw/nix.h
drivers/common/cnxk/roc_nix_priv.h
drivers/common/cnxk/roc_nix_tm_ops.c
drivers/common/cnxk/roc_nix_tm_utils.c