]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Move legacy drop counter and rule under legacy structure
authorParav Pandit <parav@mellanox.com>
Mon, 28 Oct 2019 23:35:11 +0000 (23:35 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Nov 2019 21:40:26 +0000 (14:40 -0700)
commit0ed22450ef12e462dbc5c7ea1c16b4a3e0c9133f
tree05af62390814db3c4e4db79651ca50acac380f85
parentc25932c9a7d2a6750994190aa2d966edddb3d330
net/mlx5: Move legacy drop counter and rule under legacy structure

To improve code readability, move legacy drop counters and droup rule
under legacy structure.

While at it,
(a) prefix drop flow counters helper with legacy_.
(b) nullify the rule pointers only if they were valid.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h