ethdev: add packet mode in meter profile structure
authorLi Zhang <lizh@nvidia.com>
Tue, 13 Apr 2021 15:59:54 +0000 (18:59 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Apr 2021 16:40:58 +0000 (18:40 +0200)
commit74c8ec894d5e7ebd3408c0e2d2955f0fa7c9f932
tree9178cc76169aedef45e6d3470b4042487c7b52e3
parent23ea199b732bf54861aaea49e52c1089334b29ae
ethdev: add packet mode in meter profile structure

Currently meter algorithms only supports rate is bytes per second (BPS).
Add packet_mode flag in meter profile parameters data structure.
So that it can meter traffic by packet per second.

When packet_mode is 0, the profile rates and bucket sizes are
specified in bytes per second and bytes
when packet_mode is not 0, the profile rates and bucket sizes are
specified in packets and packets per second.

The below structure will be extended:
rte_mtr_meter_profile
rte_mtr_capabilities

Signed-off-by: Li Zhang <lizh@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
doc/guides/rel_notes/release_21_05.rst
lib/librte_ethdev/rte_mtr.h