Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp939687ybd; Wed, 26 Jun 2019 08:25:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmJu2nGeWs+dXP09uC1Zuc95uMjpXfBKdUB2agq9wtZAqZr7G5F1Ez/Ymbq7xQk0czb+fL X-Received: by 2002:a17:902:3225:: with SMTP id y34mr5964984plb.135.1561562730641; Wed, 26 Jun 2019 08:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561562730; cv=none; d=google.com; s=arc-20160816; b=M7fH3s6WVpierbZDj7DDjJ4cRk7oe8Q2t8Ou2NQqB2GACgYDdlv2jsVzn4fyKUVDgN C8/UzFj2UsEANH4cuU3wtp1WzVo2D8vdz4PFQxBeXyNV6TyiMksNUW7UAPmv/VtbRiFo fxORWr8nES7HpB3T/gkloxL1meTCAj4ilDXxHw8Sl7kaM6OBoftnNUixaHnT+qkZXkL4 JqHR0Jk8zUKri7ImYF2CrDeC2ei8ihDKifitDFGcE4HAnOY9h4gtYkrealL3igZqW18Z 5d77yeCZCnrFlkJk54gAuepMWmd/gG52epx6DhPcH40py3zvMdJJ2LIj6+muzmAS5pCC iw1Q== 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=hUrLpFjxYsSye8DlerGP/4UbAK7TW/gORsGDWMbyLBs=; b=j/D9GqX7Ay7SxIksGY569Ux8i7iqdoRtlBX2jvb2kq66/zTcWJyxpPCfk8FEDlKOml D2L7E+SwTh1cr+vkQZBVQNNDP94l8644CcPQvE3u/a9JwcDHSoDut6nc4dhfuPMVnjS+ CQCvT2euL33eAchGOBCKKSzLe9JL+iSVqYVPfgxVVO6AUFfTJgQqhkb9XW0fQpNEtoLl /V8CnpmQLNp1uxIVI0R3Tt0xV5QY+0vKXsYsWhxM2iomiL8UnREZv9mML+UwhUJ/K/P+ kLle9nl6lqY9MKxb1QrnDuce0vKhD7h35Z20LTJwxY1CT1gSoiQcISLbqmhS++tzZGdJ 1pfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=SCJ0fZCd; 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 19si16985005pga.554.2019.06.26.08.25.14; Wed, 26 Jun 2019 08:25:30 -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=SCJ0fZCd; 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 S1725958AbfFZPZJ (ORCPT + 99 others); Wed, 26 Jun 2019 11:25:09 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:50277 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727543AbfFZPZI (ORCPT ); Wed, 26 Jun 2019 11:25:08 -0400 Received: by mail-wm1-f67.google.com with SMTP id c66so2555005wmf.0 for ; Wed, 26 Jun 2019 08:25:07 -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=hUrLpFjxYsSye8DlerGP/4UbAK7TW/gORsGDWMbyLBs=; b=SCJ0fZCdTOxengu7vee9R/jq+qhvNjkLrpRKrIFPxtjSq//2fsA9WoC53/m2omdync qZ8e7G2iYtnE3PiL89QSKu8vGnfY8hGhmA7i5KRvb6yLrK4VYoaZwgKN8qHzSEy49AoE QzVs7xgqDLfQLFx1yYsI3bkOsTvnBoZTXczK++HcnvUpDkTFlXtp4Z2kiHQU84Meck37 Ha5oKwI6xJlgrZHxzsKoc64UPFmh13K4vh2kK3JChy+tBBGvipgWAK/yixp+LVo7ErHw BqsmU8xr7Nb12Tqj+VzGIGsweNLTanK0F8yiiIy5hVSgGvBlJ9BJtf/6CaoYeXxCuZNY u9lg== 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=hUrLpFjxYsSye8DlerGP/4UbAK7TW/gORsGDWMbyLBs=; b=IQzDRThfpcruXJzojS98S4h61ygLWPMn8TxO69uhIY4q2Gkk9bN6ajaqTeyNa8qpLE 4IhIuGUuvlqggZZmhTVeqQn+Tls/mKRP9vtJ3ejmyE+ZQMM6cRsayJXhK0Gdtg1+Z+3H 3k11jqAz2RxbniKU/BFMhNDnzZOy1UBIP6co7haP1rqMrClknmujtmU3stISFkPJzsCN PDoAlcvQIvmcYyN87KaH/DVTDOHWAhqJwehaAWoQS+ajoc6rSPrGB6u9NG7dszh14fhA C5XgZU5/J91ZTE/ojE8Cbsk0ug3s7IOgJBjpHSNfUq2TrdR3LloJodibv08O58/OU06C hy7g== X-Gm-Message-State: APjAAAUpV6nxqbkY0nvBLp8+w+sgAdNuXHzuIr1x1/t2wC8U00aiLp35 FZvQiFpOksjF3wMDBuuklm/EJg== X-Received: by 2002:a05:600c:da:: with SMTP id u26mr3046184wmm.108.1561562706872; Wed, 26 Jun 2019 08:25:06 -0700 (PDT) Received: from localhost (ip-89-176-222-26.net.upcbroadband.cz. [89.176.222.26]) by smtp.gmail.com with ESMTPSA id v27sm41854276wrv.45.2019.06.26.08.25.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 26 Jun 2019 08:25:06 -0700 (PDT) Date: Wed, 26 Jun 2019 17:25:05 +0200 From: Jiri Pirko To: YueHaibing Cc: davem@davemloft.net, sdf@google.com, jianbol@mellanox.com, jiri@mellanox.com, mirq-linux@rere.qmqm.pl, willemb@google.com, sdf@fomichev.me, j.vosburgh@gmail.com, vfalico@gmail.com, andy@greyhouse.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] bonding: Always enable vlan tx offload Message-ID: <20190626152505.GB2424@nanopsycho> References: <20190624135007.GA17673@nanopsycho> <20190626080844.20796-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190626080844.20796-1-yuehaibing@huawei.com> 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 Wed, Jun 26, 2019 at 10:08:44AM CEST, yuehaibing@huawei.com wrote: >We build vlan on top of bonding interface, which vlan offload >is off, bond mode is 802.3ad (LACP) and xmit_hash_policy is >BOND_XMIT_POLICY_ENCAP34. > >Because vlan tx offload is off, vlan tci is cleared and skb push >the vlan header in validate_xmit_vlan() while sending from vlan >devices. Then in bond_xmit_hash, __skb_flow_dissect() fails to >get information from protocol headers encapsulated within vlan, >because 'nhoff' is points to IP header, so bond hashing is based >on layer 2 info, which fails to distribute packets across slaves. > >This patch always enable bonding's vlan tx offload, pass the vlan >packets to the slave devices with vlan tci, let them to handle >vlan implementation. > >Fixes: 278339a42a1b ("bonding: propogate vlan_features to bonding master") >Suggested-by: Jiri Pirko >Signed-off-by: YueHaibing Acked-by: Jiri Pirko Could you please do the same for team? Thanks!