Re: Regarding UDP checksum offload
From: Olivier MATZ <hidden>
Date: 2015-01-30 09:15:48
Hi, On 01/29/2015 01:56 PM, Prashant Upadhyaya wrote:
Another thing you can do is to retry on the latest stable dpdk which
is known to work (see csumonly.c in test-pmd).
Let me add further, I am _just_ doing the UDP checksum offload
and not
the IP hdr checksum offload. I calculate and set IP header
checksum by
my own code. I hope that this is acceptable and does not
interfere with
UDP checksum offload
This should not be a problem.
Indeed it worked with DPDK1.7 and then I retried with DPDK1.6 and it
worked there too.
Must have been some mistake at my end, may be I did not clean properly
when I was experimenting with some values of l2_len.
Sorry for the botheration to the list.
While we are at it, a quick question -- in case I have an mbuf chain
whose payloads constitute a UDP packet, should I setup the ol_flags and
the l2_len, l3_len fields only in the first mbuf header of the chain or
in all the mbuf headers of the chain ?Only the first mbuf is required. This is the case for all offload infos like flags, tso, ... and it's the same in rx. Regards, Olivier