netdevsim: implement support for devlink region and snapshots
authorJiri Pirko <jiri@mellanox.com>
Thu, 15 Aug 2019 13:46:33 +0000 (15:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2019 19:02:44 +0000 (12:02 -0700)
commit4418f862d675011a242a4e687d74ea107e6a40ed
treedf0120c1c61f255701730ac0f2ed1658dc169671
parentbd00cc363e11df06f3a8616ee021df743d3edf15
netdevsim: implement support for devlink region and snapshots

Implement dummy region of size 32K and allow user to create snapshots
or random data using debugfs file trigger.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdevsim.h