On 13.08.2016 23:17, Thor Lancelot Simon wrote: > On Fri, Aug 12, 2016 at 07:37:50PM +0000, Paul_Koning%Dell.com@localhost wrote: >> >> It seems sensible. It could be done by a common CRC routine that takes a table pointer argument, then the two specific routines are just wrappers. >> > > It would be really nice to not pay the function call overhead on modern > Intel CPUs where this is a single instruction. Not sure this is possible > in a generic kernel without resorting to binary patch, but we do that in > other places... > > Thor > A good resource for CRC32C offload in hardware is the DPDK code. There is AMD64 (SSE) and ARMv8. This code is BSD-licensed. http://dpdk.org/browse/dpdk/tree/lib/librte_hash/rte_hash_crc.h It might be taken as-is with adaptions.
Attachment:
signature.asc
Description: OpenPGP digital signature