diff options
author | Igor Russkikh <igor.russkikh@aquantia.com> | 2018-03-20 14:40:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-22 12:02:49 -0400 |
commit | 90869ddfefebb1a79bd7bebfa4f28baa9f8c82cd (patch) | |
tree | 7b864135af0c715e44c3eccbe269e8b001755a92 /drivers/net/ethernet/aquantia/atlantic/aq_nic.h | |
parent | 3e9a545131723ff12fe4304245c222157f0e4622 (diff) | |
download | linux-90869ddfefebb1a79bd7bebfa4f28baa9f8c82cd.tar.bz2 |
net: aquantia: Implement pci shutdown callback
We should close link and all NIC operations during shutdown.
On some systems graceful reboot never closes NIC interface on its own,
but only indicates pci device shutdown. Without explicit handler, NIC
rx rings continued to transfer DMA data into prepared buffers while CPU
rebooted already. That caused memory corruptions on soft reboot.
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/aq_nic.h')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_nic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_nic.h b/drivers/net/ethernet/aquantia/atlantic/aq_nic.h index d16b0f1a95aa..219b550d1665 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_nic.h +++ b/drivers/net/ethernet/aquantia/atlantic/aq_nic.h @@ -118,5 +118,6 @@ struct aq_nic_cfg_s *aq_nic_get_cfg(struct aq_nic_s *self); u32 aq_nic_get_fw_version(struct aq_nic_s *self); int aq_nic_change_pm_state(struct aq_nic_s *self, pm_message_t *pm_msg); int aq_nic_update_interrupt_moderation_settings(struct aq_nic_s *self); +void aq_nic_shutdown(struct aq_nic_s *self); #endif /* AQ_NIC_H */ |