DPDK usage discussions
 help / color / mirror / Atom feed
From: "Mah, Yock Gen" <yock.gen.mah@intel.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Running PTP (Precision Time Protocol) and running DPDK app via native PMD
Date: Wed, 14 Apr 2021 03:07:34 +0000	[thread overview]
Message-ID: <MN2PR11MB420604961437FC151596788FD94E9@MN2PR11MB4206.namprd11.prod.outlook.com> (raw)

Hi All,

I would like to use PTP4L (Presicion Time Prototocol) to sync two ends clock while running DPDK application for latency information (from machine 1 to machine 2). 

My application looking like following:

Machine A - sending packet continuously, this is PTP master:
----------------------------------------------------------------------------------
sudo /data/dpdk-demo01/talker/build/talker -l 1 -n 1 -- -p 0x1 -T 0 -d  00:A0:C9:00:00:00

Machine B - receiving packet, this is PTP slave:
---------------------------------------------------------------
sudo /data/dpdk-demo01/listener/build/listener -l 2-3 -n 1 -- -p 0x1 -T 0

Questions are:
1. As we already bind the NIC via dpdk-devbind.py, how are we going to run PTP4L as background? The network interface for the NIC already disappear. 
2.  Did some study on PTP client sample app (https://github.com/DPDK/dpdk/tree/main/examples/ptpclient), but get confuse on do I need to integrate the ptpclient code into our application? If yes, then this is only for ptpclient, how about the ptp master side (my machine A is PTP master)? 


Appreciate some direction or example.

Thanks!

Regards,
Mah

                 reply	other threads:[~2021-04-23  8:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=MN2PR11MB420604961437FC151596788FD94E9@MN2PR11MB4206.namprd11.prod.outlook.com \
    --to=yock.gen.mah@intel.com \
    --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).