diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-09-12 11:49:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-13 23:11:14 +0300 |
commit | 97691069dc5a4135e413d3d92200d70b46df9fe5 (patch) | |
tree | 2f4e2610bb8dc72be3affba651b57d10b73f9a6e /include/net | |
parent | 35c7ff349a2d1df1b59909f67ba4ddcd84ad934e (diff) | |
download | linux-97691069dc5a4135e413d3d92200d70b46df9fe5.tar.xz |
net: devlink: split reload op into two
In order to properly implement failure indication during reload,
split the reload op into two ops, one for down phase and one for
up phase.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/devlink.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index 03e4d9244ff3..ab8d56d12ffd 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -642,7 +642,10 @@ enum devlink_trap_group_generic_id { } struct devlink_ops { - int (*reload)(struct devlink *devlink, struct netlink_ext_ack *extack); + int (*reload_down)(struct devlink *devlink, + struct netlink_ext_ack *extack); + int (*reload_up)(struct devlink *devlink, + struct netlink_ext_ack *extack); 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, |