get_flow_counter_dev
err = alloc_flow_attr_counter(get_flow_counter_dev(flow), attr);
struct mlx5_core_dev *counter_dev = get_flow_counter_dev(flow);