[ofa-general] RE: [PATCH ] mlx4_core: Distinguish multiple IB cards in /proc/interrupts

Arputham Benjamin abenjamin at sgi.com
Fri Jul 10 15:57:26 PDT 2009


>> diff -rup a/drivers/net/mlx4/eq.c b/drivers/net/mlx4/eq.c
>> --- a/drivers/net/mlx4/eq.c     2009-06-24 16:28:12.273861234 -0700
>> +++ b/drivers/net/mlx4/eq.c     2009-06-30 16:38:58.200069975 -0700
>> @@ -609,14 +609,21 @@ int mlx4_init_eq_table(struct mlx4_dev *
>>                 for (i = 0; i < MLX4_EQ_COMP_CPU0 +
>>                       dev->caps.num_comp_vectors; ++i) {
>>                         if (i == 0)
>> -                               snprintf(eq_name[0], 20, DRV_NAME "(async)");
>> +                               snprintf(&priv->irq_name[i][0],
>> +                                        DEVICE_NAME_SIZE,
>> +                                        DRV_NAME "(async)" "@pci:%s",
>> +                                        pci_name(dev->pdev));
>>                         else
>> -                               snprintf(eq_name[i], 20, "eth-mlx4-%d",
>> -                                        i - 1);
>> +                               snprintf(&priv->irq_name[i][0],
>> +                                        DEVICE_NAME_SIZE,
>> +                                        "eth-mlx4-%d" "@pci:%s",
>> +                                        i - 1,
>> +                                        pci_name(dev->pdev));

> What tree did you generate this patch against?  The code in the mainline
> kernel looks nothing like this.

This patch was generated against SLES10SP2 ( kernel release - 2.6.16.60-0.21-default)
and OFED 1.4

Regards,
Benjamin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20090710/0a2191b8/attachment.html>


More information about the general mailing list