main.c (272407) | main.c (277139) |
---|---|
1/* 2 * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 1599 unchanged lines hidden (view full) --- 1608 if (!ibdev->eq_table) 1609 return; 1610 1611 ibdev->eq_added = added_eqs; 1612 1613 eq = 0; 1614 mlx4_foreach_port(i, dev, MLX4_PORT_TYPE_IB) { 1615 for (j = 0; j < eq_per_port; j++) { | 1/* 2 * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 1599 unchanged lines hidden (view full) --- 1608 if (!ibdev->eq_table) 1609 return; 1610 1611 ibdev->eq_added = added_eqs; 1612 1613 eq = 0; 1614 mlx4_foreach_port(i, dev, MLX4_PORT_TYPE_IB) { 1615 for (j = 0; j < eq_per_port; j++) { |
1616 //sprintf(name, "mlx4-ib-%d-%d@%s", 1617 // i, j, dev->pdev->bus->conf.pd_name); | 1616 snprintf(name, sizeof(name), "mlx4-ib-%d-%d@%d:%d:%d:%d", i, j, 1617 pci_get_domain(dev->pdev->dev.bsddev), 1618 pci_get_bus(dev->pdev->dev.bsddev), 1619 PCI_SLOT(dev->pdev->devfn), 1620 PCI_FUNC(dev->pdev->devfn)); 1621 |
1618 /* Set IRQ for specific name (per ring) */ 1619 if (mlx4_assign_eq(dev, name, 1620 &ibdev->eq_table[eq])) { 1621 /* Use legacy (same as mlx4_en driver) */ 1622 pr_warn("Can't allocate EQ %d; reverting to legacy\n", eq); 1623 ibdev->eq_table[eq] = 1624 (eq % dev->caps.num_comp_vectors); 1625 } --- 793 unchanged lines hidden --- | 1622 /* Set IRQ for specific name (per ring) */ 1623 if (mlx4_assign_eq(dev, name, 1624 &ibdev->eq_table[eq])) { 1625 /* Use legacy (same as mlx4_en driver) */ 1626 pr_warn("Can't allocate EQ %d; reverting to legacy\n", eq); 1627 ibdev->eq_table[eq] = 1628 (eq % dev->caps.num_comp_vectors); 1629 } --- 793 unchanged lines hidden --- |