OSDN Git Service

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)
commit853b53520c9d11db7652e3603665b0ad475741a5
tree05af62390814db3c4e4db79651ca50acac380f85
parentd68316b5a1046b489097c5e5e24139548b79971f
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