app/testpmd: fix TSO when using outer checksum offloads
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 13 Feb 2015 09:22:49 +0000 (10:22 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 16 Feb 2015 18:21:18 +0000 (19:21 +0100)
The l4_len has also to be copied in mbuf in case we are offloading outer
IP checksum. Currently, TSO + outer checksum is not supported by any
driver but it will soon be supported by i40e.

Reported-by: Jijiang Liu <jijiang.liu@intel.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
app/test-pmd/csumonly.c

index bee652a..0a7af79 100644 (file)
@@ -593,6 +593,7 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
                                m->outer_l3_len = info.outer_l3_len;
                                m->l2_len = info.l2_len;
                                m->l3_len = info.l3_len;
+                               m->l4_len = info.l4_len;
                        }
                        else {
                                /* if there is a outer UDP cksum