diff options
| author | Brett Creeley <[email protected]> | 2020-07-30 00:19:16 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2020-08-01 15:44:04 +0000 |
| commit | f34f55557ac9a4dfbfbf36c70585d1648ab5cd90 (patch) | |
| tree | d72a787c489998b0184487d798889e321664f852 /drivers/net/ethernet/intel/ice/ice_txrx.c | |
| parent | ice: Clear and free XLT entries on reset (diff) | |
| download | kernel-f34f55557ac9a4dfbfbf36c70585d1648ab5cd90.tar.gz kernel-f34f55557ac9a4dfbfbf36c70585d1648ab5cd90.zip | |
ice: Allow 2 queue pairs per VF on SR-IOV initialization
Currently VFs are only allowed to get 16, 4, and 1 queue pair by
default, which require 17, 5, and 2 MSI-X vectors respectively. This
is because each VF needs a MSI-X per data queue and a MSI-X for its
other interrupt. The calculation is based on the number of VFs created,
MSI-X available, and queue pairs available at the time of VF creation.
Unfortunately the values above exclude 2 queue pairs when only 3 MSI-X
are available to each VF based on resource constraints. The current
calculation would default to 2 MSI-X and 1 queue pair. This is a waste
of resources, so fix this by allowing 2 queue pairs per VF when there
are between 2 and 5 MSI-X available per VF.
Signed-off-by: Brett Creeley <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_txrx.c')
0 files changed, 0 insertions, 0 deletions
