From: Keunhong Lee <dlrmsghd@gmail.com>
To: "科来 谭春海" <chunhai.tan@colasoft.com.cn>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] How to set timestamp in 82599 NICs in DPDK?
Date: Mon, 1 Jun 2015 12:51:24 +0900 [thread overview]
Message-ID: <CAKBXKmBAM4Y=ban8g+x05qEeHCF2M+g4c3eU97zvG3JT7NE2AA@mail.gmail.com> (raw)
In-Reply-To: <CAKBXKmCvwU3oF9dTLyApHhjLd3pSX6pUydW-CR3cFkCOECtXWA@mail.gmail.com>
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 <dlrmsghd@gmail.com>:
> 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/ixgbe_ptp.c#L640
> says that
>
> 640 <http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c#L640>* default:
> *641 <http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c#L641>* /**642 <http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c#L642>* * register RXMTRL must be set in order to do V1 packets,*643 <http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c#L643>* * therefore it is not possible to time stamp both V1 Sync and*644 <http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c#L644> * * Delay_Req messages and hardware does not support**
> 645 <http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c#L645> * timestamping all packets => return error
> *646 <http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c#L646>* */*647 <http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c#L647> config <http://lxr.free-electrons.com/ident?i=config>*->rx_filter = HWTSTAMP_FILTER_NONE;
> *648 <http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c#L648>* return -*ERANGE <http://lxr.free-electrons.com/ident?i=ERANGE>*;
> *649 <http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c#L649>* }*
>
>
> Keunhong.
>
> 2015-06-01 11:38 GMT+09:00 科来 谭春海 <chunhai.tan@colasoft.com.cn>:
>
>> 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=ce7153dbc6a13c18bf8033af08c1249527754168
>> <http://www.wand.net.nz/trac/libtrace/browser/Intel%20DPDK%20Patches/hardware_timestamp.patch?rev=ce7153dbc6a13c18bf8033af08c1249527754168>),
>> 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
>>
>>
>>
>>
>>
>>
>
next prev parent reply other threads:[~2015-06-01 3:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-01 2:38 科来 谭春海
2015-06-01 3:48 ` Keunhong Lee
2015-06-01 3:51 ` Keunhong Lee [this message]
2015-06-01 6:39 ` [dpdk-dev] 答复: " 科来 谭春海
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKBXKmBAM4Y=ban8g+x05qEeHCF2M+g4c3eU97zvG3JT7NE2AA@mail.gmail.com' \
--to=dlrmsghd@gmail.com \
--cc=chunhai.tan@colasoft.com.cn \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).