Signed-off-by: Wang Li <wangl...@kuaishou.com> --- net/ipv4/udp.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 32564b350823..54db5182c884 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -798,7 +798,6 @@ void udp_set_csum(bool nocheck, struct sk_buff *skb, } else if (skb_is_gso(skb)) { uh->check = ~udp_v4_check(len, saddr, daddr, 0); } else if (skb->ip_summed == CHECKSUM_PARTIAL) { - uh->check = 0; uh->check = udp_v4_check(len, saddr, daddr, lco_csum(skb)); if (uh->check == 0) uh->check = CSUM_MANGLED_0; -- 2.20.1 (Apple Git-117)