]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: Implement devlink rate leafs tx rate support
authorDmytro Linkin <dlinkin@nvidia.com>
Wed, 2 Jun 2021 12:17:23 +0000 (15:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2021 21:08:37 +0000 (14:08 -0700)
commitb1ac5d7c77ef7e37c036fe510837576b6439e4d5
tree0d1ab2d8afacca2ad6a37f9045e9e731f5a3b883
parentff4cb97ec6754afc63da5cdc206d530999491650
netdevsim: Implement devlink rate leafs tx rate support

Implement new devlink ops that allow shared and max tx rate control for
devlink port rate objects (leafs) through devlink API.

Expose rate values of VF ports to netdevsim debugfs.

Co-developed-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Dmytro Linkin <dlinkin@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/dev.c