sfc: add EF100 VF support via a write to sriov_numvfs
authorPieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>
Thu, 28 Apr 2022 11:39:33 +0000 (12:39 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Apr 2022 01:43:01 +0000 (18:43 -0700)
commit78a9b3c47befde80a4896a8c5172990b60c58af4
treee652e9200353ec1947cb05f11b8b9860f47b132c
parent4994d4fa99ba4552194eb7c257dc3001892d3e70
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>
drivers/net/ethernet/sfc/Makefile
drivers/net/ethernet/sfc/ef100.c
drivers/net/ethernet/sfc/ef100_nic.c
drivers/net/ethernet/sfc/ef100_sriov.c [new file with mode: 0644]
drivers/net/ethernet/sfc/ef100_sriov.h [new file with mode: 0644]