aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/siena_sriov.h
diff options
context:
space:
mode:
authorShradha Shah <sshah@solarflare.com>2015-04-08 15:25:04 +0100
committerDavid S. Miller <davem@davemloft.net>2015-04-08 12:21:36 -0400
commit25672dba9535b804331145379c79f835ba2205c5 (patch)
tree1737bf6dab3e63e03ae20e0f7b81b3d105b4c6a1 /drivers/net/ethernet/sfc/siena_sriov.h
parentsfc: Own header for nic-specific sriov functions, single instance of netdev_ops and sriov removed from Falcon code (diff)
downloadlinux-dev-25672dba9535b804331145379c79f835ba2205c5.tar.xz
linux-dev-25672dba9535b804331145379c79f835ba2205c5.zip
sfc: Enable VF's via a write to the sysfs file sriov_numvfs
This patch adds support for the use of sriov_configure on EF10 to enable Virtual Functions while the driver is loaded. Signed-off-by: Shradha Shah <sshah@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/sfc/siena_sriov.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/siena_sriov.h b/drivers/net/ethernet/sfc/siena_sriov.h
index 5014ae41df65..8b2ca430a4ea 100644
--- a/drivers/net/ethernet/sfc/siena_sriov.h
+++ b/drivers/net/ethernet/sfc/siena_sriov.h
@@ -41,6 +41,7 @@
((EFX_MAX_VF_EVQ_SIZE + 2 * EFX_MAX_DMAQ_SIZE) * \
sizeof(efx_qword_t) / EFX_BUF_SIZE)
+int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs);
int efx_siena_sriov_init(struct efx_nic *efx);
void efx_siena_sriov_fini(struct efx_nic *efx);
void efx_siena_sriov_mac_address_changed(struct efx_nic *efx);