summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/ef100_sriov.h
diff options
context:
space:
mode:
authorPieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>2022-04-28 13:39:33 +0200
committerJakub Kicinski <kuba@kernel.org>2022-04-30 03:43:01 +0200
commit78a9b3c47befde80a4896a8c5172990b60c58af4 (patch)
treee652e9200353ec1947cb05f11b8b9860f47b132c /drivers/net/ethernet/sfc/ef100_sriov.h
parentMerge branch 'mptcp-path-manager-mode-selection' (diff)
downloadlinux-78a9b3c47befde80a4896a8c5172990b60c58af4.tar.xz
linux-78a9b3c47befde80a4896a8c5172990b60c58af4.zip
sfc: add EF100 VF support via a write to sriov_numvfs
This patch extends the EF100 PF driver by adding .sriov_configure() which would allow users to enable and disable virtual functions using the sriov sysfs. Signed-off-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com> Signed-off-by: Edward Cree <ecree.xilinx@gmail.com> Link: https://lore.kernel.org/r/75e74d9e-14ce-0524-9668-5ab735a7cf62@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef100_sriov.h')
-rw-r--r--drivers/net/ethernet/sfc/ef100_sriov.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/ef100_sriov.h b/drivers/net/ethernet/sfc/ef100_sriov.h
new file mode 100644
index 000000000000..c48fccd46c57
--- /dev/null
+++ b/drivers/net/ethernet/sfc/ef100_sriov.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/****************************************************************************
+ * Driver for Solarflare network controllers and boards
+ * Copyright 2019 Solarflare Communications Inc.
+ * Copyright 2020-2022 Xilinx Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
+ * by the Free Software Foundation, incorporated herein by reference.
+ */
+#include "net_driver.h"
+
+int efx_ef100_sriov_configure(struct efx_nic *efx, int num_vfs);
+int efx_ef100_pci_sriov_disable(struct efx_nic *efx);