DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Xu, HailinX" <hailinx.xu@intel.com>
To: "Burakov, Anatoly" <anatoly.burakov@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	"Medvedkin, Vladimir" <vladimir.medvedkin@intel.com>
Subject: RE: [PATCH v2 1/3] net/ixgbe: initialize PTP to system time
Date: Tue, 26 Nov 2024 08:30:02 +0000	[thread overview]
Message-ID: <MW4PR11MB5912F6BFBD976993F74537209F2F2@MW4PR11MB5912.namprd11.prod.outlook.com> (raw)
In-Reply-To: <672ea483818966221e348a09531a9975e2b83b38.1732534388.git.anatoly.burakov@intel.com>

> -----Original Message-----
> From: Anatoly Burakov <anatoly.burakov@intel.com>
> Sent: Monday, November 25, 2024 7:33 PM
> To: dev@dpdk.org; Medvedkin, Vladimir <vladimir.medvedkin@intel.com>
> Subject: [PATCH v2 1/3] net/ixgbe: initialize PTP to system time
> 
> Currently, ixgbe driver initializes PTP timestamp to 0. This is different from
> what kernel driver does (which initializes it to system time).
> 
> Align the DPDK driver to kernel driver by setting PTP timestamp to system time
> when enabling PTP.
> 
> Note that ixgbe driver always uses zero-based timestamps for PTP, so we
> would only ever update the internal timecounter and not the actual NIC
> registers.
> 
> Implementation note: in order to get access to clock_gettime on MinGW, we
> have to use rte_os_shim.h header, which provides a wrapper around that
> function. However, what it *also* provides is wrapper macros around various
> other OS-related functions such as read(). Due to one of the mailbox ops in
> base code being called "read", MinGW will misinterpret a call into that op as an
> attempt to call read() the OS function, and produce a compile error. This is
> being worked around by using parentheses around access to the read op.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> ---
Tested-by: Hailin Xu <hailinx.xu@intel.com>

  parent reply	other threads:[~2024-11-26  8:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-22 15:18 [PATCH v1 " Anatoly Burakov
2024-11-22 15:18 ` [PATCH v1 2/3] net/i40e: " Anatoly Burakov
2024-11-22 15:18 ` [PATCH v1 3/3] net/e1000: " Anatoly Burakov
2024-11-25 11:33 ` [PATCH v2 1/3] net/ixgbe: " Anatoly Burakov
2024-11-25 11:33   ` [PATCH v2 2/3] net/i40e: " Anatoly Burakov
2024-11-26 15:44     ` Bruce Richardson
2024-11-25 11:33   ` [PATCH v2 3/3] net/e1000: " Anatoly Burakov
2024-11-26  8:30     ` Xu, HailinX
2024-11-26 15:44     ` Bruce Richardson
2024-11-26  8:30   ` Xu, HailinX [this message]
2024-11-26 15:43   ` [PATCH v2 1/3] net/ixgbe: " Bruce Richardson
2024-11-26 16:09   ` Bruce Richardson

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=MW4PR11MB5912F6BFBD976993F74537209F2F2@MW4PR11MB5912.namprd11.prod.outlook.com \
    --to=hailinx.xu@intel.com \
    --cc=anatoly.burakov@intel.com \
    --cc=dev@dpdk.org \
    --cc=vladimir.medvedkin@intel.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).