ethdev: support TM for shaper config in packet mode
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Wed, 22 Apr 2020 17:21:01 +0000 (22:51 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:10 +0000 (18:55 +0200)
commitbf4e0faae97c89d9f704dc3c71b54248524ea71b
tree64430d637776a7e583637d6a553014c4c0ee6368
parent6cd2d6adc783dc63d5e4a1b76817e1feff7713e1
ethdev: support TM for shaper config in packet mode

Some NIC hardware support shaper to work in packet mode i.e
shaping or ratelimiting traffic is in packets per second (PPS) as
opposed to default bytes per second (BPS). Hence this patch
adds support to configure shared or private shaper in packet mode,
provide rate in PPS and add related tm capabilities in port/level/node
capability structures.

This patch also updates tm port/level/node capability structures with
exiting features of scheduler wfq packet mode, scheduler wfq byte mode
and private/shared shaper byte mode.

SoftNIC PMD is also updated with new capabilities.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
drivers/net/softnic/rte_eth_softnic_tm.c
lib/librte_ethdev/rte_tm.h