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)
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>

No differences found