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: Roi Dayan <roid@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
Родитель
58a518948f
Коммит
22df2e9362
|
@ -36,7 +36,7 @@ mlx5e_tc_post_act_init(struct mlx5e_priv *priv, struct mlx5_fs_chains *chains,
|
|||
int err;
|
||||
|
||||
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");
|
||||
err = -EOPNOTSUPP;
|
||||
goto err_check;
|
||||
|
|
|
@ -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
|
||||
* 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 = -EOPNOTSUPP;
|
||||
goto out_err;
|
||||
|
|
Загрузка…
Ссылка в новой задаче