From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dub0-omc4-s10.dub0.hotmail.com (dub0-omc4-s10.dub0.hotmail.com [157.55.2.85]) by dpdk.org (Postfix) with ESMTP id 8248E684A for ; Thu, 13 Feb 2014 10:43:16 +0100 (CET) Received: from DUB111-W96 ([157.55.2.72]) by dub0-omc4-s10.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 13 Feb 2014 01:44:40 -0800 X-TMN: [T+zPHuoRfX3kuWvGnJptCXC7LHP7o6HZgCH5e2FVQ20=] X-Originating-Email: [mauroannarumma@hotmail.it] Message-ID: From: Mauro Annarumma To: "dev@dpdk.org" Date: Thu, 13 Feb 2014 10:44:40 +0100 Importance: Normal In-Reply-To: <201402061747.22088.thomas.monjalon@6wind.com> References: <52D7806A.2070705@polito.it>, , <201402061747.22088.thomas.monjalon@6wind.com> MIME-Version: 1.0 X-OriginalArrivalTime: 13 Feb 2014 09:44:40.0239 (UTC) FILETIME=[3729ABF0:01CF28A0] 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: Thu, 13 Feb 2014 09:43:16 -0000 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 fi= le=2C I changed these lines but it=0A= did not give the expected results=3B=20 At this point I was sure that the problem was the incompatibility betwee= n the DPDK and the X540 chipset therefore I retrived a NIC whit a 82599 chi= pset 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=0A= "--pkt-filter-mode=3Dperfect"=2C the app doesn't start (the rte_eth_d= ev_start=0A= function return an error) otherwise without the --pkt-filter-mode com= mand-line option the application run=0A= normally.=20 This is the command line I use to start the program: frog@frog:~/dpdk-1.5.2r1/app/test-pmd$=0A= sudo ./testpmd -c 0x0f -n 2 -m 512 -- -i --portmask=3D0x3 --nb-cores=3D2 = =0A= --pkt-filter-mode=3Dperfect --rxq=3D2 --txq=3D2 and the relative output: ... 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 I guess someone was able to use FDIR=2C at least in the testpmd application= . What am I doing wrong? Best regards > 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 chipset? >=20 > Hi Fulvio=2C >=20 > 17/01/2014 12:24=2C Maxime Leroy: > > On Thu=2C Jan 16=2C 2014=2C Fulvio Risso wrote= : > > > by digging into the DPDK code it seems to me that FDIR is not support= ed > > > on the x540 chipset=2C while it is supported on 82599. > [...] > > > Is there any plan to support FDIR to the x540 chipset? > >=20 > [...] > > I think you only need to change few lines in > > lib/librte_pmd_ixgbe/ixgbe_fdir.c: > >=20 > > - if (hw->mac.type !=3D ixgbe_mac_82599EB) > > + if (hw->mac.type !=3D ixgbe_mac_82599EB || hw->mac.type !=3D > > ixgbe_mac_X540) > >=20 > > Let me know if you can test it and please provide a patch if it works. >=20 > Have you tried to patch and test flow director for X540 ? >=20 > thanks > --=20 > Thomas =