]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Fix drop counters use before creation
authorEugenia Emantayev <eugenia@mellanox.com>
Wed, 31 Jan 2018 07:36:29 +0000 (09:36 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 20 Feb 2018 20:53:00 +0000 (12:53 -0800)
commita8c5b6094107a3e2219f620fbc7aef145d87263a
tree1c279efdea268759dc4d4bd40dea678c9ed12829
parent1fc3afae27a03786f056d56c768387cdee11a8ec
net/mlx5: E-Switch, Fix drop counters use before creation

First use of drop counters happens in esw_apply_vport_conf function,
while they are allocated later in the flow. Fix that by moving
esw_vport_create_drop_counters function to be called before the first use.

Fixes: 3647de45baa1 ("net/mlx5e: E-switch, Add steering drop counters")
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c