linux/drivers/net/ethernet/hisilicon/hns3
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
..
hns3pf net: hns3: fix mis-counting IRQ vector numbers issue 2019-10-19 11:40:55 -07:00
hns3vf net: hns3: fix mis-counting IRQ vector numbers issue 2019-10-19 11:40:55 -07:00
hclge_mbx.h net: hns3: add handler for NCSI error mailbox 2019-08-01 13:32:12 -04:00
hnae3.c net: hns3: add client node validity judgment 2019-09-06 15:20:34 +02:00
hnae3.h net: hns3: fix mis-counting IRQ vector numbers issue 2019-10-19 11:40:55 -07:00
hns3_dcbnl.c net: hns3: fix some coding style issues 2019-06-09 13:20:59 -07:00
hns3_debugfs.c net: hns3: modify some logs format 2019-09-11 09:08:45 +01:00
hns3_enet.c net: hns3: check NULL pointer before use 2019-09-11 09:08:46 +01:00
hns3_enet.h net: hns3: implement .process_hw_error for hns3 client 2019-08-29 16:57:43 -07:00
hns3_ethtool.c net: hns3: fix port setting handle for fibre port 2019-09-11 09:08:45 +01:00
Makefile net: hns3: Add debugfs framework registration 2018-11-23 17:28:59 -08:00