aboutsummaryrefslogtreecommitdiff
path: root/helper/include
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>2017-08-24 14:32:08 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-08-29 00:25:02 +0300
commita7463a692a4e2dc311c2d383595adafd01433fa4 (patch)
treefdf3b640dc6805d7213ca5294111d99771fd6b7c /helper/include
parent11fed684507a320fbb79dc86769c8f1755d0276f (diff)
helper: chksum: odph_chksum returns value in network byte order
All examples and usecases assumed network byte order for odph_chksum() return value. Instead of changing this convention, rather document that odph_chksum returns value in network byte order. https://bugs.linaro.org/show_bug.cgi?id=2976 Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'helper/include')
-rw-r--r--helper/include/odp/helper/chksum.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/include/odp/helper/chksum.h b/helper/include/odp/helper/chksum.h
index 520e92753..1bf950c8b 100644
--- a/helper/include/odp/helper/chksum.h
+++ b/helper/include/odp/helper/chksum.h
@@ -40,7 +40,7 @@ typedef enum {
* @param buffer calculate chksum for buffer
* @param len buffer length
*
- * @return checksum value in host cpu order
+ * @return checksum value in network order
*/
static inline odp_u16sum_t odph_chksum(void *buffer, int len)
{