From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dub0-omc4-s20.dub0.hotmail.com (dub0-omc4-s20.dub0.hotmail.com [157.55.2.95]) by dpdk.org (Postfix) with ESMTP id 7380768E8 for ; Fri, 14 Feb 2014 11:26:53 +0100 (CET) Received: from DUB111-W19 ([157.55.2.73]) by dub0-omc4-s20.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 14 Feb 2014 02:28:16 -0800 X-TMN: [v8d1UPBXChT+nrBUtBLBo37PyVqcGc/CZcQaem0nd3Q=] X-Originating-Email: [mauroannarumma@hotmail.it] Message-ID: From: Mauro Annarumma To: "dev@dpdk.org" Date: Fri, 14 Feb 2014 11:28:17 +0100 Importance: Normal In-Reply-To: <59AF69C657FD0841A61C55336867B5B01A99BD8C@IRSMSX103.ger.corp.intel.com> References: <52D7806A.2070705@polito.it>, , , , <201402061747.22088.thomas.monjalon@6wind.com>, , <59AF69C657FD0841A61C55336867B5B01A99BD8C@IRSMSX103.ger.corp.intel.com> MIME-Version: 1.0 X-OriginalArrivalTime: 14 Feb 2014 10:28:16.0986 (UTC) FILETIME=[794753A0:01CF296F] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Is Flow Director supported on the x540 chipset? 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: Fri, 14 Feb 2014 10:26:53 -0000 =0A= =0A= =0A= Hi Bruce=2C your answer was really helpful. The application didn't work due to this lin= e=20 "if (hw->mac.type !=3D ixgbe_mac_82599EB || hw->mac.type !=3Dixgbe_mac_X540= )".=20 I changed the || whit a && and now the application (with the FDIR mode acti= ve) runs on both X540 and 82599.=20 Now I'm testing if the FDIR really works properly also on the X540 =3B if i= t works=2C I will provide a patch. Best Regards=2C=20 Mauro > From: bruce.richardson@intel.com > To: mauroannarumma@hotmail.it=3B dev@dpdk.org > Subject: RE: [dpdk-dev] Is Flow Director supported on the x540 chipset? > Date: Thu=2C 13 Feb 2014 10:28:37 +0000 >=20 > Hi=2C >=20 > can you please give a few more details about your setup? What version of = the Intel DPDK are you using? I tried using the command you give below on m= y system with 82599-based NICs and testpmd starts up without any issues. >=20 > Here's the (clipped for brevity) output that I get: >=20 > $ sudo ./testpmd -c 0x0f -n 2 -m 512 -- -i --portmask=3D0x3 --nb-cores=3D= 2 --pkt-filter-mode=3Dperfect --rxq=3D2 --txq=3D2 > EAL: No free hugepages reported in hugepages-2048kB > EAL: Detected lcore 0 as core 0 on socket 0 > EAL: Detected lcore 1 as core 1 on socket 0 > ... ... > Interactive-mode selected > previous number of forwarding ports 4 - changed to number of configured p= orts 2 > Configuring Port 0 (socket 1) > Configuring Port 1 (socket 1) > Configuring Port 2 (socket 1) > Configuring Port 3 (socket 1) > Checking link statuses... > Port 0 Link Up - speed 10000 Mbps - full-duplex > Port 1 Link Up - speed 10000 Mbps - full-duplex > Port 2 Link Up - speed 10000 Mbps - full-duplex > Port 3 Link Up - speed 10000 Mbps - full-duplex > Done > testpmd> >=20 >=20 > Perhaps you could also try turning on some of the IXGBE debug options in = your compile time config e.g. defconfig_x86_64-default-linuxapp-gcc. Settin= g "CONFIG_RTE_LIBRTE_IXGBE_DEBUG_INIT" and "CONFIG_RTE_LIBRTE_IXGBE_DEBUG_D= RIVER" to "y" might provide some useful output. >=20 > Regards=2C > /Bruce >=20 > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Mauro > > Annarumma > > Sent: Thursday=2C February 13=2C 2014 9:45 AM > > To: dev@dpdk.org > > Subject: Re: [dpdk-dev] Is Flow Director supported on the x540 chipset? > >=20 > > Hi=2C > > I'm trying to use Flow Director. Initially I used a X540 chipset and I = was not > > able to make it work=3B I thought it was a compatibility problem with t= he > > controller. Maxime suggested to change some lines in the ixgbe_fdir.c f= ile=2C I > > changed these lines but it > > did not give the expected results=3B > > At this point I was sure that the problem was the incompatibility be= tween > > the DPDK and the X540 chipset therefore I retrived a NIC whit a 82599 > > chipset and I repeated my attempts=2C unfortunately I got the some > > problems. > >=20 > > In order to be more clear I explain my attempts: > > I try to run the test-pmd app with the command-line option > > "--pkt-filter-mode=3Dperfect"=2C the app doesn't start (the > > rte_eth_dev_start > > function return an error) otherwise without the --pkt-filter-mode > > command-line option the application run > > normally. > >=20 > > This is the command line I use to start the program: > >=20 > > frog@frog:~/dpdk-1.5.2r1/app/test-pmd$ > > sudo ./testpmd -c 0x0f -n 2 -m 512 -- -i --portmask=3D0x3 --nb-cores= =3D2 --pkt- > > filter-mode=3Dperfect --rxq=3D2 --txq=3D2 > >=20 > >=20 > > and the relative output: > >=20 > > ... > > Interactive-mode selected > > Configuring Port 0 (socket -1) > > Fail to start port 0 (ret=3D-5)* > > Configuring Port 1 (socket -1) > > Fail to start port 1 (ret=3D-5)* > > Please stop the ports first > > Done > > testpmd> > >=20 > > *ret=3D-5 is the result of the rte_eth_dev_start function > >=20 > > I guess someone was able to use FDIR=2C at least in the testpmd applica= tion. > > What am I doing wrong? > > Best regards > >=20 > > > From: thomas.monjalon@6wind.com > > > To: fulvio.risso@polito.it > > > Date: Thu=2C 6 Feb 2014 17:47:21 +0100 > > > CC: dev@dpdk.org > > > Subject: Re: [dpdk-dev] Is Flow Director supported on the x540 chipse= t? > > > > > > Hi Fulvio=2C > > > > > > 17/01/2014 12:24=2C Maxime Leroy: > > > > On Thu=2C Jan 16=2C 2014=2C Fulvio Risso w= rote: > > > > > by digging into the DPDK code it seems to me that FDIR is not > > supported > > > > > on the x540 chipset=2C while it is supported on 82599. > > > [...] > > > > > Is there any plan to support FDIR to the x540 chipset? > > > > > > > [...] > > > > I think you only need to change few lines in > > > > lib/librte_pmd_ixgbe/ixgbe_fdir.c: > > > > > > > > - if (hw->mac.type !=3D ixgbe_mac_82599EB) > > > > + if (hw->mac.type !=3D ixgbe_mac_82599EB || hw->mac.type !=3D > > > > ixgbe_mac_X540) > > > > > > > > Let me know if you can test it and please provide a patch if it wor= ks. > > > > > > Have you tried to patch and test flow director for X540 ? > > > > > > thanks > > > -- > > > Thomas > >=20 =0A= =