Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4208807imm; Mon, 18 Jun 2018 10:55:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKz/OeTQQLO4o0RqPnoHkgpxNKsH3NmxJnPjJr2DYeY6tzXLEgQDPvn38J+9aOrVQNk2PVZ X-Received: by 2002:a62:f5da:: with SMTP id b87-v6mr14640989pfm.113.1529344543865; Mon, 18 Jun 2018 10:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529344543; cv=none; d=google.com; s=arc-20160816; b=Fgd9wcjfStEwOr7717N5lceFL68RFfPyn1PEs/jMxR/7bpZM+l4nmfozM7QIu7DAn9 7nHJn0OWarSqsBPt9r8I+a+iFJXIWz+YOByhwOqyyQ0ga4s+Gs0apvcyZbzLCkxxuriG JlDfrrd5/0nS1Cjv81pFRnwB8z+t3RPpCrX70L28tLWhescZnbq+v80b7nIqPtTbyH0F SkQY5O6ouX7YL48RQYeMNVMp0l4SdPcohON3nxlZWeIuttBjy8xWTuz+Vm0HsdeTVUav MJVZfR9yndTnTK5eTu7K0mtw48kZh1wVUFNPBfTgGOs6ZkXgJYQRhQtCcfYZ9i6oOjQz b3Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=T9Mpew3EHlhHhRd158mNi5T/nE7IO/QPhJY4sgL2QTE=; b=tCkUDQVlAn78eQe9fJluW49vGgEoEEaS4vDVs8EKawD7528Pg2Seg0K9xR3hlQyAHR 4k8G9uR4OvkO3pyUNyO8GqxAehJ+3Cu2iiaodNciMLSuobP3iy95ha20oyeJR3GBky+O MYkf/PA1yYhhJAPs4Y+N6iMNDKVrecJ2hmTFS9GfpmFuIHq6UsRu6ZqtwkMRWZ5X9H6S lfzQuGTOiadS+llStz4+j0nQgMiUTuzGjuMO2QhchWdv0ixUC3EDuBVx3Gli2dDv0l7X n/+YNE0zJwuxk0S/oBCjh5XUIwtUhMmc+zlPgOiOZPqPgC1P4E/C6zRLvOnl5tTnvvFx qzOw== 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 bc12-v6si14800737plb.373.2018.06.18.10.55.29; Mon, 18 Jun 2018 10:55:43 -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 S935562AbeFRRyy (ORCPT + 99 others); Mon, 18 Jun 2018 13:54:54 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:54312 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935347AbeFRRyw (ORCPT ); Mon, 18 Jun 2018 13:54:52 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 418dyx0WQ1z1qymB; Mon, 18 Jun 2018 19:54:48 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 418dyw66lFz1qqlB; Mon, 18 Jun 2018 19:54:48 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id t-jXgtYc5GZs; Mon, 18 Jun 2018 19:54:48 +0200 (CEST) X-Auth-Info: YJ9Xv45Ot+XN3njQQ+a1fJKCJDrzrQXP5VLkQtegbF0lFA4xbe7nHukbVjCk4Mcq Received: from igel.home (ppp-188-174-155-192.dynamic.mnet-online.de [188.174.155.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 18 Jun 2018 19:54:48 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 884A82C10B2; Mon, 18 Jun 2018 19:54:47 +0200 (CEST) From: Andreas Schwab To: Eric Dumazet Cc: Mathieu Malaterre , "David S. Miller" , Eric Dumazet , LKML , Christophe LEROY , Meelis Roos , netdev@vger.kernel.org, linuxppc-dev Subject: Re: [PATCH] Revert "net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends" References: <20180615185645.8921-1-malat@debian.org> <9d88677a-f2be-2089-79df-15df4e9a5dd6@gmail.com> X-Yow: Yow! I'm out of work...I could go into shock absorbers...or SCUBA GEAR!! Date: Mon, 18 Jun 2018 19:54:47 +0200 In-Reply-To: (Eric Dumazet's message of "Sun, 17 Jun 2018 15:54:48 -0700") Message-ID: <87o9g8geu0.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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."