Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp962294imm; Thu, 4 Oct 2018 06:15:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV63UT92KU5svlEIolSpufvblcQJnXR1LVJUQUgHUWNMIHuokm73VqHUkOOcbEtzrW8G5LB+V X-Received: by 2002:a63:141:: with SMTP id 62-v6mr5350376pgb.406.1538658951823; Thu, 04 Oct 2018 06:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538658951; cv=none; d=google.com; s=arc-20160816; b=w7OlaB/FahBTC7SH2N8UmajPiBkWi9JTo9v+RRwFyIxqhCREcSvtvHRAiMnwzme+JH TmSjYZApBMfj4Zsx8XSOYetYoIH4s5XfpZaMesk1V10kMQ0kLfwkkYlw/G6C8EKA6XVe hVtvbgY+DC+sgGEV9MhdVJDjQMAAlDdza8SHFzibbZABvVmq2Dw+FDlT8dVNW9fJjvIm enj4OUXWx2lsW7z/aNY9YwVEaggyguZ3ic+egoyhur8aAyddxcN4RduOQ3HtO1WkCSWl TMVk19Cj+GX6Cqhm9B4ymIrtvYlP3/wOVPomWKmxEviNS19SFXk17Ps/egt/Olp1sYfS krAQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ChEc5ZaYYdjtiFUyIqlpBAJWgefqYvyY+GdTUZ0BHGM=; b=IqA4XCD450AGboAVx8N/ch8PMwuGm7PbOYXxSU8F81Zr/AhDxfj+yUqMJty+90QP9k 3Kkb/bqzlpD4K7lHlGkO1bDl8RV85CN8pNmuEipr9bQt2TmRZtws7/vQa2q++RlPLMqK ZZkKwOm+KaF0rZRwcpzMMUoCqhB/qmLsHb8eFJyTLoNz9hwoaAs6Znn0P6Il0cz+kbap XHAdVA4qXhTMels0RhiOKeQ8T4PJHQYb+xVIGLREffeCCvkY2X2RS+yme2FTTtKudvdK sDVt1xIAlf0xjZgX9o4rK0/uuKv775srhg15IMfR/Y7rhFQtfDmjcGH7aAC7EUs03HrL aD7Q== 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 n25-v6si4324400pgl.508.2018.10.04.06.15.35; Thu, 04 Oct 2018 06:15:51 -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 S1727705AbeJDUHR (ORCPT + 99 others); Thu, 4 Oct 2018 16:07:17 -0400 Received: from mail.bootlin.com ([62.4.15.54]:38489 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727336AbeJDUHR (ORCPT ); Thu, 4 Oct 2018 16:07:17 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 5AAC82090A; Thu, 4 Oct 2018 15:14:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bootlin.com (AAubervilliers-681-1-28-153.w90-88.abo.wanadoo.fr [90.88.148.153]) by mail.bootlin.com (Postfix) with ESMTPSA id 0F3F3208B5; Thu, 4 Oct 2018 15:13:50 +0200 (CEST) Date: Thu, 4 Oct 2018 15:13:50 +0200 From: Maxime Chevallier To: Sergei Shtylyov Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Antoine Tenart , thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com Subject: Re: [PATCH net] net: mvpp2: Extract the correct ethtype from the skb for tx csum offload Message-ID: <20181004151350.11dfb626@bootlin.com> In-Reply-To: <13fb6bd4-db67-6c35-9e6d-09ed89e10a45@cogentembedded.com> References: <20181004080308.7687-1-maxime.chevallier@bootlin.com> <13fb6bd4-db67-6c35-9e6d-09ed89e10a45@cogentembedded.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Sergei, On Thu, 4 Oct 2018 12:50:17 +0300 Sergei Shtylyov wrote: >Hello! > >On 10/4/2018 11:03 AM, Maxime Chevallier wrote: > >> When offloading the L3 and L4 csum computation on TX, we need to extract >> the l3_proto from the ethtype, independently of the presence of a vlan >> tag. >> >> The actual driver uses skb->protocol as-is, resulting in packets with >> the wrong L4 checksum being sent when there's a vlan tag in the packet >> header and checksum offloading is enabled. >> >> This commit makes use of vlan_protocol_get() to get the correct ethtype >> regardless the presence of a vlan tag. > ^ of? > >> Fixes: 3f51850 ("ethernet: Add new driver for Marvell Armada 375 network unit") > > 12 hex digits needed here. Sorry about that, I'll resend with a proper Fixes tag. Thanks, Maxime