提交 8f4d248c 编写于 作者: S Scott Feldman 提交者: Jeff Garzik

enic: Bug fix: Free MSI intr with correct data handle

Bug fix: Free MSI intr with correct data handle
Use davem proposed naming for MSI-X tx/rx vectors (ethX-tx-0, ethX-rx-0)
Signed-off-by: NScott Feldman <scofeldm@cisco.com>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 25f0a061
...@@ -1133,9 +1133,11 @@ static void enic_free_intr(struct enic *enic) ...@@ -1133,9 +1133,11 @@ static void enic_free_intr(struct enic *enic)
switch (vnic_dev_get_intr_mode(enic->vdev)) { switch (vnic_dev_get_intr_mode(enic->vdev)) {
case VNIC_DEV_INTR_MODE_INTX: case VNIC_DEV_INTR_MODE_INTX:
case VNIC_DEV_INTR_MODE_MSI:
free_irq(enic->pdev->irq, netdev); free_irq(enic->pdev->irq, netdev);
break; break;
case VNIC_DEV_INTR_MODE_MSI:
free_irq(enic->pdev->irq, enic);
break;
case VNIC_DEV_INTR_MODE_MSIX: case VNIC_DEV_INTR_MODE_MSIX:
for (i = 0; i < ARRAY_SIZE(enic->msix); i++) for (i = 0; i < ARRAY_SIZE(enic->msix); i++)
if (enic->msix[i].requested) if (enic->msix[i].requested)
...@@ -1170,12 +1172,12 @@ static int enic_request_intr(struct enic *enic) ...@@ -1170,12 +1172,12 @@ static int enic_request_intr(struct enic *enic)
case VNIC_DEV_INTR_MODE_MSIX: case VNIC_DEV_INTR_MODE_MSIX:
sprintf(enic->msix[ENIC_MSIX_RQ].devname, sprintf(enic->msix[ENIC_MSIX_RQ].devname,
"%.11s-rx", netdev->name); "%.11s-rx-0", netdev->name);
enic->msix[ENIC_MSIX_RQ].isr = enic_isr_msix_rq; enic->msix[ENIC_MSIX_RQ].isr = enic_isr_msix_rq;
enic->msix[ENIC_MSIX_RQ].devid = enic; enic->msix[ENIC_MSIX_RQ].devid = enic;
sprintf(enic->msix[ENIC_MSIX_WQ].devname, sprintf(enic->msix[ENIC_MSIX_WQ].devname,
"%.11s-tx", netdev->name); "%.11s-tx-0", netdev->name);
enic->msix[ENIC_MSIX_WQ].isr = enic_isr_msix_wq; enic->msix[ENIC_MSIX_WQ].isr = enic_isr_msix_wq;
enic->msix[ENIC_MSIX_WQ].devid = enic; enic->msix[ENIC_MSIX_WQ].devid = enic;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册