uint64_t last_item = 0;
uint8_t next_protocol = 0xff;
uint16_t ether_type = 0;
- char errstr[32];
if (items == NULL)
return -1;
return ret;
last_item = MLX5_FLOW_LAYER_MPLS;
break;
+ case RTE_FLOW_ITEM_TYPE_ICMP:
+ case RTE_FLOW_ITEM_TYPE_ICMP6:
+ return rte_flow_error_set(error, ENOTSUP,
+ RTE_FLOW_ERROR_TYPE_ITEM,
+ NULL, "ICMP/ICMP6 "
+ "item not supported");
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, errstr);
+ NULL, "item not supported");
}
item_flags |= last_item;
}
struct mlx5_priv *priv = dev->data->dev_private;
struct mlx5_flow_workspace *wks = mlx5_flow_get_thread_workspace();
struct mlx5_flow_rss_desc *rss_desc;
- char errstr[32];
MLX5_ASSERT(wks);
rss_desc = &wks->rss_desc[!!wks->flow_nested_idx];
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, errstr);
+ NULL, "item not supported");
}
}
dev_flow->handle->layers = item_flags;