net: new checksum functions
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 26 Nov 2014 15:04:51 +0000 (16:04 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 26 Nov 2014 18:35:55 +0000 (19:35 +0100)
commit6006818cfb26bbce0a03ddcb77e42b51a21cebb5
tree451c1fc34928ba8cd47a0a984fa255aac1954d69
parent51f694dd40f56b1d809c941baab950a2f92ef2c6
net: new checksum functions

Introduce new functions to calculate checksums. These new functions
are derivated from the ones provided csumonly.c but slightly reworked.
There is still some room for future optimization of these functions
(maybe SSE/AVX, ...).

This API will be modified in tbe next commits by the introduction of
TSO that requires a different pseudo header checksum to be set in the
packet.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test-pmd/csumonly.c
lib/librte_mbuf/rte_mbuf.h
lib/librte_net/rte_ip.h