From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikolay Aleksandrov Subject: Re: [PATCH] net: bond: skip vlan header when do layer 3+4 hash policy Date: Sat, 31 Mar 2018 12:22:45 +0300 Message-ID: <3d49c6b6-def8-a58c-5eeb-ed9e7df3f289@cumulusnetworks.com> References: <1522487670-15796-1-git-send-email-liujian56@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, weiyongjun1@huawei.com To: liujian56@huawei.com, davem@davemloft.net, j.vosburgh@gmail.com, vfalico@gmail.com, andy@greyhouse.net Return-path: Received: from mail-wm0-f67.google.com ([74.125.82.67]:54606 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752959AbeCaJWs (ORCPT ); Sat, 31 Mar 2018 05:22:48 -0400 Received: by mail-wm0-f67.google.com with SMTP id h76so18546202wme.4 for ; Sat, 31 Mar 2018 02:22:48 -0700 (PDT) In-Reply-To: <1522487670-15796-1-git-send-email-liujian56@huawei.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 31/03/18 12:14, liujian56@huawei.com wrote: > From: liujian > > When the hash policy is BOND_XMIT_POLICY_LAYER34 mode and skb protocol > is 802.1q VLAN, the policy will be degenerated to LAYER2 mode; Now, > change it to get the next layer protocol to ensure that it worked in > BOND_XMIT_POLICY_LAYER34 mode. > > Signed-off-by: liujian > --- > drivers/net/bonding/bond_main.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) Nak Use BOND_XMIT_POLICY_ENCAP34 (encap3+4), that was one of the main reasons it was added.