]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: convert snapshot destructor callback to region op
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 26 Mar 2020 18:37:09 +0000 (11:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2020 02:39:26 +0000 (19:39 -0700)
commitea984a913399b21e9af864d97f1fba3ee77e1541
tree103b9278bb7f89a40aa2ecde3251eb7b1c0eb77b
parentac0aa961c4816fa54eed3b4588a981ea055cdbfe
devlink: convert snapshot destructor callback to region op

It does not makes sense that two snapshots for a given region would use
different destructors. Simplify snapshot creation by adding
a .destructor op for regions.

This operation will replace the data_destructor for the snapshot
creation, and makes snapshot creation easier.

Noticed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/crdump.c
drivers/net/netdevsim/dev.c
include/net/devlink.h
net/core/devlink.c