Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4243115imm; Mon, 18 Jun 2018 11:30:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJfQWTusqriiJTDAqYoum42OtP03HIOe/ea1GOjc/AcGCoBs6rTbt++7UvudRxx2Wj1MPlS X-Received: by 2002:a17:902:c85:: with SMTP id 5-v6mr15332440plt.126.1529346620721; Mon, 18 Jun 2018 11:30:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529346620; cv=none; d=google.com; s=arc-20160816; b=q7h3Etj1+bBsGRnBKCvLV32yTkUcum90QhoQxGaUiO3Vo/SqXVliI8aQFYykyXwQWi ul2spa6exxK/lM7Wzw3IxT2jjPBKUJUXuk2mO3POmhm1Vu4WVdsFMt8EVDzi/GLNDfcR fnZMlwhSfzOiNC5wN7OzLQodE6YEEgRB2gA/CBx9rFd6ArMZZpze56dLPSDHaBmbZtub 9wT7WQhX3Wy7HGFVi0sZL07ungHxkS50tCyP7na0QUAleF1GhNtasc5BpB2PGv+HBgSK hVEQ0t2/N3A7ayh47zh2xDGQ1szg5f5DIV5Nda5wDKkk1GJF8+DWhPBRAo44RSOQnN5p qQng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=VMxEWZ9WN2vp2SGVFdp6+u2Bc1xNgnNChssME5mstoQ=; b=1JMTUo+v/02Kioj0vlq8uBqWHyISmpljtOSZ0DWRkw3j2kaD4GBnBQXu4/1DV8LchO DMY6PVKOciNajWKMWuvzVoEh3ovpaT9TajqqQHaDgTlZBEXn/DKGKNup9xGixNDhhzXr RIyL2uviGOu4rgKCYCimE2KJxGGJONd89Os9UjZknVTq2OGB14AtaRM8pCa+4WjHFHhW yLqFqifd0FLPeAXhd2WJSvqEiBD9FvRqYnxPGxdJ/R5RQ6eCO7DSS7cFxkRyRQkF5oWv CReFmdHv15iV6EIyxVRIsaPjJRRrAtXb6zsnjCSOba6A3J5UlsNloOKkUfrMD4ttbHW6 yREw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t84-v6si15510075pfj.231.2018.06.18.11.30.06; Mon, 18 Jun 2018 11:30:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935939AbeFRS3Z (ORCPT + 99 others); Mon, 18 Jun 2018 14:29:25 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:41093 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935324AbeFRS3X (ORCPT ); Mon, 18 Jun 2018 14:29:23 -0400 Received: by mail-oi0-f67.google.com with SMTP id a141-v6so15744381oii.8; Mon, 18 Jun 2018 11:29:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VMxEWZ9WN2vp2SGVFdp6+u2Bc1xNgnNChssME5mstoQ=; b=MpSzqj9e1ywPDCzKJhLYYbmhU7Da7fdFjVxBiGtF/kNabw61TdSr125TTmfoKbmlw9 GEwPiXvJGMlpzic3kpAHyj2WVugohDRQ7UIAzrUsrOetcPf1xVm2CMUFMaeyCyybuDoy PFmFFM4b2mlYfH0ToYbjTnxhZ2tlxTgSGf3LrIcpHpZMhL5mZ8Za6043Kp9FtUGWqIp7 tP0JI54epl6u/vWHf/AKRTWxfpBfu60830gADJOJu+r/7VpAJJ4wL8QNgPnW//L0XFwz IRexeCXjwTvwm2coe0Y8Py1giTiaJWRclOAKaH01gK0UqItBRM7onA2yCO5BmljXI7lm D8Xg== X-Gm-Message-State: APt69E0vLnWldQLGrFu8IN1wOy+x4XXQHGVt+wIGI4tTSOj2jW3gMu0L 7PYDHzZwRWy6GPT3v/KbZouigql0B8jPlBKqHak= X-Received: by 2002:aca:1205:: with SMTP id 5-v6mr7820976ois.173.1529346562261; Mon, 18 Jun 2018 11:29:22 -0700 (PDT) MIME-Version: 1.0 References: <20180615185645.8921-1-malat@debian.org> <9d88677a-f2be-2089-79df-15df4e9a5dd6@gmail.com> <87o9g8geu0.fsf@igel.home> In-Reply-To: <87o9g8geu0.fsf@igel.home> From: Mathieu Malaterre Date: Mon, 18 Jun 2018 20:29:10 +0200 Message-ID: Subject: Re: [PATCH] Revert "net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends" To: schwab@linux-m68k.org Cc: eric.dumazet@gmail.com, "David S. Miller" , Eric Dumazet , LKML , Christophe LEROY , Meelis Roos , netdev@vger.kernel.org, linuxppc-dev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 18, 2018 at 7:54 PM Andreas Schwab wrote: > > On Jun 17 2018, Eric Dumazet wrote: > > > Oh this is silly, please try : > > > > diff --git a/net/core/skbuff.c b/net/core/skbuff.c > > index c642304f178ce0a4e1358d59e45032a39f76fb3f..54dd9c18ecad817812898d6f335e1794a07dabbe 100644 > > --- a/net/core/skbuff.c > > +++ b/net/core/skbuff.c > > @@ -1845,10 +1845,9 @@ EXPORT_SYMBOL(___pskb_trim); > > int pskb_trim_rcsum_slow(struct sk_buff *skb, unsigned int len) > > { > > if (skb->ip_summed == CHECKSUM_COMPLETE) { > > - int delta = skb->len - len; > > + __wsum csumdiff = skb_checksum(skb, len, skb->len - len, 0); > > > > - skb->csum = csum_sub(skb->csum, > > - skb_checksum(skb, len, delta, 0)); > > + skb->csum = csum_block_sub(skb->csum, csumdiff, len); > > } > > return __pskb_trim(skb, len); > > } > > That doesn't help either. seconded (setup g4+sungem): [ 100.272676] eth0: hw csum failure [ 100.272710] CPU: 0 PID: 0 Comm: swapper Not tainted 4.17.0+ #6 [ 100.272716] Call Trace: [ 100.272733] [dffedbd0] [c069ddb8] __skb_checksum_complete+0xf0/0x108 (unreliable) [ 100.272752] [dffedbf0] [c078ea28] __udp4_lib_rcv+0x238/0xf98 [ 100.272767] [dffedc70] [c0731630] ip_local_deliver_finish+0xa8/0x3c4 [ 100.272777] [dffedcb0] [c073243c] ip_local_deliver+0xf0/0x154 [ 100.272786] [dffedcf0] [c07328e8] ip_rcv+0x448/0x774 [ 100.272800] [dffedd50] [c06aeaec] __netif_receive_skb_core+0x5e8/0x1184 [ 100.272811] [dffedde0] [c06bba2c] napi_gro_receive+0x160/0x22c [ 100.272828] [dffede10] [e1571590] gem_poll+0x7fc/0x1ac0 [sungem] [ 100.272837] [dffedee0] [c06bacfc] net_rx_action+0x34c/0x618 [ 100.272849] [dffedf60] [c07fd28c] __do_softirq+0x16c/0x5f0 [ 100.272863] [dffedfd0] [c0064c7c] irq_exit+0x110/0x1a8 [ 100.272877] [dffedff0] [c0016170] call_do_irq+0x24/0x3c [ 100.272890] [c0cf7e80] [c0009a84] do_IRQ+0x98/0x1a0 [ 100.272900] [c0cf7eb0] [c001b474] ret_from_except+0x0/0x14 [ 100.272911] --- interrupt: 501 at arch_cpu_idle+0x30/0x78 LR = arch_cpu_idle+0x30/0x78 [ 100.272920] [c0cf7f70] [c0cf6000] 0xc0cf6000 (unreliable) [ 100.272935] [c0cf7f80] [c00a3868] do_idle+0xc4/0x158 [ 100.272944] [c0cf7fb0] [c00a3ab4] cpu_startup_entry+0x24/0x28 [ 100.272955] [c0cf7fc0] [c0998820] start_kernel+0x47c/0x490 [ 100.272963] [c0cf7ff0] [00003444] 0x3444 > Andreas. > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 > "And now for something completely different."