[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130425192627.GA14429@netboy>
Date: Thu, 25 Apr 2013 21:26:27 +0200
From: Richard Cochran <richardcochran@...il.com>
To: Amir Vadai <amirv@...lanox.com>
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
Or Gerlitz <ogerlitz@...lanox.com>,
Eugenia Emantayev <eugenia@...lanox.com>
Subject: Re: [PATCH net-next V3 3/5] net/mlx4_en: Add HW timestamping (TS)
support
On Tue, Apr 23, 2013 at 07:06:49PM +0300, Amir Vadai wrote:
> +u64 mlx4_en_get_cqe_ts(struct mlx4_cqe *cqe)
> +{
> + u64 hi, lo;
> + struct mlx4_ts_cqe *ts_cqe = (struct mlx4_ts_cqe *)cqe;
> +
> + lo = (u64)be16_to_cpu(ts_cqe->timestamp_lo);
> + hi = ((u64)be32_to_cpu(ts_cqe->timestamp_hi) + !lo) << 16;
^^^^^
That looks a bit strange. Can you explain?
> +
> + return hi | lo;
> +}
Thanks,
Richard
--
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