net/mlx5: add framework for switch flow rules