diff options
author | Arkadi Sharshevsky <arkadis@mellanox.com> | 2017-05-18 10:18:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-18 18:03:59 +0300 |
commit | 6dd4aba36f2dca00c3b6976a0d59c5cee16ad545 (patch) | |
tree | a770e80dddf42bad8858d6efd5288833d9552332 /firmware/cpia2 | |
parent | 1ac91bff9c65d4a5e0da244495ea6275fd514c5a (diff) | |
download | linux-6dd4aba36f2dca00c3b6976a0d59c5cee16ad545.tar.xz |
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: 2ba5999f009d ("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>
Diffstat (limited to 'firmware/cpia2')
0 files changed, 0 insertions, 0 deletions