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 2C8C5A04B5 for ; Wed, 13 Jan 2021 11:42:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8C877140D11; Wed, 13 Jan 2021 11:42:22 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id B1E7A140D07 for ; Wed, 13 Jan 2021 11:42:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610534540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=Mdnw5z5WzlxKwbJKYPwbpTvSmbazZFQh1O0LWBo0FD0=; b=E+3BTV/myQTtKaW+fDaWVgazn4E9Re/oFyVMPVHT3LRs+cNXt30P5pt6jWBvFmy6FOOttE OYCbGdjYuHKKXHgTxnyU6RBBKXfSBDK092MinjvWSJiXL4QGACNzseQ3ABOYWC80sVaLK3 /iuvT+N3fKfCzMBoUxPtILWJE5nyhQ8= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-11-KDwr34L4Ma-zUmyMmA8AQA-1; Wed, 13 Jan 2021 05:42:17 -0500 X-MC-Unique: KDwr34L4Ma-zUmyMmA8AQA-1 Received: by mail-lf1-f72.google.com with SMTP id 202so504975lfk.5 for ; Wed, 13 Jan 2021 02:42:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Mdnw5z5WzlxKwbJKYPwbpTvSmbazZFQh1O0LWBo0FD0=; b=OIAMEwALCkAlfG3qDtD5hA+jnmQA4k7g50pWlGjUmtH5p0USlsjeUW0dT1cB+Jrd+u j2tZBpDNQlKpp5HtTEEKLmifKj4yII7Qnb15ehG6MNqZsn0jbhMmKHvUjOsqvbJp+mYc RFuRtZVLB0+aqjkg+oPOsnRsKMVJV1czp7gDbxnQS5nyBU8mFHFbGyZOFFQE4+fSnSWw +uvYJnH/Kd92xJMaqvONkvp+Kscca6ybqIjHaxp0misXK+BIYY0VhhHwoMW7t1Tgagda tmrui/QMwGq1/b/PzErC54r4cs0jocaNGCQWmNvar3x77xuwY6KrhMswxRXzHap4g/GG Jnug== X-Gm-Message-State: AOAM532NK+ANisT07/1KeeTDFtrlgF1oMyQTMpM/2E0nlVoH65kAsHW5 v1GP19axdcl0Tdz7Oqux1qrtGkUOfO0T86l1jdj6EozM6GA8TPHx9ibgDEtzc/kq32+OCf+OWm3 Tl88QQhzxFWpKfX7Zo9l/jA== X-Received: by 2002:ac2:5c1d:: with SMTP id r29mr594156lfp.204.1610534535555; Wed, 13 Jan 2021 02:42:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxW+6WbXsPChugJ2EH8tvUeaOFfmg8iFEl3HezgOfHWHSTNSf0BhZ1INKFBepAc4dLxwxvK+xUryZ4daJHNQlM= X-Received: by 2002:ac2:5c1d:: with SMTP id r29mr594145lfp.204.1610534535238; Wed, 13 Jan 2021 02:42:15 -0800 (PST) MIME-Version: 1.0 From: Karthik Sundaravel Date: Wed, 13 Jan 2021 16:12:04 +0530 Message-ID: To: users@dpdk.org Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ksundara@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-users] PTP Hardware 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" NICs: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ (rev 01) Kernel: 3.10.0-1062.18.1.el7.x86_64 DPDK Version: dpdk-20.11-rc5 My setup looks like below. 1st Machine 2nd Machine +-------------------------+ +------+ +-------------------------+ | +---------+ +-------+| | | +-------+ | | | tcpdump |---| NIC A |-------| ------|NIC A |---------+ | | +---------+ +-------+| | | +-------+ | | | | | | | +----|----+ | | | |Switch| | | Testpmd | | | - | | | | +---------+ | | +---------+ +-------+| | | +-------+ | | | | ptp4l |---| NIC B |-------| ------| NIC B |---------+ | | +---------+ +-------+| | | +-------+ | +-------------------------+ +------+ +-------------------------+ I use ptp4l to generate the PTP sync messages using the command ptp4l -i eno4 -2 -m -H The Testpmd is compiled using meson -Dc_args="-DRTE_LIBRTE_IEEE1588" build and run with commands ./app/dpdk-testpmd -l 1,2,3 -- -i --nb-cores=2 --coremask=0xc --forward-mode=ieee1588 testpmd> start In testpmd I have modified the app/test-pmd/ieee1588fwd.c, such that the PTP SYNC messages are forwarded to the NIC A of the first machine by hardcoding the destination mac address. In NIC A of the first machine. I dump the packets received from testpmd, where I do not find the timestamps added. The tcpdump logs output 13:57:59.793588 e4:43:4b:5e:27:83 (oui Unknown) > e4:43:4b:5e:1c:22 (oui Unknown), ethertype Unknown (0x88f7), length 60: 0x0000: 0002 002c 0000 0200 0000 0000 0000 0000 ...,............ 0x0010: 0000 0000 e443 4bff fe5e 1c23 0001 2a14 .....CK..^.#..*. 0x0020: 0000 0000 0000 0000 0000 0000 0000 .............. 13:57:59.793609 e4:43:4b:5e:27:82 (oui Unknown) > e4:43:4b:5e:1c:22 (oui Unknown), ethertype Unknown (0x88f7), length 60: 0x0000: 0002 002c 0000 0200 0000 0000 0000 0000 ...,............ 0x0010: 0000 0000 e443 4bff fe5e 1c23 0001 2a14 .....CK..^.#..*. 0x0020: 0000 0000 0000 0000 0000 0000 0000 ... I would like to understand why I am not seeing the PTP sync packets timestamped by hardware. Is there anything I need to change in my setup to get the hardware timestamping working ? Also the PTP sync packet generated by ptp4l is also not timestamped, while the PTP follow up message is timestamped. However the testpmd handles only PTP sync packets