DPDK patches and discussions
 help / color / mirror / Atom feed
From: Banashankar KV <banveerad@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] pktgen offload checksum flag not able to make it work with pacp packets.
Date: Fri, 24 Jan 2014 10:54:36 -0800	[thread overview]
Message-ID: <CABkBM5G5T8pQFU_BwNS715ZM8Wqf_NGyEB+qx0NuE0YSym48RQ@mail.gmail.com> (raw)

I was modifying a packet in pktgen_pcap_mbuf_ctor()
and after modifying I wanted to offload the checksum calculation to h/w
so I am setting these flags in pktgen_pcap_mbuf_ctor function.

m->pkt.vlan_macip.f.l2_len = sizeof(struct ether_hdr);
m->pkt.vlan_macip.f.l3_len = sizeof(struct ipv4_hdr);

m->ol_flags = PKT_TX_IP_CKSUM


I even tried with setting .txq_flags = 0 in rte_eth_txconf struct in pktgen.c.

But still not able to get the h/w checksum. Am I missing anything ?



Thanks
Banashankar

             reply	other threads:[~2014-01-24 18:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-24 18:54 Banashankar KV [this message]
2014-01-24 19:44 ` Wiles, Roger Keith
2014-01-25 22:53   ` Banashankar KV
2014-01-26  2:46     ` Wiles, Roger Keith
2014-01-27  0:38       ` Ananyev, Konstantin
2014-01-27  8:02       ` Vladimir Medvedkin
2014-01-27 19:25         ` Banashankar KV
2014-01-27 19:04       ` Banashankar KV

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABkBM5G5T8pQFU_BwNS715ZM8Wqf_NGyEB+qx0NuE0YSym48RQ@mail.gmail.com \
    --to=banveerad@gmail.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).