Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2688471imj; Mon, 11 Feb 2019 07:03:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IZR3OunF5JAEAGT3b2mrNPZEm91UitB1h2PCYQJppSLtdPd+CKPphWmVBI/umH/SSahfaoQ X-Received: by 2002:a62:5c41:: with SMTP id q62mr37757980pfb.171.1549897417575; Mon, 11 Feb 2019 07:03:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549897417; cv=none; d=google.com; s=arc-20160816; b=lEaD4a2aPp48BETYg3yhbdyb745P2VFM3QxKH9rohCEQbTIclJKY7D42t4sqMulv0e ROTb2sK4XkpUE0OaYdbUcntB9KKMsePlnlh6V/DC1w8Rf86AjFnTY/NOt7ykoDbEoLRs oqO8wklUSmKjLtD/TS7ZDGEzkVSxBCK3kUgp/e5V0W45I4YdT3oOyFgdkj6T54Jz1RFP ToIMHg2orLj21LEBKPCR7evTvyx5sAemrLN0obq0c3WvHqFLopIiU31JoKEaYdiwF8Bm 92eWuZWdsV/K8XVZhI2CQdeo9HGumGfVHFNse0br9Z2YldvLGrCm8PPWmkjWUDBpkJe4 6AeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nUO69XvmW1S9sLmHxTghIghmovVH/6CYkL6KvlqbFwY=; b=m8PBqPPen/qPXENMLSA7hgfj5XGTC7WWBIWgaF2ch+GMLFNC2QqYtsmniPHmeLa6yV 4yS1kEmr7vBc5irLB88ozD4gh7DniKIgCiZiOtgAnNKTXyVihradyP6T0gN6BZvDbK8k VCQ5AdPyxT9Hn/wbh4nceG4t7M0oMr5M7lQZk/ik0okWl37EqJbo3u8JdlKSmtSDwrtE ZhJ9b5HwZIKpxPCUL3PGGsf00+E69+NSqcD0/NMmaHkaC38SBVa7a0vhNIj8YphOP5Ef /oa/Z/AkRoHwSqPg8ukAdTPBkLb+4mJiD8wU/WjPs4Ve7arUeQC3Y9TKMGqe2hH/aLaV JEmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Pa2qrL/t"; 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 u9si9291797pgr.550.2019.02.11.07.03.19; Mon, 11 Feb 2019 07:03:37 -0800 (PST) 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=@kernel.org header.s=default header.b="Pa2qrL/t"; 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 S2390367AbfBKPCO (ORCPT + 99 others); Mon, 11 Feb 2019 10:02:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:50398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390357AbfBKPCM (ORCPT ); Mon, 11 Feb 2019 10:02:12 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 057E6222AF; Mon, 11 Feb 2019 15:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897331; bh=vcRudycwliNbwvJNrph9NhfnFZYigEjeJ5oeBXta6fU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pa2qrL/tjFajVrzoXEqtvqgpebOrKs4Ii0worIp5SxPTDe5WYGFcDoc8B1eMe6hkr AngCqpZMH9XIRw5Qc6npN4Kaq2r+yim4wg4/kK+ZT2dbL750rV2ZS5IYSdc4/Kfizs 6mnGI/bHa7OA8hlf8WM6HQpVt+Amrqnav7C52xTE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Govindarajulu Varadarajan , "David S. Miller" Subject: [PATCH 4.14 167/205] enic: fix checksum validation for IPv6 Date: Mon, 11 Feb 2019 15:19:25 +0100 Message-Id: <20190211141839.286004856@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Govindarajulu Varadarajan [ Upstream commit 7596175e99b3d4bce28022193efd954c201a782a ] In case of IPv6 pkts, ipv4_csum_ok is 0. Because of this, driver does not set skb->ip_summed. So IPv6 rx checksum is not offloaded. Signed-off-by: Govindarajulu Varadarajan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/cisco/enic/enic_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/net/ethernet/cisco/enic/enic_main.c +++ b/drivers/net/ethernet/cisco/enic/enic_main.c @@ -1393,7 +1393,8 @@ static void enic_rq_indicate_buf(struct * csum is correct or is zero. */ if ((netdev->features & NETIF_F_RXCSUM) && !csum_not_calc && - tcp_udp_csum_ok && ipv4_csum_ok && outer_csum_ok) { + tcp_udp_csum_ok && outer_csum_ok && + (ipv4_csum_ok || ipv6)) { skb->ip_summed = CHECKSUM_UNNECESSARY; skb->csum_level = encap; }