OpenCloudOS-Kernel/drivers/net/ethernet/mellanox
Arkadi Sharshevsky 6dd4aba36f mlxsw: spectrum_dpipe: Fix incorrect entry index
In case of disabled counters the entry index will be incorrect. Fix this
by moving the entry index set before the counter status check.

Fixes: 2ba5999f00 ("mlxsw: spectrum: Add Support for erif table entries access")
Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-18 11:03:59 -04:00
..
mlx4 net/mlx4_core: Use min3 to select number of MSI-X vectors 2017-05-15 14:20:26 -04:00
mlx5/core mlx5e: add CONFIG_INET dependency 2017-05-16 15:48:01 -04:00
mlxsw mlxsw: spectrum_dpipe: Fix incorrect entry index 2017-05-18 11:03:59 -04:00
Kconfig mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00
Makefile mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00