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.
Depends-on: series=16256 ("Support PPS(packet per second) on meter") https://patchwork.dpdk.org/project/dpdk/list/?series=16256 V2: Fix comments from Matan. Li Zhang (2): common/mlx5: add meter mode definition in PRM file net/mlx5: support meter PPS profile doc/guides/nics/mlx5.rst | 1 + drivers/common/mlx5/mlx5_prm.h | 8 ++++ drivers/net/mlx5/mlx5_flow_aso.c | 17 ++++--- drivers/net/mlx5/mlx5_flow_meter.c | 74 +++++++++++++++++++++++------- 4 files changed, 77 insertions(+), 23 deletions(-) -- 2.21.0