uint64_t last_item = 0;
uint8_t next_protocol = 0xff;
uint16_t ether_type = 0;
+ char errstr[32];
if (items == NULL)
return -1;
last_item = MLX5_FLOW_LAYER_MPLS;
break;
default:
+ snprintf(errstr, sizeof(errstr), "item type %d not supported",
+ items->type);
return rte_flow_error_set(error, ENOTSUP,
RTE_FLOW_ERROR_TYPE_ITEM,
- NULL, "item not supported");
+ NULL, errstr);
}
item_flags |= last_item;
}
struct mlx5_flow_rss_desc *rss_desc = &((struct mlx5_flow_rss_desc *)
priv->rss_desc)
[!!priv->flow_nested_idx];
+ char errstr[32];
if (priority == MLX5_FLOW_PRIO_RSVD)
priority = priv->config.flow_prio - 1;
item_flags |= MLX5_FLOW_LAYER_MPLS;
break;
default:
+ snprintf(errstr, sizeof(errstr), "item type %d not supported",
+ items->type);
return rte_flow_error_set(error, ENOTSUP,
RTE_FLOW_ERROR_TYPE_ITEM,
- NULL,
- "item not supported");
+ NULL, errstr);
}
}
dev_flow->handle->layers = item_flags;