i40e: fix offloading of outer checksum for IPIP tunnel
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 13 Feb 2015 09:22:50 +0000 (10:22 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 16 Feb 2015 18:21:18 +0000 (19:21 +0100)
commit0c0c43705c89c1705669c75396a811482dcb6679
treed2beb8a8b7200fb6353d3cb951d548c068ef2387
parent08f661aca1178b4f000fdd50c2881df0f4156120
i40e: fix offloading of outer checksum for IPIP tunnel

When offloading the checksums of ipip tunnels, m->l2_len is set to 0
as there is no tunnel or inner l2 header. Since this is a valid value
remove the test.

By the way, also remove the same test with l3_len because at this
point, it is expected that the software provides proper values in the
mbuf. It should avoid a test in dataplane processing and therefore
slightly increase performance.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Jijiang Liu <jijiang.liu@intel.com>
lib/librte_pmd_i40e/i40e_rxtx.c