diff options
author | Shradha Shah <sshah@solarflare.com> | 2014-11-05 15:16:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-06 22:43:09 +0300 |
commit | d98a4ffe0d7a8946c67d115f8b3bd8e5bb1df86d (patch) | |
tree | 8759bd88647af178390ac8c16e03b9a6f794c762 /drivers/net/ethernet/sfc/net_driver.h | |
parent | 327c685eb745e3c56ed52734d3671dcf6f4f6940 (diff) | |
download | linux-d98a4ffe0d7a8946c67d115f8b3bd8e5bb1df86d.tar.xz |
sfc: Add NIC type operations to replace direct calls from efx.c into siena_sriov.c
Also add dummy functions where required to avoid NULL pointer dereference.
Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r-- | drivers/net/ethernet/sfc/net_driver.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h index 779a1f59a010..325dd94bca46 100644 --- a/drivers/net/ethernet/sfc/net_driver.h +++ b/drivers/net/ethernet/sfc/net_driver.h @@ -1330,6 +1330,11 @@ struct efx_nic_type { int (*ptp_set_ts_sync_events)(struct efx_nic *efx, bool en, bool temp); int (*ptp_set_ts_config)(struct efx_nic *efx, struct hwtstamp_config *init); + int (*sriov_init)(struct efx_nic *efx); + void (*sriov_fini)(struct efx_nic *efx); + void (*sriov_mac_address_changed)(struct efx_nic *efx); + bool (*sriov_wanted)(struct efx_nic *efx); + void (*sriov_reset)(struct efx_nic *efx); int revision; unsigned int txd_ptr_tbl_base; |