Re: checksumming on non-local forward path

2018-10-27 Thread Andrew Lunn
> What would you think of a flag on the receiving end like, > "CHECKSUM_INVALID_BUT_UNNECESSARY"? It would be treated as > CHECKSUM_UNNECESSARY in the case that the the packet is locally > received. But if the packet is going to be forwarded instead, then > skb_checksum_help is called on it before

checksumming on non-local forward path

2018-10-26 Thread Jason A. Donenfeld
Hey netdev, In a protocol like wireguard, if a packet arrives on the other end of the tunnel, and the crypto checks out, then we're absolutely certain that the packet hasn't been modified in transit. In this case, there's no useful information that validating the inner checksums of the various hea