OSDN Git Service

eepro100: switch eepro100 e100_compute_mcast_idx() over to use net_crc32()
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 15 Dec 2017 18:41:46 +0000 (18:41 +0000)
committerJason Wang <jasowang@redhat.com>
Fri, 22 Dec 2017 01:59:52 +0000 (09:59 +0800)
commit7c0348bd633aff5ff27d5c393008495175ca416b
tree398d70e7773a3475528a128ddd03da15b984989f
parentcbbeca91819c8e08f4b85777f8dd1671314db586
eepro100: switch eepro100 e100_compute_mcast_idx() over to use net_crc32()

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

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/eepro100.c