From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mauro Annarumma Subject: Re: Is Flow Director supported on the x540 chipset? Date: Thu, 13 Feb 2014 10:44:40 +0100 Message-ID: References: <52D7806A.2070705@polito.it>, , <201402061747.22088.thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: "dev-VfR2kkLFssw@public.gmane.org" Return-path: In-Reply-To: <201402061747.22088.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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-pdR9zngts4EAvxtiuMwx3w@public.gmane.org > To: fulvio.risso-8RLafaVCWuNeoWH0uzbU5w@public.gmane.org > Date: Thu=2C 6 Feb 2014 17:47:21 +0100 > CC: dev-VfR2kkLFssw@public.gmane.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 =