Hi Banashankar,
For proper TCP checksum calculation you have to calculate checksum over
pseudo header (see app/test-pmd/cmdline.c) and put result in tcp_hdr->cksum
2014-01-26 Wiles, Roger Keith
> Hi Banashankar,
>
> The tx_conf is used in the pktgen_config_ports() with the
> rte_eth_tx_queue_s
Hi Vladimir,
Once I added the pseudo header I was able to offload the TCP checksum.
Thanks a lot.
Thanks
Banashankar
On Mon, Jan 27, 2014 at 12:02 AM, Vladimir Medvedkin
wrote:
> Hi Banashankar,
>
> For proper TCP checksum calculation you have to calculate checksum over
> pseudo header (see ap
Hi,
In pktgen.c, tx_conf have a flag txq_flags which is set to IXGBE_SIMPLE_FLAGS
which inturn has value ETH_TXQ_FLAGS_NOOFFLOADS which is defined in
rte_ethdev.h and has values which disables all kind of chksum offloads. So
once I commented off that particular flag, offload started working.
Yea I
To: Banashankar KV
Cc:
Subject: Re: [dpdk-dev] pktgen offload checksum flag not able to make it work
with pacp packets.
Hi Banashankar,
The tx_conf is used in the pktgen_config_ports() with the
rte_eth_tx_queue_setup() and I am not sure why it matters that tx_conf is
disable. The values are mos
Hi Banashankar,
The tx_conf is used in the pktgen_config_ports() with the
rte_eth_tx_queue_setup() and I am not sure why it matters that tx_conf is
disable. The values are mostly zero, but some type of interaction must be going
on. It may be the txq_flags being set to IXGBE_SIMPLE_FLAGS and it
Hi,
Thanks a lot for the reply !
Yes I have checked those examples and had set all those flags. But IP
checksum started working after commenting off the txq_flags from
the pktgen.c file's tx_conf .
And I added the following flag to calculate the tcp checksum.
m->ol_flags |= PKT_TX_TCP_CKSUM
its
I have not enabled that feature myself, but I would expect it to work as long
as the hardware does. What does the docs say about enabling hardware offload
support? Did you look at the following files:
ip_reassembly/ipv4_rsmbl.h: m->ol_flags |= PKT_TX_IP_CKSUM;
ipv4_frag/rte_ipv4_frag.h:
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
8 matches
Mail list logo