Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2750065imj; Mon, 11 Feb 2019 07:56:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IaQNw6jLAb9Yw73+JgBtts2CbaRImnO/cwBDW/Ji0P8tFdaR/EuF1RYBVkBEJYKC2NPOSxX X-Received: by 2002:a17:902:b10c:: with SMTP id q12mr13967697plr.210.1549900619324; Mon, 11 Feb 2019 07:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549900619; cv=none; d=google.com; s=arc-20160816; b=RdJ0h4T0BddjJ/Fmi/EUr8foacz0152NsqGMDlT1627IOEmck6p806PPwIz18F2TPA RnllpxzlUd1Z29psmsE/AnFwtmeyYxxG5r1BBfa8sFBQQWGvaOMEgd8r+eHqEljcs07k WnDcL9Z32Qob7v4Pd9JWYAAKgk1iJhIxqTr0q45m+0JW8KTMRNTROH6dGN7s1Cos8iwu hczu8ZmwdKch3O/MGSJNLgQIS5w6Tn2SGUwlHmPKoYobKnx5oqFVLybtO+lcDEk2TuqZ 1ObF89INiXWaO9bFD+nYRIbkazeFLicT4wN/G+VbrJgBqmDJ0rW7WNXkCwTHPevpXmgo ALZQ== 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=Oph6rnEscC75iCT0avUuGgtntxUZ5Hthq3jHyYjkgP4=; b=cdZIU54kVvfYMA1cSRgm5LrKUw/7GWhzTYafDT398XJSJt3NIJuqDD7wLqZ29anCoO wdGZVkhmUvOgaNOrZywNG/QzXz1cn1EayyA66jnOtgKUJNT6j3HdbKziq2hAelTSmmhy FW9aoOMDniBN8zL7xGh2qpI8NFrP8XDcEQFll6A6SAN2+KqzeutP3w8XZPcLpZBYBjwK flKGa55BkcNXDMgVu5T3iY+AFUGKMQcNBaXgRPF1xSvbctbqkY91GFseEL46SuujjptR 6ay8FnP92c9Db2xORwt1gmefS/oNbZfp05YdQDa+m9Od+M1asUhOtI7y8gqCZLSmVk01 0VIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h7pxQXgy; 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 l27si657071pgm.456.2019.02.11.07.56.43; Mon, 11 Feb 2019 07:56:59 -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=h7pxQXgy; 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 S1730374AbfBKOfA (ORCPT + 99 others); Mon, 11 Feb 2019 09:35:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:43442 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730739AbfBKOe6 (ORCPT ); Mon, 11 Feb 2019 09:34:58 -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 55FF92081B; Mon, 11 Feb 2019 14:34:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895697; bh=9iqADzwZ7J3ut5GRzbEAG8xRWgIka3ptkqIJiuUtaa8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h7pxQXgyHKWNgbHxc6XwktxK8SyBGmS7nen9Pc+rZ7abbtR5i6rP8ejxE8h5C0PR0 mXJq0XkQ+4bJnfjA2f1Rk1Vy4BhmD8L6pnMmq8zn6OqnE840igkLwUY8DatdzKcRYl ryaDYo0G8LHTkLNiXPX2Btiw2Oc4O7oYhiUwkP0A= 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.20 293/352] enic: fix checksum validation for IPv6 Date: Mon, 11 Feb 2019 15:18:40 +0100 Message-Id: <20190211141905.538482156@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@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.20-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 @@ -1434,7 +1434,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; }