[PATCH 1/7] net/mlx5: fix the modify field check of tag
Stephen Hemminger
stephen at networkplumber.org
Fri Jun 30 08:08:31 CEST 2023
On Fri, 30 Jun 2023 08:43:03 +0300
Bing Zhao <bingz at nvidia.com> wrote:
> @@ -1117,9 +1117,10 @@ flow_dv_fetch_field(const uint8_t *data, uint32_t size)
> static inline bool
> flow_modify_field_support_tag_array(enum rte_flow_field_id field)
> {
> - switch (field) {
> + switch ((int)field) {
> case RTE_FLOW_FIELD_TAG:
> case RTE_FLOW_FIELD_MPLS:
> + case MLX5_RTE_FLOW_FIELD_META_REG:
Mixing internal and API fields seems like something that could get
easily broken by changes to rte_flow.
More information about the dev
mailing list