From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Blunck Subject: Re: [RFC 0/8] mbuf: structure reorganization Date: Fri, 17 Feb 2017 14:51:57 +0100 Message-ID: References: <1485271173-13408-1-git-send-email-olivier.matz@6wind.com> <2601191342CEEE43887BDE71AB9772583F111A29@irsmsx105.ger.corp.intel.com> <20170216144807.7add2c71@platinum> <20170217115153.0afeb061@platinum> <20170217124954.GO23344@autoinstall.dev.6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Olivier Matz , "Ananyev, Konstantin" , "dev@dpdk.org" To: =?UTF-8?Q?N=C3=A9lio_Laranjeiro?= Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 40E88201 for ; Fri, 17 Feb 2017 14:51:58 +0100 (CET) Received: by mail-wm0-f49.google.com with SMTP id c85so15623964wmi.1 for ; Fri, 17 Feb 2017 05:51:58 -0800 (PST) In-Reply-To: <20170217124954.GO23344@autoinstall.dev.6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Feb 17, 2017 at 1:49 PM, N=C3=A9lio Laranjeiro wrote: > Hi Olivier, Jan, > > On Fri, Feb 17, 2017 at 11:51:53AM +0100, Olivier Matz wrote: >> Hi Jan, >> >> On Thu, 16 Feb 2017 18:26:39 +0100, Jan Blunck >> wrote: >> > >> > If we talk about setting the timestamp value in the RX path this >> > implicitly means software timestamps. Hardware timestamping usually >> > works by letting the hardware inject sync events for coarse time >> > tracking and additionally injecting fine granular per-packet ticks at >> > a specific offset in the packet. Out of performance reasons I don't >> > think it makes sense to extract this during the burst and write it >> > into the mbuf again. >> >> From what I've understand, at least it does not work like this for >> mellanox NICs: timestamp is a metadata attached to a rx packet. But >> maybe they (and other NIC vendors interrested in the feature) can >> confirm or not. > > Olivier is right, this timestamp information is returned by the hardware > as the other fields describing the Rx packet (length, RSS hash, checksum > ...). The PMD only copy it into the Mbuf. > Indeed, for Mellanox the timestamp is stored in the CQ entry. Solarflares write it relative to the packet header.