From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0.salzburgresearch.at (mx0.salzburgresearch.at [78.104.175.164]) by dpdk.org (Postfix) with ESMTP id 7AE518D3D for ; Wed, 12 Aug 2015 19:32:45 +0200 (CEST) X-Virus-Scanned: by Salzburg Research on mx0.salzburgresearch.at DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=salzburgresearch.at; s=srfg; t=1439400765; bh=xL75ucd9aeTZni0eNOLzyT1ne3NFEHBq5aIP75AW3Yw=; h=Subject:To:References:From:Date:In-Reply-To:From; b=cLWKBSCuBGA2ZKg74fe5HkFyCmZVj+8xtqIsbCy+eaM/YMSMCMszFHhxuAiQLk/jZ UPxVYwc545m/U1GXf+mR0Gw0cVZRONSqAU1+xr13QgxuT55qEyJJ/qLo4YBWdIAnHC Ke3yeUazxyzRIih6FfmupeLBicISzCQyLW1UZkGQ= Received: from mail01.salzburgresearch.at (mail01.salzburgresearch.at [172.16.0.31]) by mx0.salzburgresearch.at (Postfix) with ESMTPS id DAA4F200EC8; Wed, 12 Aug 2015 19:32:42 +0200 (CEST) Received: from [172.16.96.142] (anc42.salzburgresearch.at [172.16.96.142]) by mail01.salzburgresearch.at (Postfix) with ESMTPSA id BA59D5196; Wed, 12 Aug 2015 19:32:42 +0200 (CEST) To: "Mcnamara, John" , "dev@dpdk.org" References: <55CB6DC8.4090607@salzburgresearch.at> <55CB7745.6040808@salzburgresearch.at> From: Stefan Binna Message-ID: <55CB833A.8090901@salzburgresearch.at> Date: Wed, 12 Aug 2015 19:32:42 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] ieee1588fwd.c implementation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Aug 2015 17:32:45 -0000 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.