From 25672dba9535b804331145379c79f835ba2205c5 Mon Sep 17 00:00:00 2001 From: Shradha Shah Date: Wed, 8 Apr 2015 15:25:04 +0100 Subject: 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 Signed-off-by: David S. Miller --- drivers/net/ethernet/sfc/siena_sriov.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/net/ethernet/sfc/siena_sriov.c') 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; +} -- cgit v1.2.3-59-g8ed1b