Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1753542ybd; Thu, 27 Jun 2019 00:45:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0o7DzyYoAWY367ltlDm0jAdGwI/AnvpcF4wbTAfaQ358iTR/DhyvMZOpxS4QsPCudmuZX X-Received: by 2002:a17:90a:bb94:: with SMTP id v20mr4420339pjr.88.1561621558798; Thu, 27 Jun 2019 00:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561621558; cv=none; d=google.com; s=arc-20160816; b=WpOPLpKf0MLwB07uB2MSq2um4WbXMVg2+wDzF3tkDTzFx49rm0tu5KvsfrX0zjpDyk Z/HfVvsGOZgx4jFx4F7zVb/6fPPyyPny1nDHlFGbesNlrOxzrZd2Ki5I91Sp+zYJOoTI Vu2WNtCqTAI+uihlafoExk8nmL/Sxe0PyGNoo9W1HsbH4NdA6rfiPlvLQ9i3miQIKlAi 6e4wHUGC3sez14QHb7EzDqacR650mk1sl/OsWucmoXnNxy/Z9l/ZsmRyntyqxxKEO+Xb tpO9eR3s95sJqRrIl6YD3OZgO4967m5JlD2zZ3/N6p4dPxAVZ0L4M8bwUsjkrP55mebz 28tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fRhMiuM9D6lNqKr68YbS2wqBEbQrlCyklKLmB7I52L8=; b=KFgFY7XvLiprm2gZd1OUbdUYFLvEvRTtCNslYRrutqD2gZIgWzHgpzuVzPzalpDZOZ zTkEo0OKCgI+h2gw/R1IV+wc3OtD97sir/0GvNehg0+MfXVH9yi9RYADEx0ssEpJpwpq LwiMQ7i/xf4qzpGpUJkJ3ADGKD1MxlbJDK5HQzhf3kz42oUSBRI1F7j4HFIfw1Gh859g OYiTx5XXYI2AuBw67yjSZ6/VPG+1bRIk7NeRBGFemCH8UF80cf7i9l9KtoJkUXEG0wII OVJXZ75bhee7Yd4EjzmdF/PHW5uk/ZPRJ9NvH7kZ++PArsJk++5A96GTilFElGhDn9+Z taUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=suTzBU5N; 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 j14si1354841pgj.519.2019.06.27.00.45.42; Thu, 27 Jun 2019 00:45:58 -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=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=suTzBU5N; 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 S1726375AbfF0Ho6 (ORCPT + 99 others); Thu, 27 Jun 2019 03:44:58 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39673 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726369AbfF0Ho6 (ORCPT ); Thu, 27 Jun 2019 03:44:58 -0400 Received: by mail-wr1-f67.google.com with SMTP id x4so1311722wrt.6 for ; Thu, 27 Jun 2019 00:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fRhMiuM9D6lNqKr68YbS2wqBEbQrlCyklKLmB7I52L8=; b=suTzBU5N6EkJIWq35Uka0kDQWuiTo+/EbommBMOxKid8dyF8atsySar5l1rISdF5JR f1dVxxzOTVLOYT+9jr8Xo4LjspHImaKHMTyB3tKX9Ce0ynQZXuq4dQog6CKBQ/FuWkpu fmX6UACWyV2k/iUc8MJXIX85prldCEDIXbgyUmFj/d8ufh7+mS+4TlexuAmELOZvsWNB ahXwnfENQVhhSDaHIK9wn3UvyzUJjSN7R43zgCAiY0yxvErWtGnj5UyBLocx58h6VXlI D70lvpUjxbHGtZuvXXGW0463m8XLAQZTViUjJOVU6cYzkKVa690fn0vm+sL1mmaW1hqq 7pPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fRhMiuM9D6lNqKr68YbS2wqBEbQrlCyklKLmB7I52L8=; b=aIyfxQJiH14dbZRfRfhSRe93jaE770sVgHkQxxIiDtXNVpSs0f2+xJQbj5vLgjW0t0 wIIbC2s49UJXm3Ba4X0njIuMnupk9Me+riyLEJPwubciohwlN3Z+osF6o7t3HxtCO5S9 /C6whSX4wL11tsy9AzLbhcpijFRAqGouklek7ammWwNrc+T9ud6nt9hhUk4LGjwEj7mT KE1JTuCSve1+aVuZUR4Y3pEgY1NBBV1QoCle9y/1xxqA+q6c+4+z6iS2mGqn/d2+gWSL LsyuDro+5s+7hDzZjEitc8s90W5CBgGy5itC2CwBBxRnEiK3bnEdGJhU/4lTdqVXLfjp xyow== X-Gm-Message-State: APjAAAUsWcAn+5vPTrxHNcbXzSKb5i4QAhVZFff3bONbyhau5QFyPtY3 FDuZ//shQfCwY/htUpuU4CE4wQ== X-Received: by 2002:adf:ea92:: with SMTP id s18mr1831696wrm.257.1561621496090; Thu, 27 Jun 2019 00:44:56 -0700 (PDT) Received: from localhost (ip-89-176-222-26.net.upcbroadband.cz. [89.176.222.26]) by smtp.gmail.com with ESMTPSA id g10sm1487752wrw.60.2019.06.27.00.44.55 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 27 Jun 2019 00:44:55 -0700 (PDT) Date: Thu, 27 Jun 2019 09:44:55 +0200 From: Jiri Pirko To: David Miller Cc: yuehaibing@huawei.com, sdf@google.com, jianbol@mellanox.com, jiri@mellanox.com, mirq-linux@rere.qmqm.pl, willemb@google.com, sdf@fomichev.me, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v2] flow_dissector: Fix vlan header offset in __skb_flow_dissect Message-ID: <20190627074455.GE2424@nanopsycho> References: <20190622.161955.2030310177158651781.davem@davemloft.net> <20190624034913.40328-1-yuehaibing@huawei.com> <20190626.192829.1694521513812984310.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190626.192829.1694521513812984310.davem@davemloft.net> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thu, Jun 27, 2019 at 04:28:29AM CEST, davem@davemloft.net wrote: >From: YueHaibing >Date: Mon, 24 Jun 2019 11:49:13 +0800 > >> @@ -998,6 +998,9 @@ bool __skb_flow_dissect(const struct net *net, >> skb && skb_vlan_tag_present(skb)) { >> proto = skb->protocol; >> } else { >> + if (dissector_vlan == FLOW_DISSECTOR_KEY_MAX) >> + nhoff -= sizeof(*vlan); >> + > >But this is wrong when we are being called via eth_get_headlen(), in >that case nhoff will be sizeof(struct ethhdr). This patch was replaced by: [PATCH] bonding: Always enable vlan tx offload http://patchwork.ozlabs.org/patch/1122886/