Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1670587imm; Sat, 16 Jun 2018 00:15:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKuBKOwx9YV9NUx6wgXiEoUPrhIaF9LDVzH8K0apyM+B25ZCBwbM8V7hmrzUs914q8Q1xMx X-Received: by 2002:a17:902:581:: with SMTP id f1-v6mr5508379plf.48.1529133340197; Sat, 16 Jun 2018 00:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529133340; cv=none; d=google.com; s=arc-20160816; b=A9lG9TuBXE4eIpv0p3Pb+U5xRxGlXFR6VXa/JJXjdvRSJA4Lp9EmtxYzeXg5IEZ0gf 54X16Xbz9dkfzKpnlFYuzfi0M2frToyvNDgYhHN6xEMahEAV86UwlcW7w9IYCRR7loOK mJBBbHoBeH/TCosI93OTELFRSTF9jufPgyxi4orE1ElOIttSnM51UkVptTFmMENDPGmq dhbp57tjDNbuBvD6T0rPdpj3MnIY/lYq9rpgpEmO+jClDbwAi3R+d/zzzrxRkIN6VoX5 o6iUMiDZahPsvItb1NDJ2MTITDcUcWHmArxgmC2+1isz3zEdqdgrxJ/nCJIvwJ7SXgu4 QgJg== 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=dB5O9f/IkgffsDMnfx+LjEzmMOI7sS84QF9b7eMQMWg=; b=RGuha22tceyioYXFcevw8CwiuH59JRPHie4Orfg8QqeQ/7bjsQXgn2jGqHE9qwrZ7u c9d9JBRc4+cSpPAvj55urrardhCi4d4T4TO+ArUOG1RgsRjhWJXyEyHe495HQ8HGToGC 07LtXl7DGtP1PYu0kHcWe3YTTS9pKBT0Qq9WVRkkhqhbzbxGekcn5Nn+/etGriPc0un3 /IJwLkaWhunbiCeePnZ4wr7NZ99HkmHTSTaub3NAM8AJj3+CBDUWmwYRwZsMRz15gsU+ pAeLzTJrRmTOeznbusJet7b0JLWj9YVAb3z+tReT66pnn4IUa7YHJecLyPFNdxiT4ib/ xTAA== 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 p7-v6si7834754pga.25.2018.06.16.00.15.25; Sat, 16 Jun 2018 00:15:40 -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 S933190AbeFPHO7 (ORCPT + 99 others); Sat, 16 Jun 2018 03:14:59 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:41936 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932319AbeFPHOz (ORCPT ); Sat, 16 Jun 2018 03:14:55 -0400 Received: by mail-oi0-f66.google.com with SMTP id a141-v6so10760022oii.8; Sat, 16 Jun 2018 00:14:55 -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=dB5O9f/IkgffsDMnfx+LjEzmMOI7sS84QF9b7eMQMWg=; b=BoS1bVuy1fkT2Awc36muF609AFQs1kabcN9JmuN/1O6xieDH5sIvuh7+xLvZm6ddBo 1bSTbJxYuN/5lnqkgKDY1bJYKQmMOcoDeN/9bycE/ILsmBmTvfjeeO+XW1HVt0k29p44 LdnsSEgPxNygCv6M2LexEkDr23KPbHQ3CD5+1opJt0Pb6a4EHOxe+s96ootoQBQIXP5J cajy3L8zB8enCDs8QBYIPdz6+3eEmlW3X+9feOmO7zQmZIzvh8zTZBE1ebOlx1cUWSPZ 4lQTzsLfg4LJIBuILlfWQgBWh9Dkqh6j4L8MyMWdeFzanK63/lSBC91+Y9QlAA1EAAZY 0BUg== X-Gm-Message-State: APt69E0MEBUwfCKhA8jKry/stBy9ZijZ0JLV3MagtlPUMRu2uQAxPP3o jPygm8/TQ8GPZ8R89jvIApszNjV1nTnS6hEFPII= X-Received: by 2002:aca:b184:: with SMTP id a126-v6mr2760225oif.67.1529133294686; Sat, 16 Jun 2018 00:14:54 -0700 (PDT) MIME-Version: 1.0 References: <20180615185645.8921-1-malat@debian.org> In-Reply-To: From: Mathieu Malaterre Date: Sat, 16 Jun 2018 09:14:42 +0200 Message-ID: Subject: Re: [PATCH] Revert "net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends" To: eric.dumazet@gmail.com Cc: "David S. Miller" , Eric Dumazet , LKML , Christophe LEROY , Meelis Roos , schwab@linux-m68k.org, 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 Hi Eric, On Fri, Jun 15, 2018 at 9:14 PM Eric Dumazet wrote: > > > > On 06/15/2018 11:56 AM, Mathieu Malaterre wrote: > > This reverts commit 88078d98d1bb085d72af8437707279e203524fa5. > > > > It causes regressions for people using chips driven by the sungem > > driver. Suspicion is that the skb->csum value isn't being adjusted > > properly. > > > > Symptoms as seen on G4+sungem are: > > > > [ 34.023281] eth0: hw csum failure > > [ 34.023438] CPU: 0 PID: 0 Comm: swapper Not tainted 4.17.0+ #2 > > [ 34.023618] Call Trace: > > [ 34.023707] [dffedbd0] [c069ddac] __skb_checksum_complete+0xf0/0x108 (unreliable) > > [ 34.023948] [dffedbf0] [c0777a70] tcp_v4_rcv+0x604/0xe00 > > [ 34.024118] [dffedc70] [c0731624] ip_local_deliver_finish+0xa8/0x3c4 > > [ 34.024315] [dffedcb0] [c0732430] ip_local_deliver+0xf0/0x154 > > [ 34.024493] [dffedcf0] [c07328dc] ip_rcv+0x448/0x774 > > [ 34.024653] [dffedd50] [c06aeae0] __netif_receive_skb_core+0x5e8/0x1184 > > [ 34.024857] [dffedde0] [c06bba20] napi_gro_receive+0x160/0x22c > > [ 34.025044] [dffede10] [e14b2590] gem_poll+0x7fc/0x1ac0 [sungem] > > [ 34.025228] [dffedee0] [c06bacf0] net_rx_action+0x34c/0x618 > > [ 34.025402] [dffedf60] [c07fd27c] __do_softirq+0x16c/0x5f0 > > [ 34.025575] [dffedfd0] [c0064c7c] irq_exit+0x110/0x1a8 > > [ 34.025738] [dffedff0] [c0016170] call_do_irq+0x24/0x3c > > [ 34.025903] [c0cf7e80] [c0009a84] do_IRQ+0x98/0x1a0 > > [ 34.026055] [c0cf7eb0] [c001b474] ret_from_except+0x0/0x14 > > [ 34.026225] --- interrupt: 501 at arch_cpu_idle+0x30/0x78 > > LR = arch_cpu_idle+0x30/0x78 > > [ 34.026510] [c0cf7f70] [c0cf6000] 0xc0cf6000 (unreliable) > > [ 34.026682] [c0cf7f80] [c00a3868] do_idle+0xc4/0x158 > > [ 34.026835] [c0cf7fb0] [c00a3ab0] cpu_startup_entry+0x20/0x28 > > [ 34.027013] [c0cf7fc0] [c0998820] start_kernel+0x47c/0x490 > > [ 34.027181] [c0cf7ff0] [00003444] 0x3444 > > > > See commit 7ce5a27f2ef8 ("Revert "net: Handle CHECKSUM_COMPLETE more > > adequately in pskb_trim_rcsum()."") for previous reference. > > This fix seems to hide a bug in csum functions on this architecture. That's odd since it seems to only affect g4+sungem user. None of the ppc64 seems to be having it. And some ppc32 users are not even seeing it. > Or a bug on this NIC when receiving a small packet (less than 60 bytes). > Maybe the padding bytes are not included in NIC provided csum, and not 0. Ok in that case the bug is located in ./drivers/net/ethernet/sun/sungem.c that seems more likely. I'll try to understand that code, then. Thanks > > >