From: Alexander Duyck ... > One thought I had is that we may want to look into making an inline > function that we can call for compile-time defined lengths less than > 64. Maybe call it something like __csum_partial and we could then use > that in place of csum_partial for all those headers that are a fixed > length that we pull such as UDP, VXLAN, Ethernet, and the rest. Then > we might be able to look at taking care of alignment for csum_partial > which will improve the skb_checksum() case without impacting the > header pulling cases as much since that code would be inlined > elsewhere.
I think there are some patches going through the ppc tree to do exactly that. David