[ofw] RE: Call to_mdev(ibdev) only once in mlx4_ib_query_device()
Leonid Keller
leonid at mellanox.co.il
Wed Mar 25 09:03:04 PDT 2009
Applied in 2056, thank you.
> -----Original Message-----
> From: Smith, Stan [mailto:stan.smith at intel.com]
> Sent: Wednesday, March 18, 2009 8:16 PM
> To: Leonid Keller
> Cc: ofw at lists.openfabrics.org
> Subject: Call to_mdev(ibdev) only once in mlx4_ib_query_device()
>
>
> Hello,
> In file hw/mlx4/kernel/bus/ib/main.c @ line 57 struct
> mlx4_ib_dev *dev = to_mdev(ibdev)
>
> Later @ line 73
> err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL, NULL,
> in_mad, out_mad);
>
> Call to_mdev(ibdev) only once.
>
> Stan.
>
> diff U3 C:/Documents and Settings/scsmith/Local
> Settings/Temp/main.c-revBASE.svn000.tmp.c C:/Documents and
> Settings/scsmith/My
> Documents/openIB-windows/SVN/gen1/trunk/hw/mlx4/kernel/bus/ib/main.c
> --- C:/Documents and Settings/scsmith/Local
> Settings/Temp/main.c-revBASE.svn000.tmp.c Wed Mar 18 11:08:40 2009
> +++ C:/Documents and Settings/scsmith/My
> Documents/openIB-windows/SVN/gen1/trunk/hw/mlx4/kernel/bus/ib/
> main.c Wed Mar 18 10:50:23 2009
> @@ -70,7 +70,7 @@
> init_query_mad(in_mad);
> in_mad->attr_id = IB_SMP_ATTR_NODE_INFO;
>
> - err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL,
> NULL, in_mad, out_mad);
> + err = mlx4_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad);
> if (err)
> goto out;
>
>
More information about the ofw
mailing list