summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/ef100_netdev.h
diff options
context:
space:
mode:
authorJonathan Cooper <jonathan.s.cooper@amd.com>2022-06-28 15:00:47 +0100
committerDavid S. Miller <davem@davemloft.net>2022-06-29 13:40:47 +0100
commit98ff4c7c8ac7f5339aac6114105395fea19f992e (patch)
treef16ad06e90e053958c7f2c845f8e201ea1bc4ed4 /drivers/net/ethernet/sfc/ef100_netdev.h
parent7592d754c09c6cf0f1758ddba41cdb4e5c16b0b2 (diff)
downloadlinux-stable-98ff4c7c8ac7f5339aac6114105395fea19f992e.tar.gz
linux-stable-98ff4c7c8ac7f5339aac6114105395fea19f992e.tar.bz2
linux-stable-98ff4c7c8ac7f5339aac6114105395fea19f992e.zip
sfc: Separate netdev probe/remove from PCI probe/remove
The netdev probe will be used when moving from vDPA to EF100 BAR config. The netdev remove will be used when moving from EF100 to vDPA BAR config. In the process, change several log messages to pci_ instead of netif_ to remove the "(unregistered net_device)" text. Signed-off-by: Jonathan Cooper <jonathan.s.cooper@amd.com> Co-developed-by: Martin Habets <habetsm.xilinx@gmail.com> Signed-off-by: Martin Habets <habetsm.xilinx@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef100_netdev.h')
-rw-r--r--drivers/net/ethernet/sfc/ef100_netdev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/ef100_netdev.h b/drivers/net/ethernet/sfc/ef100_netdev.h
index d40abb7cc086..38b032ba0953 100644
--- a/drivers/net/ethernet/sfc/ef100_netdev.h
+++ b/drivers/net/ethernet/sfc/ef100_netdev.h
@@ -13,5 +13,5 @@
int ef100_netdev_event(struct notifier_block *this,
unsigned long event, void *ptr);
-int ef100_register_netdev(struct efx_nic *efx);
-void ef100_unregister_netdev(struct efx_nic *efx);
+int ef100_probe_netdev(struct efx_probe_data *probe_data);
+void ef100_remove_netdev(struct efx_probe_data *probe_data);