[dpdk-dev] Is Flow Director supported on the x540 chipset?
Hello Mauro, 14/02/2014 11:28, Mauro Annarumma : > Now I'm testing if the FDIR really works properly also on the X540 ; > if it works, I will provide a patch. Have you tested FDIR on X540? -- Thomas
[dpdk-dev] Is Flow Director supported on the x540 chipset?
Hi, I'm trying to use Flow Director. Initially I used a X540 chipset and I was not able to make it work; I thought it was a compatibility problem with the controller. Maxime suggested to change some lines in the ixgbe_fdir.c file, I changed these lines but it did not give the expected results; At this point I was sure that the problem was the incompatibility between the DPDK and the X540 chipset therefore I retrived a NIC whit a 82599 chipset and I repeated my attempts, unfortunately I got the some problems. 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=perfect", 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. This is the command line I use to start the program: frog at frog:~/dpdk-1.5.2r1/app/test-pmd$ sudo ./testpmd -c 0x0f -n 2 -m 512 -- -i --portmask=0x3 --nb-cores=2 --pkt-filter-mode=perfect --rxq=2 --txq=2 and the relative output: ... Interactive-mode selected Configuring Port 0 (socket -1) Fail to start port 0 (ret=-5)* Configuring Port 1 (socket -1) Fail to start port 1 (ret=-5)* Please stop the ports first Done testpmd> *ret=-5 is the result of the rte_eth_dev_start function I guess someone was able to use FDIR, at least in the testpmd application. What am I doing wrong? Best regards > From: thomas.monjalon at 6wind.com > To: fulvio.risso at polito.it > Date: Thu, 6 Feb 2014 17:47:21 +0100 > CC: dev at dpdk.org > Subject: Re: [dpdk-dev] Is Flow Director supported on the x540 chipset? > > Hi Fulvio, > > 17/01/2014 12:24, Maxime Leroy: > > On Thu, Jan 16, 2014, Fulvio Risso wrote: > > > by digging into the DPDK code it seems to me that FDIR is not supported > > > on the x540 chipset, 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 != ixgbe_mac_82599EB) > > + if (hw->mac.type != ixgbe_mac_82599EB || hw->mac.type != > > ixgbe_mac_X540) > > > > Let me know if you can test it and please provide a patch if it works. > > Have you tried to patch and test flow director for X540 ? > > thanks > -- > Thomas
[dpdk-dev] Is Flow Director supported on the x540 chipset?
Hi, 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 my system with 82599-based NICs and testpmd starts up without any issues. Here's the (clipped for brevity) output that I get: $ sudo ./testpmd -c 0x0f -n 2 -m 512 -- -i --portmask=0x3 --nb-cores=2 --pkt-filter-mode=perfect --rxq=2 --txq=2 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 ports 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 1 Mbps - full-duplex Port 1 Link Up - speed 1 Mbps - full-duplex Port 2 Link Up - speed 1 Mbps - full-duplex Port 3 Link Up - speed 1 Mbps - full-duplex Done testpmd> 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. Setting "CONFIG_RTE_LIBRTE_IXGBE_DEBUG_INIT" and "CONFIG_RTE_LIBRTE_IXGBE_DEBUG_DRIVER" to "y" might provide some useful output. Regards, /Bruce > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Mauro > Annarumma > Sent: Thursday, February 13, 2014 9:45 AM > To: dev at dpdk.org > Subject: Re: [dpdk-dev] Is Flow Director supported on the x540 chipset? > > Hi, > I'm trying to use Flow Director. Initially I used a X540 chipset and I was not > able to make it work; I thought it was a compatibility problem with the > controller. Maxime suggested to change some lines in the ixgbe_fdir.c file, I > changed these lines but it > did not give the expected results; >At this point I was sure that the problem was the incompatibility between > the DPDK and the X540 chipset therefore I retrived a NIC whit a 82599 > chipset and I repeated my attempts, unfortunately I got the some > problems. > > 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=perfect", 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. > > This is the command line I use to start the program: > > frog at frog:~/dpdk-1.5.2r1/app/test-pmd$ > sudo ./testpmd -c 0x0f -n 2 -m 512 -- -i --portmask=0x3 --nb-cores=2 --pkt- > filter-mode=perfect --rxq=2 --txq=2 > > > and the relative output: > > ... > Interactive-mode selected > Configuring Port 0 (socket -1) > Fail to start port 0 (ret=-5)* > Configuring Port 1 (socket -1) > Fail to start port 1 (ret=-5)* > Please stop the ports first > Done > testpmd> > > *ret=-5 is the result of the rte_eth_dev_start function > > I guess someone was able to use FDIR, at least in the testpmd application. > What am I doing wrong? > Best regards > > > From: thomas.monjalon at 6wind.com > > To: fulvio.risso at polito.it > > Date: Thu, 6 Feb 2014 17:47:21 +0100 > > CC: dev at dpdk.org > > Subject: Re: [dpdk-dev] Is Flow Director supported on the x540 chipset? > > > > Hi Fulvio, > > > > 17/01/2014 12:24, Maxime Leroy: > > > On Thu, Jan 16, 2014, Fulvio Risso wrote: > > > > by digging into the DPDK code it seems to me that FDIR is not > supported > > > > on the x540 chipset, 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 != ixgbe_mac_82599EB) > > > + if (hw->mac.type != ixgbe_mac_82599EB || hw->mac.type != > > > ixgbe_mac_X540) > > > > > > Let me know if you can test it and please provide a patch if it works. > > > > Have you tried to patch and test flow director for X540 ? > > > > thanks > > -- > > Thomas >
[dpdk-dev] Is Flow Director supported on the x540 chipset?
Hi Fulvio, 17/01/2014 12:24, Maxime Leroy: > On Thu, Jan 16, 2014, Fulvio Risso wrote: > > by digging into the DPDK code it seems to me that FDIR is not supported > > on the x540 chipset, 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 != ixgbe_mac_82599EB) > + if (hw->mac.type != ixgbe_mac_82599EB || hw->mac.type != > ixgbe_mac_X540) > > Let me know if you can test it and please provide a patch if it works. Have you tried to patch and test flow director for X540 ? thanks -- Thomas
[dpdk-dev] Is Flow Director supported on the x540 chipset?
Hi Fulvio, I have been checked few information about the datasheet of the X540 card. The X540 card is a derivative of the 82599. It's very similar to the 82599 card. The both cards use the same hardware registers for the flow director. Thus, the current code of the dpdk for the flow director should work with X540 card too. I think you only need to change few lines in lib/librte_pmd_ixgbe/ixgbe_fdir.c: - if (hw->mac.type != ixgbe_mac_82599EB) + if (hw->mac.type != ixgbe_mac_82599EB || hw->mac.type != ixgbe_mac_X540) Let me know if you can test it and please provide a patch if it works. Thanks. Regards, Maxime On Thu, Jan 16, 2014 at 7:47 AM, Fulvio Risso wrote: > Dear all, > > by digging into the DPDK code it seems to me that FDIR is not supported on > the x540 chipset, while it is supported on 82599. > > Another message seems to mention the same problem here: > > http://dpdk.org/ml/archives/dev/2013-November/000806.html > > Is there any plan to support FDIR to the x540 chipset? > > fulvio
[dpdk-dev] Is Flow Director supported on the x540 chipset?
Dear all, by digging into the DPDK code it seems to me that FDIR is not supported on the x540 chipset, while it is supported on 82599. Another message seems to mention the same problem here: http://dpdk.org/ml/archives/dev/2013-November/000806.html Is there any plan to support FDIR to the x540 chipset? fulvio