mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
For convenience, for every enabled VF add 'device' symlink from our SR-IOV admin VF folder to enabled sysfs PCI VF device entry. Remove all those links when disabling PCI VFs. For completeness, add static 'device' symlink for the PF itself. /sys/bus/pci/drivers/xe/BDF/sriov_admin/ ├── pf │ └── device -> ../../../BDF # PF BDF ├── vf1 │ └── device -> ../../../BDF' # VF1 BDF ├── vf2 │ └── device -> ../../../BDF" # VF2 BDF Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patch.msgid.link/20251030222348.186658-16-michal.wajdeczko@intel.com
17 lines
377 B
C
17 lines
377 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2025 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_SRIOV_PF_SYSFS_H_
|
|
#define _XE_SRIOV_PF_SYSFS_H_
|
|
|
|
struct xe_device;
|
|
|
|
int xe_sriov_pf_sysfs_init(struct xe_device *xe);
|
|
|
|
void xe_sriov_pf_sysfs_link_vfs(struct xe_device *xe, unsigned int num_vfs);
|
|
void xe_sriov_pf_sysfs_unlink_vfs(struct xe_device *xe, unsigned int num_vfs);
|
|
|
|
#endif
|