mlxsw: reg: Introduce per priority counters
authorIdo Schimmel <idosch@mellanox.com>
Wed, 6 Apr 2016 15:10:15 +0000 (17:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2016 21:24:20 +0000 (17:24 -0400)
commit34dba0a59d072201171be1aeb9e52d1148d7c365
tree15b976b83f16db20addd7d434a5443b24770bd75
parent9f7ec052b75e1fd8a4cc876349a665f5b76669d5
mlxsw: reg: Introduce per priority counters

We are going to add support for PFC as part of DCB ops, which requires us
to report the number of PFC frames sent and received per priority.

Add per priority counters in order to report number of PFC frames sent
and received per priority.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/switchx2.c