OSDN Git Service

pcnet: switch pcnet over to use net_crc32_le()
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 15 Dec 2017 18:41:45 +0000 (18:41 +0000)
committerJason Wang <jasowang@redhat.com>
Fri, 22 Dec 2017 01:59:52 +0000 (09:59 +0800)
commitcbbeca91819c8e08f4b85777f8dd1671314db586
tree625b85f66014d4492e314f1232812ed3e04f9907
parentf1a7deb900f4d87ca7ff602454e35aa65ff81567
pcnet: switch pcnet over to use net_crc32_le()

Instead of lnc_mchash() using its own implementation, we can simply call
net_crc32_le() directly and apply the bit shift inline.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/pcnet.c