mlxsw: core: Add devlink shared buffer occupancy callbacks
authorJiri Pirko <jiri@mellanox.com>
Thu, 14 Apr 2016 16:19:25 +0000 (18:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 20:22:05 +0000 (16:22 -0400)
commit1ceecc88d29bbbb0f8d0e49e3bf6d020dc582934
treed78c795d69dccc45cfd4957798400910800ee587
parent0f433fa0ecc59c1d0792937a26436bec8dd42b6d
mlxsw: core: Add devlink shared buffer occupancy callbacks

Add middle layer in mlxsw core code to forward shared buffer occupancy
calls into specific ASIC drivers.

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