From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH 10/12] testpmd: rework csum forward engine Date: Tue, 11 Nov 2014 10:55:37 +0100 Message-ID: <5461DD19.9000406@6wind.com> References: <1415635166-1364-1-git-send-email-olivier.matz@6wind.com> <1415635166-1364-11-git-send-email-olivier.matz@6wind.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01D8F82C@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "jigsaw-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" To: "Liu, Jijiang" , "dev-VfR2kkLFssw@public.gmane.org" Return-path: In-Reply-To: <1ED644BD7E0A5F4091CF203DAFB8E4CC01D8F82C-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@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 Jijiang, On 11/11/2014 09:35 AM, Liu, Jijiang wrote: > The PKT_TX_VXLAN_CKSUM was not set in the patch, and VXLAN TX checksum offload would not work. Thank you for reporting this. Indeed, there is an issue. See below. >> +/* Calculate the checksum of outer header (only vxlan is supported, >> + * meaning IP + UDP). The caller already checked that it's a vxlan >> + * packet */ >> +static uint64_t >> +process_outer_cksums(void *outer_l3_hdr, uint16_t outer_ethertype, >> + uint16_t outer_l3_len, uint16_t testpmd_ol_flags) { >> + struct ipv4_hdr *ipv4_hdr = outer_l3_hdr; >> + struct ipv6_hdr *ipv6_hdr = outer_l3_hdr; >> + struct udp_hdr *udp_hdr; >> + uint64_t ol_flags = 0; >> + >> + if (testpmd_ol_flags & TESTPMD_TX_OFFLOAD_VXLAN_CKSUM) >> + ol_flags |= PKT_TX_IP_CKSUM; Here it should be: ol_flags |= PKT_TX_VXLAN_CKSUM I'll fix that in the next version. Regards, Olivier