summaryrefslogtreecommitdiffstats
path: root/include/net/devlink.h
diff options
context:
space:
mode:
authorArkadi Sharshevsky <arkadis@mellanox.com>2018-01-15 08:59:04 +0100
committerDavid S. Miller <davem@davemloft.net>2018-01-16 20:15:34 +0100
commit2d8dc5bbf4e7603747875eb5cadcd67c1fa8b1bb (patch)
treef47537503b83bd112c2530176ca7321ffe0f81d9 /include/net/devlink.h
parentdevlink: Add support for resource abstraction (diff)
downloadlinux-2d8dc5bbf4e7603747875eb5cadcd67c1fa8b1bb.tar.xz
linux-2d8dc5bbf4e7603747875eb5cadcd67c1fa8b1bb.zip
devlink: Add support for reload
Add support for performing driver hot reload. Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/devlink.h')
-rw-r--r--include/net/devlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h
index ceb1895d119b..c698883fb0bb 100644
--- a/include/net/devlink.h
+++ b/include/net/devlink.h
@@ -281,6 +281,7 @@ struct devlink_resource {
#define DEVLINK_RESOURCE_ID_PARENT_TOP 0
struct devlink_ops {
+ int (*reload)(struct devlink *devlink);
int (*port_type_set)(struct devlink_port *devlink_port,
enum devlink_port_type port_type);
int (*port_split)(struct devlink *devlink, unsigned int port_index,