[hns3-0114]net: hns3: fix mis-counting IRQ vector numbers issue

Bug #1859554 reported by Fred Kimmy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kunpeng920
Fix Released
Undecided
Unassigned
Ubuntu-18.04
Won't Fix
Undecided
Unassigned
Ubuntu-18.04-hwe
Fix Released
Undecided
Unassigned
Ubuntu-20.04
Fix Released
Undecided
Unassigned
Upstream-kernel
Fix Released
Undecided
Unassigned

Bug Description

[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.

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

Ike Panhc (ikepanhc)
description: updated
Ike Panhc (ikepanhc)
tags: added: ikeradar
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Unable to cherry-pick for bionic kernel.

tags: removed: ikeradar
Changed in kunpeng920:
status: New → Fix Committed
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Already in HWE 5.3 kernel.

Changed in kunpeng920:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.