net/mlx5: add flow translate function