diff options
author | Michał Winiarski <michal.winiarski@intel.com> | 2025-07-02 11:35:22 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-07-14 15:04:23 -0500 |
commit | 84f890414a12b8d1480045b92a5e4e6ac4ab3419 (patch) | |
tree | dbfc2d8f06b4c37c8e1c4ed002f89ab7c1b6a793 /net/lapb/lapb_timer.c | |
parent | e1ba95a168e6f771960c0afc4e44984cf5cf659c (diff) |
PCI/IOV: Allow drivers to control VF BAR size
Drivers could leverage the fact that the VF BAR MMIO reservation is created
for total number of VFs supported by the device by resizing the BAR to
larger size when smaller number of VFs is enabled.
Add pci_iov_vf_bar_set_size() to control the size and a
pci_iov_vf_bar_get_sizes() helper to get the VF BAR sizes that will allow
up to num_vfs to be successfully enabled with the current underlying
reservation size.
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://patch.msgid.link/20250702093522.518099-6-michal.winiarski@intel.com
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions