DPDK patches and discussions
 help / color / mirror / Atom feed
From: Dor Green <dorgreen1@gmail.com>
To: Nicolas Pernas Maradei <nicolas.pernas.maradei@emutex.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Saving packet timestamp when reading from pcap
Date: Tue, 21 Apr 2015 15:02:40 +0300	[thread overview]
Message-ID: <CAKedurwNcdm4Vv3tgPLJN24Fg62GuNkJKOJvZpOS9HtHoWnGyw@mail.gmail.com> (raw)
In-Reply-To: <55362B8C.3030604@emutex.com>

Aside from testing, this also has the benefit of being able to run a
capture file through your application without having to send it
through another NIC (if you have only one, that'd be impossible, for
example). I can see this being needed if you had, for instance, a DPI
app in DPDK and wanted to run older recorded data through it (say
because your server was down for a couple of days).

As for NIC HW timestamps, DPDK does not supply access to those at the
moment (I think). That's why I suggested that if a timestamp field was
added to the mbuf struct, it could be used if/when HW timestamps are
supported it DPDK.

On Tue, Apr 21, 2015 at 1:50 PM, Nicolas Pernas Maradei
<nicolas.pernas.maradei@emutex.com> wrote:
> Hi Dor,
>
> What you are looking for seems straight forward to implement and it should
> not really affect the driver's performance at all. Even adding the full
> timestamp (seconds plus microseconds). However, I don't see too much people
> looking for that feature to make it to mainline. I could be wrong and it's
> not up to me to decide but I believe it wouldn't add too much value to the
> driver itself. It would make your testing easier but that's all. Maybe
> encapsulating the feature within #defines?
>
> If you were to read the packets from a pcap file and send them through a
> real NIC could you use the NIC's HW timestamp if supported? I'm not entirely
> sure about it (maybe someone else could provide more info about it) but it
> could solve your problem in a cleaner way.
>
> Nico.
>

      reply	other threads:[~2015-04-21 12:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-20 16:06 Dor Green
2015-04-21 10:50 ` Nicolas Pernas Maradei
2015-04-21 12:02   ` Dor Green [this message]

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=CAKedurwNcdm4Vv3tgPLJN24Fg62GuNkJKOJvZpOS9HtHoWnGyw@mail.gmail.com \
    --to=dorgreen1@gmail.com \
    --cc=dev@dpdk.org \
    --cc=nicolas.pernas.maradei@emutex.com \
    /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).