DPDK usage discussions
 help / color / mirror / Atom feed
From: Philippe CORNET <p.cornet@deltatec.be>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] PTP client over DPDK
Date: Thu, 5 Sep 2019 14:23:13 +0000	[thread overview]
Message-ID: <399f94faf87f41f59a9786aa245e94b0@deltatec.be> (raw)

Hi all,

I am currently wondering what is the best/cheapest way to implement a PTP client over DPDK:


1.       Implementing a custom PTP client over DPDK.
or

2.       Using LinuxPTP (http://linuxptp.sourceforge.net/) through KNI interface.

For solution 1, we can start from the PTP sample program, but it certainly requires quite some time to develop a smart and accurate client.

For solution 2, I have a proof-of-concept which works quite well, but it requires these modifications:

-          To build KNI with flag CONFIG_RTE_KNI_PREEMPT_DEFAULT=n to reduce latency of KNI

-          To patch kni_net.c to add a software timestamping of the skb (skb_tx_timestamp(skb)) in tx routine.

-          To patch LinuxPTP to avoid it checking the software-transmit time stamping capability of the KNI driver.

Solution 2 is tempting because it almost costs nothing in term of development time, but I am not sure that it is the good way to proceed...

Does anyone has strong arguments for or against this second solution?

Thanks,
Philippe



             reply	other threads:[~2019-09-05 14:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-05 14:23 Philippe CORNET [this message]
2019-11-07  8:38 Marcin Kulawczuk

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=399f94faf87f41f59a9786aa245e94b0@deltatec.be \
    --to=p.cornet@deltatec.be \
    --cc=users@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).