mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
Revert "netfilter: conntrack: mark UDP zero checksum as CHECKSUM_UNNECESSARY"
This reverts commit5bed9f3f63
. Gal Presman says: this patch broke geneve tunnels, or possibly all udp tunnels? A simple test that creates two geneve tunnels and runs tcp iperf fails and results in checksum errors (TcpInCsumErrors). Original commit wanted to fix nf_reject with zero checksum, so it appears better to change nf reject infra instead. Fixes:5bed9f3f63
("netfilter: conntrack: mark UDP zero checksum as CHECKSUM_UNNECESSARY") Reported-by: Gal Pressman <gal@nvidia.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
ef132dc40a
commit
bbfbf7a5e7
@ -63,10 +63,8 @@ static bool udp_error(struct sk_buff *skb,
|
||||
}
|
||||
|
||||
/* Packet with no checksum */
|
||||
if (!hdr->check) {
|
||||
skb->ip_summed = CHECKSUM_UNNECESSARY;
|
||||
if (!hdr->check)
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Checksum invalid? Ignore.
|
||||
* We skip checking packets on the outgoing path
|
||||
|
Loading…
Reference in New Issue
Block a user