diff options
author | Jonathan Cooper <jonathan.s.cooper@amd.com> | 2022-06-28 16:59:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-06-29 15:40:46 +0300 |
commit | 62ac3ce542fffdd71295cf8bbf6148e12efe4b4a (patch) | |
tree | 3b8e63e520d4dbc58d85b85cd8b2f6d1eb448eb9 /drivers/net/ethernet/sfc/efx_common.h | |
parent | 8b39db19b21b7edfa0a48ca8a00ba042353b7887 (diff) | |
download | linux-62ac3ce542fffdd71295cf8bbf6148e12efe4b4a.tar.xz |
sfc: Remove netdev init from efx_init_struct
Move functionality involving the struct net_device out of
efx_init_struct so that we can initialise without a net dev
for VDPA operation.
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/efx_common.h')
-rw-r--r-- | drivers/net/ethernet/sfc/efx_common.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/efx_common.h b/drivers/net/ethernet/sfc/efx_common.h index 022ba56736a7..93babc1a2678 100644 --- a/drivers/net/ethernet/sfc/efx_common.h +++ b/drivers/net/ethernet/sfc/efx_common.h @@ -14,8 +14,7 @@ int efx_init_io(struct efx_nic *efx, int bar, dma_addr_t dma_mask, unsigned int mem_map_size); void efx_fini_io(struct efx_nic *efx); -int efx_init_struct(struct efx_nic *efx, struct pci_dev *pci_dev, - struct net_device *net_dev); +int efx_init_struct(struct efx_nic *efx, struct pci_dev *pci_dev); void efx_fini_struct(struct efx_nic *efx); #define EFX_MAX_DMAQ_SIZE 4096UL |