Skip to content
Snippets Groups Projects
user avatar
Vlad Yasevich authored
crc32c algorithm provides a byteswaped result.  On little-endian
arches, the result ends up in big-endian/network byte order.
On big-endinan arches, the result ends up in little-endian
order and needs to be byte swapped again.  Thus calling cpu_to_le32
gives the right output.

Tested-by: default avatarJukka Taimisto <jukka.taimisto@mail.suomi.net>
Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
9c5ff5f7
History
Name Last commit Last update
..