aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/siena_sriov.c
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.c
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 'drivers/net/ethernet/sfc/siena_sriov.c')
-rw-r--r--drivers/net/ethernet/sfc/siena_sriov.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/siena_sriov.c b/drivers/net/ethernet/sfc/siena_sriov.c
index ccadd4634001..9366756e6101 100644
--- a/drivers/net/ethernet/sfc/siena_sriov.c
+++ b/drivers/net/ethernet/sfc/siena_sriov.c
@@ -1701,3 +1701,8 @@ bool efx_siena_sriov_wanted(struct efx_nic *efx)
return false;
#endif
}
+
+int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs)
+{
+ return 0;
+}