diff options
author | Ingo Molnar <mingo@kernel.org> | 2019-11-25 09:08:29 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-11-25 09:08:29 +0100 |
commit | c494cd6469ab0f4bdd663d1a2d396b0ec2f42103 (patch) | |
tree | 5830ff0a0266c5500188d1ee9df8f2cbe0871b35 /include/net/devlink.h | |
parent | 8cacac6ecd6d289d4ab52590784636a5b1043c66 (diff) | |
parent | c4b75479741c9c3a4f0abff5baa5013d27640ac1 (diff) |
Merge branch 'perf/urgent' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/net/devlink.h')
-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 23e4b65ec9df..2116c88663a1 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -38,7 +38,8 @@ struct devlink { struct device *dev; possible_net_t _net; struct mutex lock; - bool reload_failed; + u8 reload_failed:1, + reload_enabled:1; char priv[0] __aligned(NETDEV_ALIGN); }; @@ -774,6 +775,8 @@ struct ib_device; struct devlink *devlink_alloc(const struct devlink_ops *ops, size_t priv_size); int devlink_register(struct devlink *devlink, struct device *dev); void devlink_unregister(struct devlink *devlink); +void devlink_reload_enable(struct devlink *devlink); +void devlink_reload_disable(struct devlink *devlink); void devlink_free(struct devlink *devlink); int devlink_port_register(struct devlink *devlink, struct devlink_port *devlink_port, |