]> git.karo-electronics.de Git - linux-beck.git/commit
staging/slicoss: Use ether_crc for mac hash calculation
authorPeter Huewe <peterhuewe@gmx.de>
Tue, 19 Feb 2013 04:18:52 +0000 (05:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 16:22:44 +0000 (09:22 -0700)
commit97b3e0ed1df6cf577be12b96cf80e5f7d90c8323
treebeb7c5c4be11d04459567bcd06517cdfb84f71f9
parent20d403e801272b84e033b8f17d3e45c4f66507c7
staging/slicoss: Use ether_crc for mac hash calculation

Instead of performing the hash calculation for the mac address by ourself, we
can simply reuse ether_crc and shift only the result according to our
needs.
The code was tested against the previous implementation by verifying both
implementations against each other in userspace for 16200000000 different
mac addresses, changing the vendor bits of the mac address first.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c