diff options
author | Arkadi Sharshevsky | 2018-01-15 08:59:06 +0100 |
---|---|---|
committer | David S. Miller | 2018-01-16 20:15:35 +0100 |
commit | 54a2e8d456c7404331c1e76bb037a3c07f9b36a2 (patch) | |
tree | 5ca472f04cb2e16ff04bb2d66cce82ef4721c856 /drivers/net/ethernet/mellanox/mlxsw/core.h | |
parent | devlink: Add relation between dpipe and resource (diff) | |
download | kernel-qcow2-linux-54a2e8d456c7404331c1e76bb037a3c07f9b36a2.tar.gz kernel-qcow2-linux-54a2e8d456c7404331c1e76bb037a3c07f9b36a2.tar.xz kernel-qcow2-linux-54a2e8d456c7404331c1e76bb037a3c07f9b36a2.zip |
mlxsw: pci: Add support for performing bus reset
This is a preparation stage before introducing hot reload. During the
reload process the ASIC should be resetted by accessing the PCI BAR due
to unavailability of the mailbox/emad interfaces.
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 'drivers/net/ethernet/mellanox/mlxsw/core.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.h b/drivers/net/ethernet/mellanox/mlxsw/core.h index 6e966af72fc4..34dda964dcbd 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core.h +++ b/drivers/net/ethernet/mellanox/mlxsw/core.h @@ -332,6 +332,7 @@ struct mlxsw_bus { const struct mlxsw_config_profile *profile, struct mlxsw_res *res); void (*fini)(void *bus_priv); + void (*reset)(void *bus_priv); bool (*skb_transmit_busy)(void *bus_priv, const struct mlxsw_tx_info *tx_info); int (*skb_transmit)(void *bus_priv, struct sk_buff *skb, |