Explain initialization when using csum()
authorRyan Moats <rmoats@us.ibm.com>
Sun, 24 Jul 2016 18:36:35 +0000 (18:36 +0000)
committerBen Pfaff <blp@ovn.org>
Sun, 24 Jul 2016 18:47:28 +0000 (11:47 -0700)
commitece9c2947dd5956708bcdb44922a2481da6b2f50
tree5261f1d4f580784cfb9806d62b4cd0560443444f
parent218f9539f9ac359c7321c1cab9432c39648285f1
Explain initialization when using csum()

The checksum method csum() requires its output location to be
intialized to zero when that output location is part of the
checksum.  Add comments to the various places where csum is
called documenting where the initialization has occurred.

Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/bfd.c
lib/flow.c
lib/netdev-native-tnl.c
ovn/controller/pinctrl.c