Optimized ether_crc32_be()

Bruce M Simpson bms at spc.org
Tue Jun 22 23:04:22 GMT 2004


On Fri, Jun 18, 2004 at 11:37:40PM +0000, Christian Weisgerber wrote:
> Taken from kern/49957, here's a table-driven implementation of
> ether_crc32_be() to complement the little-endian one.  For 6-byte
> MAC addresses it's about five times faster than the double loop.
> 
> Comments?

This sounds like a good idea. I'd be happy to see this committed
(providing, as phk@ suggested, that it is subject to proper regression
testing) as it may help to address the GPL contamination thread discussed
in May's Core Monthly Report (specifically in sk(4)).

Also, the reduction of code duplication can only be a good thing.

Regards,
BMS


More information about the freebsd-current mailing list