From: Stefan Binna Subject: Re: ieee1588fwd.c implementation Date: Thu, 13 Aug 2015 13:27:00 +0200 Message-ID: <55CC7F04.5040300@salzburgresearch.at> References: <55CB6DC8.4090607@salzburgresearch.at> <55CB7745.6040808@salzburgresearch.at> <55CB833A.8090901@salzburgresearch.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: "Mcnamara, John" , "dev@dpdk.org" Return-path: Received: from mx0.salzburgresearch.at (mx0.salzburgresearch.at [78.104.175.164]) by dpdk.org (Postfix) with ESMTP id A93088D8D for ; Thu, 13 Aug 2015 13:27:02 +0200 (CEST) In-Reply-To: <55CB833A.8090901@salzburgresearch.at> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi John, I got PTP working and was able to transmit a valid PTPv2 packet over the DPDK network card. Every time a PTP packet arrives I get following message in the testpmd application: Port 0 Received PTP packet not filtered by hardware However, the hardware does not change the timestamp, when I check the received packet. How can I enable this feature? Thanks very much. Kind regards, Stefan. Am 12.08.2015 um 19:32 schrieb Stefan Binna: > Hi John, > > thanks very much for the big help :) > > I'll try it tomorrow and if I run into any problems I'll contact you > again. > > Best regards, > Stefan. > > Am 12.08.2015 um 19:09 schrieb Mcnamara, John: >>> -----Original Message----- >>> From: Stefan Binna [mailto:stefan.binna@salzburgresearch.at] >>> Sent: Wednesday, August 12, 2015 5:42 PM >>> To: Mcnamara, John; dev@dpdk.org >>> Subject: Re: [dpdk-dev] ieee1588fwd.c implementation >>> >>> Hi John, >>> >>> >>> I don't understand how to implement ieee1588fwd. Is there any manual, >>> sample application or similar available? >>> Or do I have to modify the testpmd.c file by myself? I don't really >>> know >>> how to implement the code available in ieee1588fwd.c. >> Hi Stefan, >> >> The steps you did are correct: >> >> * Enable CONFIG_RTE_LIBRTE_IEEE1588=y in the config. >> * Compile the testpmd application (this happens as part of the >> default compile): >> >> make -j T=x86_64-native-linuxapp-gcc install >> >> Then you can run testpmd with ieee1588 forwarding on as follows (or >> similar. Adjust coremask to suit): >> >> sudo ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 \ >> -- --port-topology=chained --txqflags=0 >> --forward-mode=ieee1588 >> >> Note: >> The --txqflags=0 is required to ensure ieee1588 support in the >> "full featured" TX path. >> >> If you send the correct l2 ptp packets they should generate a text >> output from testpmd >> >> Add '-i' after '--' to enter interactive mode in testpmd. >> >> You can also set IEEE1588 mode from within testpmd as follows: >> >> testpmd> set fwd ieee1588 >> Set ieee1588 packet forwarding mode >> >> >> Note: if you don't see the ieee1588 mode it usually means that >> CONFIG_RTE_LIBRTE_IEEE1588 wasn't configured. >> >> Best of luck, >> >> John. >