net: add function to calculate checksum in mbuf
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 13 Oct 2016 14:16:03 +0000 (16:16 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 13 Oct 2016 18:44:18 +0000 (20:44 +0200)
commitc442fed81bb9f6e6af5d37d55a626d725ed1a69b
tree639a16bac359dba653b8428de3c8829ad90a1fae
parent60e6f4707ef2291238471bde8378c43cc95810f5
net: add function to calculate checksum in mbuf

This function can be used to calculate the checksum of data embedded in
mbuf, that can be composed of several segments.

This function will be used by the virtio pmd in next commits to calculate
the checksum in software in case the protocol is not recognized.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
doc/guides/rel_notes/release_16_11.rst
lib/librte_net/rte_ip.h