net/mlx5: Refactor mlx5_add_flow_rule