[dpdk-dev] [PATCH] net/mlx5: fix counter offset support discover

Thomas Monjalon thomas at monjalon.net
Fri Nov 13 20:13:31 CET 2020


12/11/2020 09:51, Suanming Mou:
> Currently, the counter offset support is discovered by creating the
> rule with invalid offset counter and jump action in root table. If
> the rule creation fails with EINVAL errno, that mean counter offset
> is not supported in root table.
> 
> However, jump action may not be supported in some rdma-core version.
> In this case, the discover code will not work properly.
> 
> This commits changes the jump action to generic drop action. That
> makes the discover code to be more compatible.
> 
> Fixes: 994829e695c0 ("net/mlx5: remove single counter container")
> 
> Signed-off-by: Suanming Mou <suanmingm at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>

Applied as "net/mlx5: fix detection of counter offset support"
in next-net-mlx, thanks.





More information about the dev mailing list