common/cnxk: adjust shaper rates to lower boundaries
authorSatha Rao <skoteshwar@marvell.com>
Tue, 22 Feb 2022 19:34:54 +0000 (01:04 +0530)
committerJerin Jacob <jerinj@marvell.com>
Wed, 23 Feb 2022 16:34:34 +0000 (17:34 +0100)
commit02bf1662efe129c064727f81c9dccc50cb88583e
tree37073b1e27735c835e791e8ef2fef4071ffa8af9
parent7e9a94909eea3008f4e8aca414c0b03ef8ea401c
common/cnxk: adjust shaper rates to lower boundaries

Provide a method to get floor values for a requested shaper rate,
which can assure packets should never be transmitted at a rate higher
than configured.

Keep the old API to get HW suggested values.
And introduce new parameter to select appropriate API.

Signed-off-by: Satha Rao <skoteshwar@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_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