[Impact]
MSI-X configuration is hardcoded in the hns3 driver, but the actual configuration may change across revisions. Query firmware for the MSI-X offset/numbers instead.
[Test Case]
Regression testing: Confirm that, on existing hardware, the same MSIs are allocated before and after the patch.
[Impact]
MSI-X configuration is hardcoded in the hns3 driver, but the actual configuration may change across revisions. Query firmware for the MSI-X offset/numbers instead.
[Test Case]
Regression testing: Confirm that, on existing hardware, the same MSIs are allocated before and after the patch.
grep hns /proc/interrupts | grep MSI | cut -d: -f1 > msi.old
grep hns /proc/interrupts | grep MSI | cut -d: -f1 > msi.new
diff -u msi.old msi.new
[Fix]
375dd5e43212 net: hns3: Refine the MSIX allocation for PF
07acf909ee33 net: hns3: Fix MSIX allocation issue for VF
[Regression Risk]
Restricted to a single driver, only used on HiSilicon SoCs.