1
0
Fork 0
alistair23-linux/drivers/net/ethernet/hisilicon/hns3/hns3vf
Yonglong Liu 580a05f9d4 net: hns3: fix mis-counting IRQ vector numbers issue
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: 46a3df9f97 ("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>
2019-10-19 11:40:55 -07:00
..
Makefile net: hns3: Add missing newline at end of file 2019-06-18 20:56:42 -04:00
hclgevf_cmd.c net: hns3: make array spec_opcode static const, makes object smaller 2019-09-07 18:03:05 +02:00
hclgevf_cmd.h net: hns3: fix some reset handshake issue 2019-08-01 13:32:13 -04:00
hclgevf_main.c net: hns3: fix mis-counting IRQ vector numbers issue 2019-10-19 11:40:55 -07:00
hclgevf_main.h net: hns3: fix mis-counting IRQ vector numbers issue 2019-10-19 11:40:55 -07:00
hclgevf_mbx.c net: hns3: fix incorrect type in assignment. 2019-08-29 16:57:43 -07:00