From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <jingguox.fu@intel.com>
Received: from mga02.intel.com (mga02.intel.com [134.134.136.20])
 by dpdk.org (Postfix) with ESMTP id 7039E9E5
 for <dev@dpdk.org>; Wed,  8 Jul 2015 04:01:58 +0200 (CEST)
Received: from fmsmga003.fm.intel.com ([10.253.24.29])
 by orsmga101.jf.intel.com with ESMTP; 07 Jul 2015 19:01:57 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.15,428,1432623600"; d="scan'208";a="520492484"
Received: from pgsmsx102.gar.corp.intel.com ([10.221.44.80])
 by FMSMGA003.fm.intel.com with ESMTP; 07 Jul 2015 19:01:56 -0700
Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by
 PGSMSX102.gar.corp.intel.com (10.221.44.80) with Microsoft SMTP Server (TLS)
 id 14.3.224.2; Wed, 8 Jul 2015 09:59:48 +0800
Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.246]) by
 SHSMSX103.ccr.corp.intel.com ([169.254.4.46]) with mapi id 14.03.0224.002;
 Wed, 8 Jul 2015 09:59:47 +0800
From: "Fu, JingguoX" <jingguox.fu@intel.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Thread-Topic: [dpdk-dev] [PATCH v3 0/7] ethdev: add support for ieee1588
 timestamping
Thread-Index: AQHQtNoxR6k9IB+iMUadx+bQyJq0hp3Q0x7Q
Date: Wed, 8 Jul 2015 01:59:47 +0000
Message-ID: <6BD6202160B55B409D42329311582262693B85@SHSMSX101.ccr.corp.intel.com>
References: <1435585344-26652-1-git-send-email-john.mcnamara@intel.com>
 <1435850194-7024-1-git-send-email-john.mcnamara@intel.com>
In-Reply-To: <1435850194-7024-1-git-send-email-john.mcnamara@intel.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.239.127.40]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [dpdk-dev] [PATCH v3 0/7] ethdev: add support for
	ieee1588	timestamping
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Jul 2015 02:01:59 -0000

Tested-by: Jingguo Fu <jingguox.fu@intel.com>
- Test Commit: 82be8d544253a4b5c49b778babf717e5e63f3dc1
- OS: Ubuntu 14.04
- GCC: gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)
- CPU: Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz
- NIC: Intel Corporation Device [8086:1563]
- Total 1 case, 1 passed, 0 failed.

Test Case :  test_ieee1588_disable
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1. set CONFIG_RTE_LIBRTE_IEEE1588=3Dy, rebuild the DPDK code.
2.mount hugetlbfs
3. insmod igb_uio and bind the two ports to igb_uio driver
4. startup testpmd
=09
	testpmd -c 0x6 -n 4 -- -i --txqflags 0x0

5. set ieee1588 fwd mode and start it:

	set fwd ieee1588
	start

6. send a packet to the receive port and check the output and send port sta=
tus:
=09
	a: "IEEE1588 PTP V2 SYNC" in pmd output
	b: "RX timestamp value ([0-9a-fA-F]+)" in pmd output
	c:  "TX timestamp value ([0-9a-fA-F]+)" in pmd output

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of John McNamara
> Sent: Thursday, July 02, 2015 23:16
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH v3 0/7] ethdev: add support for ieee1588
> timestamping
>=20
> This patchset adds ethdev API to enable and read IEEE1588/802.1AS PTP
> timestamps from devices that support it. The following functions are adde=
d:
>=20
>     rte_eth_timesync_enable()
>     rte_eth_timesync_disable()
>     rte_eth_timesync_read_rx_timestamp()
>     rte_eth_timesync_read_tx_timestamp()
>=20
> The "ieee1588" forwarding mode in testpmd is also refactored to
> demonstrate the new API and to clean up the code.
>=20
> Adds support for igb, ixgbe and i40e.
>=20
> V3:
> * Fixed issued with version.map.
>=20
> V2:
> * Added i40e support.
>=20
> * Renamed ethdev functions from rte_eth_ieee15888_*() to
> rte_eth_timesync_*()
>   since 802.1AS can be supported through the same interfaces.
>=20
> V1:
> * Initial version for
>=20
>=20
> John McNamara (7):
>   ethdev: add support for ieee1588 timestamping
>   e1000: add support for ieee1588 timestamping
>   ixgbe: add support for ieee1588 timestamping
>   i40e: add support for ieee1588 timestamping
>   app/testpmd: refactor ieee1588 forwarding
>   doc: document ieee1588 forwarding mode
>   abi: announce mbuf addition for ieee1588 in DPDK 2.2
>=20
>  app/test-pmd/ieee1588fwd.c                  | 466 ++--------------------=
------
>  doc/guides/rel_notes/abi.rst                |   5 +
>  doc/guides/testpmd_app_ug/run_app.rst       |   2 +-
>  doc/guides/testpmd_app_ug/testpmd_funcs.rst |   2 +
>  drivers/net/e1000/igb_ethdev.c              | 115 +++++++
>  drivers/net/i40e/i40e_ethdev.c              | 143 +++++++++
>  drivers/net/i40e/i40e_rxtx.c                |  39 ++-
>  drivers/net/ixgbe/ixgbe_ethdev.c            | 122 ++++++++
>  lib/librte_ether/rte_ethdev.c               |  70 ++++-
>  lib/librte_ether/rte_ethdev.h               |  90 +++++-
>  lib/librte_ether/rte_ether_version.map      |   4 +
>  11 files changed, 615 insertions(+), 443 deletions(-)
>=20
> --
> 1.8.1.4