dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* Regarding UDP checksum offload
@ 2015-01-28 11:25 Prashant Upadhyaya
       [not found] ` <CAPBAu3V594AoWqzWoFBhwyqq9uodkcrof88eHoE3QpF75uXuwA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Prashant Upadhyaya @ 2015-01-28 11:25 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

Hi,

I am aware that this topic has been discussed several times before, but I
am somehow still stuck with this.

I am using dpdk 1.6r1, intel 82599 NIC.
I have an mbuf, I have hand-constructed a UDP packet (IPv4) in the data
portion, filled the relevant fields of the headers and I do a tx burst. No
problems, the destination gets the packet. I filled UDP checksum as zero
and there was no checksum offloaded in ol_flags.

Now in the same usecase, I want to offload UDP checksum.
I am aware that the checksum field in UDP header has to be filled with the
pseudo header checksum, I did that, duly added the PKT_TX_UDP_CKSUM flag in
ol_flags, did a tx_burst and the packet does not reach the destination.

I realized that I have to fill the following fields as well (my packet does
not have vlan tag)
mbuf->pkt.vlan_macip.f.l2_len
mbuf->pkt.vlan_macip.f.l3_len

so I filled the l2_len as 14 and l3_len as 20 (IP header with no options)
Yet the packet did not reach the destination.

So my question is -- am I filling the l2_len and l3_len properly ?
Is there anything else to be done before I can get this UDP checksum
offload to work properly for me.

Regards
-Prashant

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-30  9:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-28 11:25 Regarding UDP checksum offload Prashant Upadhyaya
     [not found] ` <CAPBAu3V594AoWqzWoFBhwyqq9uodkcrof88eHoE3QpF75uXuwA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-28 13:02   ` Olivier MATZ
     [not found]     ` <54C8DDF3.2000802-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-01-28 14:57       ` Prashant Upadhyaya
     [not found]         ` <CAPBAu3Vy8ESOeyLmr3enn8-4o3aHqhbmbOnSp6nyaH7rggpT0A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-28 15:09           ` Olivier MATZ
     [not found]             ` <54C8FB95.7040503-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-01-29 12:56               ` Prashant Upadhyaya
     [not found]                 ` <CAPBAu3V6Dwt=MTauBpBU9QxySk4Rj6n5ARZ4PsvZujWQe3w1ew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-30  9:15                   ` Olivier MATZ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).