Commit f8e9889
ice: change vfs.num_msix_per to vf->num_msix
vfs::num_msix_per should be only used as default value for
vf->num_msix. For other use cases vf->num_msix should be used, as VF can
have different MSI-X amount values.
Fix incorrect register index calculation. vfs::num_msix_per and
pf->sriov_base_vector shouldn't be used after implementation of changing
MSI-X amount on VFs. Instead vf->first_vector_idx should be used, as it
is storing value for first irq index.
Fixes: fe1c5ca ("ice: implement num_msix field per VF")
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent 3c91c90 commit f8e9889
2 files changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
378 | | - | |
379 | 377 | | |
380 | 378 | | |
381 | 379 | | |
382 | | - | |
383 | | - | |
384 | 380 | | |
385 | | - | |
386 | | - | |
| 381 | + | |
387 | 382 | | |
388 | 383 | | |
389 | 384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1523 | 1523 | | |
1524 | 1524 | | |
1525 | 1525 | | |
1526 | | - | |
1527 | 1526 | | |
1528 | 1527 | | |
1529 | 1528 | | |
| |||
1535 | 1534 | | |
1536 | 1535 | | |
1537 | 1536 | | |
1538 | | - | |
| 1537 | + | |
1539 | 1538 | | |
1540 | 1539 | | |
1541 | 1540 | | |
| |||
1557 | 1556 | | |
1558 | 1557 | | |
1559 | 1558 | | |
1560 | | - | |
| 1559 | + | |
1561 | 1560 | | |
1562 | 1561 | | |
1563 | 1562 | | |
| |||
0 commit comments