OSDN Git Service

net/mlx5: DR, Enable counter on non-fwd-dest objects
authorErez Shitrit <erezsh@mellanox.com>
Wed, 8 Jan 2020 12:17:32 +0000 (14:17 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 24 Jan 2020 20:04:25 +0000 (12:04 -0800)
commitb850a82114df9b0ec1d191dc64eed1f20a772e0f
tree7b7a880ec74fae0363dbb6cfafa2db8ace1889a8
parent505a7f5478062c6cd11e22022d9f1bf64cd8eab3
net/mlx5: DR, Enable counter on non-fwd-dest objects

The current code handles only counters that attached to dest, we still
have the cases where we have counter on non-dest, like over drop etc.

Fixes: 6a48faeeca10 ("net/mlx5: Add direct rule fs_cmd implementation")
Signed-off-by: Hamdan Igbaria <hamdani@mellanox.com>
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Reviewed-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c