Commit 22df2e93 authored by Roi Dayan's avatar Roi Dayan Committed by Saeed Mahameed

net/mlx5: CT: Remove warning of ignore_flow_level support for non PF

ignore_flow_level isn't supported for SFs, and so it causes
post_act and ct to warn about it per SF.
Apply the warning only for PF.
Signed-off-by: default avatarRoi Dayan <roid@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 58a51894
...@@ -36,7 +36,7 @@ mlx5e_tc_post_act_init(struct mlx5e_priv *priv, struct mlx5_fs_chains *chains, ...@@ -36,7 +36,7 @@ mlx5e_tc_post_act_init(struct mlx5e_priv *priv, struct mlx5_fs_chains *chains,
int err; int err;
if (!MLX5_CAP_FLOWTABLE_TYPE(priv->mdev, ignore_flow_level, table_type)) { if (!MLX5_CAP_FLOWTABLE_TYPE(priv->mdev, ignore_flow_level, table_type)) {
if (priv->mdev->coredev_type != MLX5_COREDEV_VF) if (priv->mdev->coredev_type == MLX5_COREDEV_PF)
mlx5_core_warn(priv->mdev, "firmware level support is missing\n"); mlx5_core_warn(priv->mdev, "firmware level support is missing\n");
err = -EOPNOTSUPP; err = -EOPNOTSUPP;
goto err_check; goto err_check;
......
...@@ -2062,7 +2062,7 @@ mlx5_tc_ct_init_check_support(struct mlx5e_priv *priv, ...@@ -2062,7 +2062,7 @@ mlx5_tc_ct_init_check_support(struct mlx5e_priv *priv,
/* Ignore_flow_level support isn't supported by default for VFs and so post_act /* Ignore_flow_level support isn't supported by default for VFs and so post_act
* won't be supported. Skip showing error msg. * won't be supported. Skip showing error msg.
*/ */
if (priv->mdev->coredev_type != MLX5_COREDEV_VF) if (priv->mdev->coredev_type == MLX5_COREDEV_PF)
err_msg = "post action is missing"; err_msg = "post action is missing";
err = -EOPNOTSUPP; err = -EOPNOTSUPP;
goto out_err; goto out_err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment