From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 55CCDA0561 for ; Wed, 3 Mar 2021 12:24:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CBFD340683; Wed, 3 Mar 2021 12:24:11 +0100 (CET) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by mails.dpdk.org (Postfix) with ESMTP id D670C4067B for ; Wed, 3 Mar 2021 12:24:09 +0100 (CET) Received: by mail-lf1-f52.google.com with SMTP id f1so36531322lfu.3 for ; Wed, 03 Mar 2021 03:24:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y1AdSayODJbVW006umuBbZukCqYJQB0hyBQO3h/03+E=; b=mf6U8sLQuY/CnQe6Jd2Y5ep1ELQabBpxDIfpqF9ZOLyYlUcD+ru/98eEQ0Bsyk4Zb3 AnMNjgiTtirlvBE9ciCTr/swcNSecH49Wpfj5FZIFsVPhIGdx0F6Q72nNqXlVu7GDNht 4wuV1e+vFIOxm2gfTcnNwqpw6s2xtH1D+jIFbGMBnYYd4dYaRkTe6FRcUb4xcAE5NOiv Lw00a8zABfdNz6cZq6JVK3pEHT3M51BMsU6SMoskH6aGowvT43FPMBZk3Zu51fSbFePa +1ENHoMjnqHXmFQFxxWbkHf6oz/B4AGzmN+UhAm9VXbjspSuFoBdvxWVRLJv3eQLX5Ve zXNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y1AdSayODJbVW006umuBbZukCqYJQB0hyBQO3h/03+E=; b=eN3H/cIXbfurM+R3b6K8VMYx2Te+91x4kq1sZvHHasK9zaZIfvhT3Qcl9HwDaIwfPn k+eL2BLZIR35s6/s0asXDG8biykuz1ckLKa9572Cw3cgoZc/KanyiPpS+pG0Rk13R0yA 4O1oBN2cbixIrk+hH9ZetKyd7ESXTHL9yt3Ck8EtmpvVWk6o+OJ7l3i8KcrcJ/BBnL9p /hikIhL0ehjGBKKzdxUINyA2wmDOsQLdYoAyRqKWd+o2Ef+A3RJ/ZwqhpFRHNzd4eHAW SjAV7el4HezkPNo3b7TbA1vGoqqn+/ctIrOEt215l9CCIEepx1mE7b4/ywJGgm4DKffu O/0Q== X-Gm-Message-State: AOAM530TOPEzVt47e0JUOBb2pkw6Kv+HTpdhvbYDj+xa2W/kb5ZpCLzl NG+xHI9kfOOYotkP6qO6nlM8oONPM2/chb1vjPoBr8IUv5t/aVZ1 X-Google-Smtp-Source: ABdhPJzQUoER6gP+9DWmmYybtAwVDSyJeUqONX4Pr8xj+3QRowqy9Mm+at2aPEWfNYuBv2SgUfyY5UTODVQgaUpfo1M= X-Received: by 2002:a05:6512:12c3:: with SMTP id p3mr9169319lfg.97.1614770649307; Wed, 03 Mar 2021 03:24:09 -0800 (PST) MIME-Version: 1.0 References: <74675d87-d8c4-47ff-d80a-ff3c4cb0b5b3@filipjaniszewski.com> In-Reply-To: <74675d87-d8c4-47ff-d80a-ff3c4cb0b5b3@filipjaniszewski.com> From: Pravein GK Date: Wed, 3 Mar 2021 16:53:33 +0530 Message-ID: To: Filip Janiszewski Cc: "users@dpdk.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-users] Intel XL710, timestamping X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Intel XL710 supports HW timestamping, however, it would work only on PTP packets and not on normal packets. Few things I would suggest : 1) Check if you enabled "CONFIG_RTE_LIBRTE_IEEE1588=y" in your config/common_base when building dpdk. 2) Checkout https://github.com/praveingk/DPTP/tree/master/dptpclient/src/dptpclient.c on how to enable the timesync. 3) Craft the packets using similar header as https://github.com/praveingk/DPTP/blob/master/dptpclient/src/dptp.h I had used the same NIC, and it should work. Thanks, Pravein On Wed, Mar 3, 2021 at 4:07 PM Filip Janiszewski < contact@filipjaniszewski.com> wrote: > Hi, > > Is there a way to enable HW timestamps with this Intel card using DPDK > by means of the IEEE1588 set of function API? (Dpdk 20.08). > > In my understanding the nic should support hardware time-stamping of RX > packets if: "A separate PTP application would be required that > communicates directly with the controller on the XL710" cit from > > https://community.intel.com/t5/Ethernet-Products/Does-intel-XL710-QDA2-support-HW-timestamping/m-p/563064 > > Is there a way to make this work in DPDK? I'm honestly not sure what > does it mean exactly "communicates directly with the controller", but I > assume it has something to do with rte_eth_timesync_* ? > > I've actually tried already a test, I've executed > rte_eth_timesync_enable/rte_eth_timesync_write_time and then verified > with rte_eth_timesync_read_rx_timestamp if the timestamp is stored, and > it seems it's there - but the packets are all coming with 0 in the > timestamp field (mbuf).. > > Thanks > > -- > BR, Filip > +48 666 369 823 >