This patch fixes the incorrect checking for the return value
of default miss action creation.
Fixes:
14020ad53d4e ("net/mlx5: wrap default miss flow action per OS")
Cc: stable@dpdk.org
Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
if (resource->ft_type == MLX5DV_FLOW_TABLE_TYPE_FDB) {
ret = mlx5_flow_os_create_flow_action_default_miss
(&cache_resource->default_miss);
- if (!ret) {
+ if (ret) {
rte_flow_error_set(error, ENOMEM,
RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
NULL,