mlxsw: core: Introduce support for asynchronous EMAD register access
authorJiri Pirko <jiri@mellanox.com>
Thu, 14 Apr 2016 16:19:29 +0000 (18:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 20:22:06 +0000 (16:22 -0400)
commitcaf7297e7ab5f8aa9d482200748a066adbfa5775
treeda05f1832d8f526e935614e098cb38930b82fc83
parentdd9bdb04d2d7c428b0203b5e4e435abc229fa656
mlxsw: core: Introduce support for asynchronous EMAD register access

So far it was possible to have one EMAD register access at a time,
locked by mutex. This patch extends this interface to allow multiple
EMAD register accesses to be in fly at once. That allows faster
processing on firmware side avoiding unused time in between EMADs.
Measured speedup is ~30% for shared occupancy snapshot operation.

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