]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: implement shared buffer occupancy monitoring interface
authorJiri Pirko <jiri@mellanox.com>
Thu, 14 Apr 2016 16:19:14 +0000 (18:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 20:22:03 +0000 (16:22 -0400)
commita2dbb1e057e05096097981c4121e5f04825964a8
tree493e781aa7b44ba00a23ea6162b04c93918d0732
parent68ca0e49c348f32fe7e3aaf7f396612077402228
devlink: implement shared buffer occupancy monitoring interface

User needs to monitor shared buffer occupancy. For that, he issues a
snapshot command in order to instruct hardware to catch current and
maximal occupancy values, and clear command in order to clear the
historical maximal values.

Also port-pool and tc-pool-bind command response messages are extended to
carry occupancy values.

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