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

Roland Dreier rdreier at cisco.com
Fri Jul 10 15:12:30 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.

 - R.



More information about the general mailing list