Lines Matching refs:root
91 .name = "root",
154 struct mlx5_flow_root_namespace *root = find_root(node);
156 if (root)
157 return root->dev;
508 struct mlx5_flow_root_namespace *root = find_root(&prio->base);
514 mlx5_core_warn(root->dev, "failed to allocate inbox\n");
520 mlx5_core_warn(root->dev, "failed to allocate inbox\n");
546 mutex_lock(&root->fs_chain_lock);
548 err = fs_set_star_rule(root->dev, ft, next_ft);
550 mutex_unlock(&root->fs_chain_lock);
567 mutex_unlock(&root->fs_chain_lock);
572 mutex_unlock(&root->fs_chain_lock);
598 struct mlx5_flow_root_namespace *root;
605 root = find_root(&prio->base);
606 if (!root)
608 "flow steering failed to find root of priority %s",
614 mutex_lock(&root->fs_chain_lock);
622 mlx5_core_warn(root->dev,
627 err = fs_set_star_rule(root->dev, ft, NULL);
635 mutex_unlock(&root->fs_chain_lock);
734 static int update_root_ft_create(struct mlx5_flow_root_namespace *root,
740 if (root->root_ft)
741 min_level = root->root_ft->level;
744 err = mlx5_cmd_update_root_ft(root->dev, ft->type,
750 mlx5_core_warn(root->dev, "Update root flow table of id=%u failed\n",
753 root->root_ft = ft;
769 struct mlx5_flow_root_namespace *root = find_root(&ns->base);
772 if (!root) {
774 "flow steering failed to find root of namespace %s",
790 if (root->table_type == FS_FT_ESW_EGRESS_ACL ||
791 root->table_type == FS_FT_ESW_INGRESS_ACL)
798 ft->type = root->table_type;
804 err = mlx5_cmd_fs_create_ft(root->dev, ft->vport, ft->type,
813 if ((root->table_type == FS_FT_NIC_RX) && MLX5_CAP_FLOWTABLE(root->dev,
815 err = update_root_ft_create(root, ft);
834 mlx5_cmd_fs_destroy_ft(root->dev, ft->vport, ft->type, ft->id);
948 static int update_root_ft_destroy(struct mlx5_flow_root_namespace *root,
956 if (root->root_ft != ft)
971 err = mlx5_cmd_update_root_ft(root->dev, next_ft->type,
974 mlx5_core_warn(root->dev, "Update root flow table of id=%u failed\n",
978 root->root_ft = next_ft;
991 struct mlx5_flow_root_namespace *root;
996 root = find_root(&prio->base);
999 if (!root) {
1001 "flow steering failed to find root of priority %s",
1020 err = update_root_ft_destroy(root, ft);
1883 #define MLX5_CORE_FS_ROOT_NS_NAME "root"
2012 /* create the root namespace */