]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc2a2de75cfa12d5a265a7dc9ad77395c0396369
treeda05f1832d8f526e935614e098cb38930b82fc83
parentcedb8fcb9d5b7b00da0026b171341121e16b06cc
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