Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp570831pxx; Wed, 28 Oct 2020 11:21:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIrNSQ/AeXLWVFLJHtGI0Zk9Na3ebrm28JlXrDdktN3YyzDCobfQ4qYX0PHVWHzdtkozgX X-Received: by 2002:a17:906:cb2:: with SMTP id k18mr363688ejh.71.1603909278563; Wed, 28 Oct 2020 11:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603909278; cv=none; d=google.com; s=arc-20160816; b=MCaI1hvLw0adb+BA9RE1a2Mz9qvJFdLkc/hLmSjUIicI0od7FefgofZAwG+Y6mPErK hozWvuB+6ykcp0i70LXbBTF5bQbJD7BraSx0i/Glkyr99qrXV43oAfIPlJeWe86tl2DT MyC8Y9EtBzTRU0HL2gDlcCev8gu/9E4ILGKmIyrzUYNOWt803maG82RYXdiGublaufeB jrvj0pGJPaBeu4yQ1+eeGsAZgkfioy44u3BlPPKBc8xOui4v2XRbG4/+l1ZhC00zNHhq FGXrgqeH0dt8n4OgehZxDbtdjn7Ila+gXqMILhetmVAwg9G7TP2tHGKnOSG5w1sIcHpg xEZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lPk7pbrFKgm/VhDDqpJFcqEPwYhV7rtwo9KxJv+K9OA=; b=QEW8UdEJfLqUszx6teDevOjj0h5vVsjV0Z4QKFLjClATtAgq2JubFqXBpO8zCGxq0M //P733IefcyNMD9lz2X2g5znRLutSvFwel9gBBTzzm37DAOjGl2MgwzpVVrrFfLhUT0D jNjQUkdgR3Zz1Mii38MxNCjAtuQOZAxBeF/seWBLX3vwD62KG37cneEMFkEEtGNek127 KWryJ6yjO632FpizewZE3QzW9rWp6UxNCSJFwok7epXTNwXfMRM0ZxQp2ZlbQDOV5enR 0+mKy/Kr0auUKz9qvSQJ52Y4x9h+ZnWu27eckSWSq7Ot2ZTuKkKzcJfLPVL7v9sohIGM KXfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=M+T8I8aF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si3290edo.519.2020.10.28.11.20.56; Wed, 28 Oct 2020 11:21:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=M+T8I8aF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1824852AbgJ0SGZ (ORCPT + 99 others); Tue, 27 Oct 2020 14:06:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:39828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757238AbgJ0OQ7 (ORCPT ); Tue, 27 Oct 2020 10:16:59 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B301222263; Tue, 27 Oct 2020 14:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603808219; bh=RoVvdFcNETWCUPePSmyeQEpHXBqEBaEqkar10EMHUYM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M+T8I8aF8RGKfEk0hkiWiB/8gtU3c8G5e7BNy1EWDg62Rb4InewfoScBB3NnKJzkA hjy01YQMxY+L8u5/8MYfdEloJFt0QMp/5NyY7QbVz1JyE7VOr3yxKtzh6Jsm3B35U8 HJHGpf5tKxzAxGoPnarQHK4ok6lQRuT/wbgpK1d0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Wilder , Thomas Falcon , Cristobal Forno , Pradeep Satyanarayana , Willem de Bruijn , Jakub Kicinski Subject: [PATCH 4.19 001/264] ibmveth: Switch order of ibmveth_helper calls. Date: Tue, 27 Oct 2020 14:50:59 +0100 Message-Id: <20201027135430.709803936@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135430.632029009@linuxfoundation.org> References: <20201027135430.632029009@linuxfoundation.org> User-Agent: quilt/0.66 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Wilder [ Upstream commit 5ce9ad815a296374ca21f43f3b1ab5083d202ee1 ] ibmveth_rx_csum_helper() must be called after ibmveth_rx_mss_helper() as ibmveth_rx_csum_helper() may alter ip and tcp checksum values. Fixes: 66aa0678efc2 ("ibmveth: Support to enable LSO/CSO for Trunk VEA.") Signed-off-by: David Wilder Reviewed-by: Thomas Falcon Reviewed-by: Cristobal Forno Reviewed-by: Pradeep Satyanarayana Acked-by: Willem de Bruijn Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/ibm/ibmveth.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/drivers/net/ethernet/ibm/ibmveth.c +++ b/drivers/net/ethernet/ibm/ibmveth.c @@ -1366,16 +1366,16 @@ static int ibmveth_poll(struct napi_stru skb_put(skb, length); skb->protocol = eth_type_trans(skb, netdev); - if (csum_good) { - skb->ip_summed = CHECKSUM_UNNECESSARY; - ibmveth_rx_csum_helper(skb, adapter); - } - if (length > netdev->mtu + ETH_HLEN) { ibmveth_rx_mss_helper(skb, mss, lrg_pkt); adapter->rx_large_packets++; } + if (csum_good) { + skb->ip_summed = CHECKSUM_UNNECESSARY; + ibmveth_rx_csum_helper(skb, adapter); + } + napi_gro_receive(napi, skb); /* send it up */ netdev->stats.rx_packets++;