numam-dpdk/drivers
Bing Zhao 4d648fad90 net/mlx5: check consistency of meter policy and profile
In the previous implementation, only green color policy was
supported in mlx5 PMD. Since yellow color policy is supported now,
the consistency of meter policy and profile should be checked.
  1. If the profile supports yellow but the policy doesn't, an error
     should be returned when creating the meter. Or else, there is
     no explicit steering action for the packets marked with yellow.
  2. If the policy supports yellow but the profile doesn't, it will
     be considered as a valid case. Even if no packet will be
     handled with the yellow steering action, it is just like that
     only the green policy presents.

Usually the green color is supported by default, but when it is
disabled intentionally with setting the CBS to a small value like
zero in the profile, the similar checking on green policy and
profile should also be done.

Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2021-07-22 13:28:57 +02:00
..
baseband log: register with standardized names 2021-05-11 15:17:55 +02:00
bus bus/pci: fix leak for unbound devices 2021-07-06 11:27:55 +02:00
common common/mlx5: remove legacy PCI driver 2021-07-22 00:16:47 +02:00
compress compress/mlx5: migrate to bus-agnostic common interface 2021-07-22 00:11:14 +02:00
crypto crypto/mlx5: migrate to bus-agnostic common interface 2021-07-22 00:11:14 +02:00
event event/cnxk: support vectorized Tx event fast path 2021-07-16 14:16:50 +02:00
mempool mempool/octeontx2: fix shift calculation 2021-06-30 18:42:54 +02:00
net net/mlx5: check consistency of meter policy and profile 2021-07-22 13:28:57 +02:00
raw raw/ioat: fix termination descriptor for batch 2021-07-20 15:28:43 +02:00
regex regex/mlx5: migrate to bus-agnostic common interface 2021-07-22 00:11:14 +02:00
vdpa vdpa/mlx5: support Sub-Function 2021-07-22 00:11:14 +02:00
meson.build log: register with standardized names 2021-05-11 15:17:55 +02:00