]> 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)
commit4117a57bc99e602f075ba48373ab396c2d31515c
treeda05f1832d8f526e935614e098cb38930b82fc83
parentacc05db313e8cf0c3ff2fbe65f04627d3678af8e
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