diff options
author | Michał Winiarski <michal.winiarski@intel.com> | 2025-07-02 11:35:20 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-07-14 15:04:18 -0500 |
commit | e200f4f7eab52bb7affcd92bf079958326c154d5 (patch) | |
tree | 32b355f0f90de07624b6c46a2607d19b5724b07a /net/lapb/lapb_timer.c | |
parent | 535bdbeaacf96a8c4ef8d726382fb8fae97f168f (diff) |
PCI/IOV: Allow IOV resources to be resized in pci_resize_resource()
Similar to regular resizable BARs, VF BARs can also be resized.
The capability layout is the same as PCI_EXT_CAP_ID_REBAR, which means we
can reuse most of the implementation, the only difference being resource
size calculation (which is multiplied by total VFs) and memory decoding
(which is controlled by a separate VF MSE field in SR-IOV cap).
Extend the pci_resize_resource() function to accept IOV resources.
See PCIe r6.2, sec 7.8.7.
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-4-michal.winiarski@intel.com
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions