From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 2FA8312A8 for ; Mon, 1 Jun 2015 05:51:25 +0200 (CEST) Received: by wgez8 with SMTP id z8so103318724wge.0 for ; Sun, 31 May 2015 20:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5mM72hKWWFeu/wOuBkSnMUgCPiwlBj0/UT+ZiyTTy4g=; b=R2rygw+oT8m16CLDUrmQoeK82s5VR2rwpBeNwuvQLmR+zCPGVY/gf/A2vk/4a0GH3H SuCZFEoniyYVuBTCLq/80SuC7HWJAqUgCmY7Kc1f6jN/mA0aZfN/e4fJc3i5tMiN46X2 4jUnp6/O81q2bogjEctCw+Y5zVDRGW6hoKgoAhopuRSd0SOKMCYlDLiSI3fkbgp98+qI 8fi6x6EoQHtHikE9CX/NNNjlbQNLBn9pq1RTxDvQlePq2oF4wWn7tA2vZcHT/oZaeDmM 0mTCmTzaJ6CUE3f0Fuoue7aGRIks8iBXi43YoXIjxR5tYXaQaUAYyyfVp3dWkc1SRWum arZw== MIME-Version: 1.0 X-Received: by 10.180.88.72 with SMTP id be8mr16785327wib.45.1433130685029; Sun, 31 May 2015 20:51:25 -0700 (PDT) Received: by 10.28.173.196 with HTTP; Sun, 31 May 2015 20:51:24 -0700 (PDT) In-Reply-To: References: <002a01d09c14$16911430$43b33c90$@colasoft.com.cn> Date: Mon, 1 Jun 2015 12:51:24 +0900 Message-ID: From: Keunhong Lee To: =?UTF-8?B?56eR5p2lIOiwreaYpea1tw==?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] How to set timestamp in 82599 NICs in DPDK? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2015 03:51:25 -0000 http://dpdk.org/browse/dpdk/tree/app/test-pmd/ieee1588fwd.c This code example contains enabling PTP with intel NICs. Keunhong. 2015-06-01 12:48 GMT+09:00 Keunhong Lee : > 82599 supports hw timestamping for PTP packets. > I don't know whether it supports timestamping for general packets. > > > > http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixg= be_ptp.c#L640 > says that > > 640 * default: > *641 * /**642 * = * register RXMTRL must be set in order to do V1 packets,*643 * * therefore it is not possible to time stamp both V1 Sy= nc and*644 * * Delay_Req messages and hardwar= e does not support** > 645 * timestamping all packets =3D> return= error > *646 * */*647 = config *->rx_filter =3D HW= TSTAMP_FILTER_NONE; > *648 * return -*ERANGE *; > *649 * }* > > > Keunhong. > > 2015-06-01 11:38 GMT+09:00 =E7=A7=91=E6=9D=A5 =E8=B0=AD=E6=98=A5=E6=B5=B7= : > >> Hi >> >> >> >> I noticed that there is a patch which can set hardware timestamp for the >> received >> packets( >> http://www.wand.net.nz/trac/libtrace/browser/Intel%20DPDK%20Patches/ >> hardware_timestamp.patch?rev=3Dce7153dbc6a13c18bf8033af08c1249527754168 >> ), >> but >> it only works in e1000 and igb NICs. I want to capture packets with >> timestamp info in 82599 NICs, what should I do? Could you give me some >> help? >> >> >> >> Thanks. >> >> >> >> Chunhai Tan >> >> >> >> >> >> >