mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
qla2x00t-32gbit: Calculate min_vecs correctly for kernel versions < v4.8
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8157 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3494,7 +3494,9 @@ qla24xx_enable_msix(struct qla_hw_data *ha, struct rsp_que *rsp)
|
||||
|
||||
for (i = 0; i < ha->msix_count; i++)
|
||||
entries[i].entry = i;
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
|
||||
if (QLA_TGT_MODE_ENABLED() && (ql2xenablemsix != 0) &&
|
||||
IS_ATIO_MSIX_CAPABLE(ha)) {
|
||||
min_vecs++;
|
||||
@@ -3511,6 +3513,8 @@ qla24xx_enable_msix(struct qla_hw_data *ha, struct rsp_que *rsp)
|
||||
}
|
||||
#endif
|
||||
|
||||
WARN_ON_ONCE(min_vecs > ha->msix_count);
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0) && !defined(RHEL_MAJOR)
|
||||
ret = pci_enable_msix(ha->pdev, entries, ha->msix_count);
|
||||
if (ret) {
|
||||
|
||||
Reference in New Issue
Block a user