Mark Cave-Ayland eaba8f34f0 net: move CRC32 calculation from compute_mcast_idx() into its own net_crc32() function
Separate out the standard ethernet CRC32 calculation into a new net_crc32()
function, renaming the constant POLYNOMIAL to POLYNOMIAL_BE to make it clear
that this is a big-endian CRC32 calculation.

As part of the constant rename, remove the duplicate definition of POLYNOMIAL
from eepro100.c and use the new POLYNOMIAL_BE constant instead.

Once this is complete remove the existing CRC32 implementation from
compute_mcast_idx() and call the new net_crc32() function in its place.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2017-12-22 09:55:03 +08:00
..
2016-10-04 13:28:07 +01:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:03 +03:00
2017-12-20 11:30:55 +00:00
2017-10-27 16:03:54 +02:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:02 +03:00
2017-12-15 09:49:23 +11:00
2016-01-29 15:07:25 +00:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:03 +03:00
2017-12-19 06:40:04 -05:00
2017-12-18 17:07:03 +03:00
2017-08-30 18:23:25 +02:00