Revision 580a05f9d4ada3bfb689140d0efec1efdb8a48da authored by Yonglong Liu on 18 October 2019, 03:42:59 UTC, committed by David S. Miller on 19 October 2019, 18:40:55 UTC
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.

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.

Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 38b4fe3
History
File Mode Size
kvm
lib
Makefile -rw-r--r-- 54 bytes

back to top