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 E42C44380D; Wed, 3 Jan 2024 22:52:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6041C402BC; Wed, 3 Jan 2024 22:52:19 +0100 (CET) Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) by mails.dpdk.org (Postfix) with ESMTP id 40B9A4013F for ; Wed, 3 Jan 2024 22:52:18 +0100 (CET) Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-6dc64318b29so1615883a34.1 for ; Wed, 03 Jan 2024 13:52:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uconn-edu.20230601.gappssmtp.com; s=20230601; t=1704318737; x=1704923537; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QLt6XDbhQPzYFQmjPJeUwtCIP/TXZVSCKFARKbtCwzA=; b=Hgit9Efv9lvizd6G0d1oC0iT2LVpxAMCZmqAdfkMJOymme/5BFRbUAMhAADzs90duL W8aBjIpv6oikQCcB7rljsNaL5XJbv/cbhNuk7GMAo8yd+/dZPLqgemUOY9ts3Ifg4hDp gwygVWa04PmfikdmHiGFiVwHsLE7p8YVk5uMQnqPJdRsQF34fJouSdW1jGzAhotrVCql SkMkBwZK9TcfWoiV6wnr/zUQczyCfnE2Gl3Ac0j6wvCZzpUFl/NimLFIrD29qmMLRZRZ WBscAYXSoxq4LS5Ee6X6qphsUTRmkn3Xg1GjNa9pjwkIZj0tAZ6JwuBCeEPp6cxnxnXT KFfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704318737; x=1704923537; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QLt6XDbhQPzYFQmjPJeUwtCIP/TXZVSCKFARKbtCwzA=; b=GHzn0JGEWowwkOSfp99iI+K54nGnVPikWrXqOkNgo8iDmMVI3XhOuClZIzeEgctvIY 7RNU4TA8kfyiS4ZRyeHjAxUk8pN3Oa7+dh1v2PRnm3CqMYno1V7wXc+wM1WUXVKyO3Rh A3XY5vrav+hRpiEpqp3OuoAop07hDlsqLP2vurZfYxpIi2E/RQxCFoBqqW20WAbW4q8v pfQIbEIgwYbRUIHR97baZWGKRE/cZ6l74BIIGv8NkiAKrYDFrbil+4s9nTmZNTagvfPh TyDmD2lyUgtg1U+FWvSy1NuU1SzoBiT1dULCm+rM8dipJIMEt0klJc23bLCnMjkqjNeN hACA== X-Gm-Message-State: AOJu0YxydgeaqPAxC7B4oYaOHiQZSCYs4nz+MxYm5FuU0DjJJVssfmaS WQzuovvAp+uds565E/gHgDE85g1h3pKbHw== X-Google-Smtp-Source: AGHT+IF8Rm3/9yIqqb6KFrqJ2IMy89lJkaJpM63K+WEOQa1oFN0MTQD/NZAJwF+cUo4ieDXPGX0AWQ== X-Received: by 2002:a05:6830:1d0:b0:6dc:654:b360 with SMTP id r16-20020a05683001d000b006dc0654b360mr9048137ota.25.1704318737358; Wed, 03 Jan 2024 13:52:17 -0800 (PST) Received: from localhost.localdomain ([137.99.252.108]) by smtp.gmail.com with ESMTPSA id j4-20020ac806c4000000b00427f02d072bsm7703734qth.95.2024.01.03.13.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 13:52:16 -0800 (PST) From: Chuanyu Xue To: simei.su@intel.com Cc: beilei.xing@intel.com, chuanyu.xue@uconn.edu, dev@dpdk.org, qi.z.zhang@intel.com, wenzhuo.lu@intel.com Subject: RE: [PATCH] net/e1000: support launchtime feature Date: Wed, 3 Jan 2024 16:52:15 -0500 Message-Id: <20240103215215.19140-1-chuanyu.xue@uconn.edu> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi, Simei Thank you for your guidance on how to test this feature. >> Following is how I try to test with testpmd. Please let me know if I did >> something wrong. >> >> sudo ./dpdk-testpmd -- -i --forward-mode=txonly >> >> testpmd> port stop 0 >> testpmd> set burst 1 >> testpmd> set txtimes 100000000,0 >> testpmd> port config 0 tx_offload send_on_timestamp on >> testpmd> port start 0 >> testpmd> start > >When testing launch time feature with igc driver, firstly, some code change >made in txonly.c: >pkt->ol_flags |= RTE_MBUF_F_TX_IEEE1588_TMST; (this flag should be added to >forward PTP packet with hardware Tx timestamp) > ># ./build/app/dpdk-testpmd -a 0000:81:00.0 -c f -n 4 -- -i >--tx-offloads=0x200000 >testpmd> set burst 1 >testpmd> set fwd txonly >testpmd> set txtimes 1000000,0 >testpmd> start > >On receiver side (with tcpdump): ># tcpdump -Q in -ttt -ni ens25f3 --time-stamp-precision=nano -j >adapter_unsynced -c 32 Now dpdk-testpmd works well with this patch after I add the flag in txonly.c as you mentioned. It is worth noting that I also added `rte_eth_timesync_enable(pi);` in the function `tx_only_begin` in txonly.c to enable the PTP clock. Otherwise, all Tx packets scheduled are dropped. Following are the measurement results on the listener. I use the same configuration as you mentioned for dpdk-testpmd on the talker. ➜ ~ sudo tcpdump -Q in -ttt -ni enp1s0 --time-stamp-precision=nano -j adapter_unsynced -c 32 tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on enp1s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes 00:00:00.000000000 IP 198.18.0.1.9 > 198.18.0.2.9: UDP, length 22 00:00:00.001000008 IP 198.18.0.1.9 > 198.18.0.2.9: UDP, length 22 00:00:00.001000000 IP 198.18.0.1.9 > 198.18.0.2.9: UDP, length 22 00:00:00.001000000 IP 198.18.0.1.9 > 198.18.0.2.9: UDP, length 22 00:00:00.001000000 IP 198.18.0.1.9 > 198.18.0.2.9: UDP, length 22 .... 00:00:00.001000000 IP 198.18.0.1.9 > 198.18.0.2.9: UDP, length 22 00:00:00.001000000 IP 198.18.0.1.9 > 198.18.0.2.9: UDP, length 22 00:00:00.001000000 IP 198.18.0.1.9 > 198.18.0.2.9: UDP, length 22 00:00:00.001000008 IP 198.18.0.1.9 > 198.18.0.2.9: UDP, length 22 00:00:00.001000000 IP 198.18.0.1.9 > 198.18.0.2.9: UDP, length 22 32 packets captured 118 packets received by filter 0 packets dropped by kernel Above test is based on the patch v2 with Intel i210 NIC. - Chuanyu