Comment 0 for bug 1859554

Revision history for this message
Fred Kimmy (kongzizaixian) wrote :

[Bug Description]
Currently, the num_msi_left means the vector numbers of NIC,
but if the PF supported RoCE, it contains the vector numbers
of NIC and RoCE(Not expected).

This may cause interrupts lost in some case, because of the
NIC module used the vector resources which belongs to RoCE.

[Steps to Reproduce]
1.using CS-A board
2.ifconfig eth* up (which is fibre port)
3.configure ip address
4.enable VF device & load driver
5.configure VF ip address
6.ping operation with binding core

[Actual Results]
cause TX timeout

[Expected Results]
ping ok

[Reproducibility]
Inevitably

[Additional information]
Hardware: D06
Firmware: NA
Kernel: NA

[Resolution]
This patch adds a new variable num_nic_msi to store the vector
numbers of NIC, and adjust the default TQP numbers and rss_size
according to the value of num_nic_msi.

net: hns3: fix mis-counting IRQ vector numbers issue