summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2013-02-19 08:18:52 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-11 20:22:44 +0400
commit97b3e0ed1df6cf577be12b96cf80e5f7d90c8323 (patch)
treebeb7c5c4be11d04459567bcd06517cdfb84f71f9 /tools/perf/scripts/python
parent20d403e801272b84e033b8f17d3e45c4f66507c7 (diff)
downloadlinux-97b3e0ed1df6cf577be12b96cf80e5f7d90c8323.tar.xz
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions