Skip to content

Commit bbfbf7a

Browse files
Florian Westphalummakynes
authored andcommitted
Revert "netfilter: conntrack: mark UDP zero checksum as CHECKSUM_UNNECESSARY"
This reverts commit 5bed9f3. 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: 5bed9f3 ("netfilter: conntrack: mark UDP zero checksum as CHECKSUM_UNNECESSARY") Reported-by: Gal Pressman <[email protected]> Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent ef132dc commit bbfbf7a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

net/netfilter/nf_conntrack_proto_udp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,8 @@ static bool udp_error(struct sk_buff *skb,
6363
}
6464

6565
/* Packet with no checksum */
66-
if (!hdr->check) {
67-
skb->ip_summed = CHECKSUM_UNNECESSARY;
66+
if (!hdr->check)
6867
return false;
69-
}
7068

7169
/* Checksum invalid? Ignore.
7270
* We skip checking packets on the outgoing path

0 commit comments

Comments
 (0)