]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix meter creation default state
authorRongwei Liu <rongweil@nvidia.com>
Mon, 7 Mar 2022 08:00:35 +0000 (10:00 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Mon, 7 Mar 2022 10:49:51 +0000 (11:49 +0100)
commitc3130c78e87864d5139d6672e48df807b1c0e2db
tree47d4aa2d50cc80b296fd760d602613cf017b5bca
parent3ef18940ef13fe8cb307aba0dba2bc316fb873a2
net/mlx5: fix meter creation default state

Disable means there is no packet drop in the meter. Meter is
active always but programmed with another CIR/CBS value.

If the user wants to disable the meter in creation, PMD calls
the disable() API manually after meter initialized.

Fixes: 444320186393 ("net/mlx5: support meter creation with policy")
Cc: stable@dpdk.org
Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow_meter.c