Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2957222imm; Mon, 28 May 2018 20:55:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqTviB8vIUvtV3b7/JptnN2T7nNLHgEb5J4G2Hgd+rFGwONAYMOA+KT3p98HxJCgFsgmVwf X-Received: by 2002:a63:62c7:: with SMTP id w190-v6mr12748038pgb.104.1527566136717; Mon, 28 May 2018 20:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527566136; cv=none; d=google.com; s=arc-20160816; b=CzCG2XC97+7pVyBouDbe8/1CgHwgLRzikiSgpRIY/20pw2ZI2lAMcXjj9A0nzp1Nmp i4/jMF2JInMF2l4K9lbbl2/ukWkqkUI81vSDFIbLIT6A1A8gkxrmNVbci7yAXy2G4iPV F/nNlnorfibb5uFpMbPWxn6uSZIng1W9Ai7H+s6XZJ0jtPt1W82nnjNGCwybBIIdCGf9 I9g6MfUyhb/RX/6Vx6ZHzpJ4Pfw8V6MFmH9xHUMsNAEN4LkuOGevZj3ZujkDmLXij95F YHnBPNLRUU5oBvbceTwjkLT+oi/VC9lAIWOsKqxNAqhPWpefZzj+nsVrh9l2VHKs8qRS T07w== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=tJUSZCy9RWRaGrfusIeT9aI/r4sAcRbvjMB9qiSWAD4=; b=ZtVNZSyYX9rbHYyQSxTeEP+6gHXmJQseqoDSZJDLx2hxZj9xcIWAokiDfByCMGZUTv lb9IgN2LczUj7vr+kBL9byWB7M5N2Pwjlnu4k1qSsY4v6nJ7pM3Z1MCoCVcZBfHr+zOx jGtNaHyrI2airRSLgg8aXs5/H3DgAtaHu0zZQERkL1Y4N7ma2QyWJ2rkyQPvNfxb7BIv LX2i8fyrjIVXfLbsIcR0SLXaTqGFnJZjLPVEmcl4DwpmadAYYwmQYSznvD+sOLoARDMV WS/2ZPIaW9oJUBaL/VYtXNf5bUbASSieCnKm1YEBlRlYc+Q8lZIr0Npc2FcBC+dKff/l ryCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Uk/mBObo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16-v6si31643040pfe.291.2018.05.28.20.55.22; Mon, 28 May 2018 20:55:36 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Uk/mBObo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935078AbeE1XNr (ORCPT + 99 others); Mon, 28 May 2018 19:13:47 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:35730 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934579AbeE1XNn (ORCPT ); Mon, 28 May 2018 19:13:43 -0400 Received: by mail-wr0-f194.google.com with SMTP id i14-v6so22400905wre.2; Mon, 28 May 2018 16:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tJUSZCy9RWRaGrfusIeT9aI/r4sAcRbvjMB9qiSWAD4=; b=Uk/mBObojTS2bRTP693VVAgNHfV+NXEI97DayJPEH+S+CaizvbcnD48HtCh6/YlCli SeRjZGHiNTwFM/Hf+dkw0mNkDG/g9corUiMMoiPI7hiWXSbSKRUyK2dcU0dLU8W4Q8D0 ZlkO3fWINl9p/HNDd2XE6GGteY9mTPcCVDJj4JRd1OnjYc8Vs1C1GDr0mpB5AhKFxhhO n+Lvi9FTPy0xHy4DPgOTmifKqxM/fADlna+RckneayaJKvizXpHLFMiAuMx8tMvg7RBn gOIXLyL8afYXo2z26c4NdU2epSZNkJGZVDPNFnKGcfh9b3B/7aPXHYomre9hPT6Vw2Y9 ovpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tJUSZCy9RWRaGrfusIeT9aI/r4sAcRbvjMB9qiSWAD4=; b=Z+LPmv5LxH4Sv+81kmB1z4Rm2F3iLwEpQTpzVdvYy3hZ6x0Bg8Nay70Bi0fQOQzu7m q6BUFcW5dvl4lC05Q4r1aRdX/ZhSkHYGK5Z482xaLeUdw/Bc9A4qY8/687SgLE6R2m1a 3PzfnR2mQWxCneNu5mn19GD7FPU+GxTSqbpCgxNAuRVtdAoDqdkP0qdbdW9WXZOe37Qn 7iQWgbB1C59KgZo+eneAFhNhfONQmJ6lmFfcMJ/TPwKVvjCEUDhyhpUCdztrTSbMWmYb nDy3ED8Jn4VSynmxTHyeO5wZoJPcH5PF5JC0sjEHpl97Gc++3Xc/qDwn0BcRGZfHzYcM MAdQ== X-Gm-Message-State: ALKqPwdchkWdz5BXQoNO4wjyuCHkrfnBQ/AP4lw+v3pex3qnhJhQID45 Kz4ss7R56OjMGEEijc6TVj3tcSUei9K/3kywATM= X-Received: by 2002:adf:90cd:: with SMTP id i71-v6mr11538219wri.136.1527549222525; Mon, 28 May 2018 16:13:42 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:480b:0:0:0:0:0 with HTTP; Mon, 28 May 2018 16:13:02 -0700 (PDT) In-Reply-To: <20180525.164337.1433478215018599363.davem@davemloft.net> References: <20180524213829.15208-1-jmaxwell37@gmail.com> <20180525.164337.1433478215018599363.davem@davemloft.net> From: Jonathan Maxwell Date: Tue, 29 May 2018 09:13:02 +1000 Message-ID: Subject: Re: [PATCH net-next] ifb: fix packets checksum To: David Miller Cc: David Ahern , mschiffer@universe-factory.net, zhangshengju@cmss.chinamobile.com, ktkhai@virtuozzo.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jon Maxwell 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 Sat, May 26, 2018 at 6:43 AM, David Miller wrote: > From: Jon Maxwell > Date: Fri, 25 May 2018 07:38:29 +1000 > >> Fixup the checksum for CHECKSUM_COMPLETE when pulling skbs on RX path. >> Otherwise we get splats when tc mirred is used to redirect packets to ifb. >> >> Before fix: >> >> nic: hw csum failure >> >> Signed-off-by: Jon Maxwell > > This definitely seems correct, but I am really surprised a bug like this has > lasted as long as it has. > Sorry for the late reply I have been away for a few days. The customer never saw this on bnx2x. Then they switched to the mlx5 driver and it started happening continuously when doing iperf3 tests and also for other TCP traffic. mlx5 uses CHECKSUM_COMPLETE. I think that bnx2x uses CHECKSUM UNNECESSARY which avoided the code path that triggers the csum failure message in __skb_checksum_complete(). It only logs the message for CHECKSUM_COMPLETE skbs. Probably few Linux users are using a combination of NIC drivers that use CHECKSUM_COMPLETE, tc mirred and ifb, which is why this has never been reported before. This is very similar to commit 7be709af2b65. > So I'll let this sit for another day or two for review.