[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131211212304.GA8283@sbohrermbp13-local.rgmadvisors.com>
Date: Wed, 11 Dec 2013 15:23:04 -0600
From: Shawn Bohrer <shawn.bohrer@...il.com>
To: Or Gerlitz <or.gerlitz@...il.com>
Cc: Or Gerlitz <ogerlitz@...lanox.com>,
Amir Vadai <amirv@...lanox.com>,
Richard Cochran <richardcochran@...il.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
tomk@...advisors.com, Shawn Bohrer <sbohrer@...advisors.com>
Subject: Re: [PATCH RFC] mlx4_en: Add PTP hardware clock
On Wed, Dec 11, 2013 at 10:47:51PM +0200, Or Gerlitz wrote:
> On Wed, Dec 11, 2013 Shawn Bohrer <shawn.bohrer@...il.com> wrote:
>
> > @@ -264,10 +267,6 @@ static void *mlx4_en_add(struct mlx4_dev *dev)
> > mlx4_foreach_port(i, dev, MLX4_PORT_TYPE_ETH)
> > mdev->port_cnt++;
> >
> > - /* Initialize time stamp mechanism */
> > - if (mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_TS)
> > - mlx4_en_init_timestamp(mdev);
> > -
> > mlx4_foreach_port(i, dev, MLX4_PORT_TYPE_ETH) {
> > if (!dev->caps.comp_pool) {
> > mdev->profile.prof[i].rx_ring_num =
> > @@ -305,6 +304,10 @@ static void *mlx4_en_add(struct mlx4_dev *dev)
> > mdev->pndev[i] = NULL;
> > }
> >
> > + /* Initialize time stamp mechanism */
> > + if (mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_TS)
> > + mlx4_en_init_timestamp(mdev);
> > +
> > return mdev;
>
> so you are reverting here commit 1ec4864b1017 "net/mlx4_en: Fixed
> crash when port type is changed" -- why?
For stupid reasons. I'm using mdev->pndev[i]->perm_addr to initialize
the ptp_clock_info.name field in mlx4_en_init_timestamp(). I'll look
around and see if I can find something better to use and put this
back.
--
Shawn
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists