summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-08-09 13:05:12 +0200
committerDavid S. Miller <davem@davemloft.net>2019-08-11 21:20:25 -0700
commit150e8f8a1bae1dea75f4217f483ac95ca48c979a (patch)
tree526459c795edfd45616adab5d2408017e0309bbb /usr
parent6e5ee483397aa02e5656191cb9f59e4095b4d249 (diff)
netdevsim: register couple of devlink params
Register couple of devlink params, one generic, one driver-specific. Make the values available over debugfs. Example: $ echo "111" > /sys/bus/netdevsim/new_device $ devlink dev param netdevsim/netdevsim111: name max_macs type generic values: cmode driverinit value 32 name test1 type driver-specific values: cmode driverinit value true $ cat /sys/kernel/debug/netdevsim/netdevsim111/max_macs 32 $ cat /sys/kernel/debug/netdevsim/netdevsim111/test1 Y $ devlink dev param set netdevsim/netdevsim111 name max_macs cmode driverinit value 16 $ devlink dev param set netdevsim/netdevsim111 name test1 cmode driverinit value false $ devlink dev reload netdevsim/netdevsim111 $ cat /sys/kernel/debug/netdevsim/netdevsim111/max_macs 16 $ cat /sys/kernel/debug/netdevsim/netdevsim111/test1 Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions