On Tue, 2020-04-21 at 17:20 +0200, Johannes Berg wrote: > Hi, > > This is probably a stupid question but I'm hitting my head against the > wall ... > > I have an skb. I have this: > > > if (skb->ip_summed == CHECKSUM_COMPLETE) { > printk(KERN_DEBUG "csum before\n"); > printk(KERN_DEBUG " hw = 0x%.4x\n", skb->csum); > printk(KERN_DEBUG " sw = 0x%.4x\n", csum_fold(skb_checksum(skb, 0, skb->len, 0))); Never mind. The csum_fold() there is obviously the problem - that shouldn't match, it should match the folded skb->csum. I have a missing ~ basically. johannes