From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH v3 0/3] enhance TX checksum command and csum forwarding engine Date: Fri, 09 Jan 2015 11:45:18 +0100 Message-ID: <54AFB13E.2080200@6wind.com> References: <1418173403-30202-1-git-send-email-jijiang.liu@intel.com> <54896F4A.4070601@6wind.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01DA1B70@SHSMSX101.ccr.corp.intel.com> <548B18C9.3020408@6wind.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01DA7699@SHSMSX101.ccr.corp.intel.com> <2601191342CEEE43887BDE71AB977258213D337B@irsmsx105.ger.corp.intel.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01DA789E@SHSMSX101.ccr.corp.intel.com> <2601191342CEEE43887BDE71AB977258213D34AE@irsmsx105.ger.corp.intel.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01DA7CC5@SHSMSX101.ccr.corp.intel.com> <2601191342CEEE43887BDE71AB977258213D3897@irsmsx105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: "dev-VfR2kkLFssw@public.gmane.org" To: "Ananyev, Konstantin" , "Liu, Jijiang" Return-path: In-Reply-To: <2601191342CEEE43887BDE71AB977258213D3897-pww93C2UFcwu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@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, Thank you Jijiang for taking the time to get back on this. On 01/08/2015 11:54 AM, Ananyev, Konstantin wrote: >> And we are able to test all of cases in http://dpdk.org/ml/archives/dev/2014-December/009213.html >> >> Test case A: >> >> tx_checksum set sw-tunnel-mode off >> tx_checksum set hw-tunnel-mode off >> tx_checksum set ip hw >> >> test case B.1: >> >> tx_checksum set sw-tunnel-mode on >> tx_checksum set hw-tunnel-mode on >> tx_checksum set ip hw >> tx_checksum set tcp hw >> >> test case B.2: >> >> tx_checksum set sw-tunnel-mode on >> tx_checksum set hw-tunnel-mode off >> tx_checksum set ip hw >> >> test case C: >> >> tx_checksum set sw-tunnel-mode on >> tx_checksum set hw-tunnel-mode on >> tx_checksum set outer-ip hw >> tx_checksum set ip hw >> tx_checksum set tcp hw There is something I don't understand. A forward engine takes any packet in input and output. Packets can be of any kind (eth/arp, eth/ip/tcp, eth/vlan/ip/udp/vxlan/eth/ip/tcp, ...) Today, the behavior of csum forward engine is defined for any kind of packet. See the description and the table in http://dpdk.org/ml/archives/dev/2014-December/009886.html All packets that are not "Ether[/vlan]/(IP|IP6)/(UDP|TCP|SCTP)" or "Ether[/vlan]/(IP|IP6)/UDP/VxLAN/Ether[/vlan]/(IP|IP6)/UDP|TCP|SCTP" are forwarded without beeing modified. In my understanding, the use-case you are describing correspond to specific packet types. So a configuration would work only for one packet format only. Is it correct? I think that the test-pmd command API should define a behavior for the csum forward engine for any packet. What do you think? Regards, Olivier