aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_txrx.c
diff options
context:
space:
mode:
authorBrett Creeley <[email protected]>2020-07-30 00:19:16 +0000
committerTony Nguyen <[email protected]>2020-08-01 15:44:04 +0000
commitf34f55557ac9a4dfbfbf36c70585d1648ab5cd90 (patch)
treed72a787c489998b0184487d798889e321664f852 /drivers/net/ethernet/intel/ice/ice_txrx.c
parentice: Clear and free XLT entries on reset (diff)
downloadkernel-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