[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Padam Jeet Singh
>> > Yes, you are correct, I just noticed you declare it is static, If possible, > send more codes to me, I can help you with this. >>> Thanks, Padam > I have the following code: mbuf->ol_flags = (uint16_t) (mbuf->ol_flags & (~PKT_TX_OFFLOAD_MASK));

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Padam Jeet Singh
Padam Jeet Singh >>>> Sent: Wednesday, October 28, 2015 3:20 PM >>>> To: Matthew Hall >>>> Cc: dev at dpdk.org >>>> Subject: Re: [dpdk-dev] Wrong TCP Checkum computed by hardware >>>> >>> >>> Did you set the txq_flags? &

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Padam Jeet Singh
> On 28-Oct-2015, at 1:31 pm, Liu, Jijiang wrote: > > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Padam Jeet Singh >> Sent: Wednesday, October 28, 2015 3:20 PM >> To: Matthew Hall >> Cc: dev at dpdk.org >&

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Padam Jeet Singh
On 28-Oct-2015, at 12:27 pm, Matthew Hall wrote: > > On Wed, Oct 28, 2015 at 12:20:22PM +0530, Padam Jeet Singh wrote: >> Any hint what could I be doing wrong here? > > When this kind of stuff doesn't work it often will depend on the exact > version > of card, chip, etc. if there are any

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Padam Jeet Singh
Hi, While implementing a sample packet generation code, I am setting up the offload flags so that the hardware (82599ES in my case) computes the IP and TCP Checksums. However, it seems that only the IP checksum is computed whereas the TCP Checksum is computed, but computed wrong. Here is a

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Liu, Jijiang
> -Original Message- > From: Padam Jeet Singh [mailto:padam.singh at inventum.net] > Sent: Wednesday, October 28, 2015 4:31 PM > To: Liu, Jijiang > Cc: dev at dpdk.org; Matthew Hall > Subject: Re: [dpdk-dev] Wrong TCP Checkum computed by hardware > > > > O

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Liu, Jijiang
> -Original Message- > From: Padam Jeet Singh [mailto:padam.singh at inventum.net] > Sent: Wednesday, October 28, 2015 4:12 PM > To: Liu, Jijiang > Cc: dev at dpdk.org; Matthew Hall > Subject: Re: [dpdk-dev] Wrong TCP Checkum computed by hardware > > > > O

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Liu, Jijiang
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Padam Jeet Singh > Sent: Wednesday, October 28, 2015 3:20 PM > To: Matthew Hall > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] Wrong TCP Checkum computed by hardware > Did you set the t

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Matthew Hall
On Wed, Oct 28, 2015 at 12:20:22PM +0530, Padam Jeet Singh wrote: > Any hint what could I be doing wrong here? When this kind of stuff doesn't work it often will depend on the exact version of card, chip, etc. if there are any errata. So you might want to collect the specifics of the board with