From patchwork Wed Nov 30 20:12:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Toppins X-Patchwork-Id: 27996 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1133562wrr; Wed, 30 Nov 2022 12:25:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5h5KsGabFIo10N3Xn4lSBXaU3ZcVp5IIRsm8aQxn15XHQyd39c24cCquWMiPbbNJ0xu9n4 X-Received: by 2002:a17:90a:2845:b0:219:396b:75c7 with SMTP id p5-20020a17090a284500b00219396b75c7mr16978756pjf.41.1669839903279; Wed, 30 Nov 2022 12:25:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669839903; cv=none; d=google.com; s=arc-20160816; b=IGHO5UAjuUrM72nBDE0X66QFGh7+j3hTqXSgknNnCL8PcS3JgThXAimz14X6TPEi7H NQb60NDbwIS/izT8fGxefjwwBaJsuEx10L1SFvbABPucDGcSQmOsG6gSVGmmWg+KTIpi WEYTG8lC1DVSy3IrJ7FcFx6GB4c+zAbD7Ef1tMCn7fei9YB6xTYSGKIwKcUjyri4NICI /Pd71e4YfsceS00j3DTvr1wbFiTzZ29Vwlz2BjaW5RNByBkDIZZpUzBvozXBFEbwp/TS 63wJO0nAsy5EfrvgqB7pPqetEN0+MiSH2AI4hFRUdjyuLuqMmg2DZ/lk2nUb80fHp835 ZUwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=O/ACbPWJzhL/TJjykISR4TVd2EF9AhDhJnsvcQ5tN5U=; b=evi8Yh7PjVq47XpD/32Rjdn7712KYYbP1GVM9BuT1xXWcz/2ioqPC7TeG5Q7EOWyda ikwsNm6suEsQPJWi/9kjuiTk9jDmVUyeJRVv9uIOi0foAwAFchq7rKMNGqc9SBoU69DK CrfTelWkHt2ocAqQdr1ERCHuxphKeKuyIIfT2uR87zqWB3kWQ7luIniVNxa3FdWnYpTp jTnmQX5gNQJaLBSNX0T5F0SLp1jbHVZDIp9SjISqeiotPixNI2Ov9jtT32Pj32beEAwI hBZ9IrPHsEKhrs/yZQwLLXu5pZqHhkzuXYHyBoPIAdc2Sw4OrlNs1Il1A/fjmRP3FYF2 /47g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="b/5uSoBv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a170902aa4500b00183d1436ef0si2002905plr.33.2022.11.30.12.24.49; Wed, 30 Nov 2022 12:25:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="b/5uSoBv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229989AbiK3URb (ORCPT + 99 others); Wed, 30 Nov 2022 15:17:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbiK3UQ6 (ORCPT ); Wed, 30 Nov 2022 15:16:58 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FEC0632A for ; Wed, 30 Nov 2022 12:12:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669839148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O/ACbPWJzhL/TJjykISR4TVd2EF9AhDhJnsvcQ5tN5U=; b=b/5uSoBvuBvR02MdaWCxT/gESYogzrWDfECXAJuL5xTEAHew+sJOxkAPx8LWnK8xXfVI98 Zic+LmcgAOEjimhPbVLo3RSlkw3MyTbf39C09TDIOfBP1a7E2Ca92rhSjC61kBuAYf7qne YKSRTgZbu6nKUlBSmp/HXGDZtrvVI24= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-629-V1fGSWfFOQSbZI-WI4qzng-1; Wed, 30 Nov 2022 15:12:25 -0500 X-MC-Unique: V1fGSWfFOQSbZI-WI4qzng-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EDAE5801585; Wed, 30 Nov 2022 20:12:24 +0000 (UTC) Received: from jtoppins.rdu.csb (unknown [10.22.32.182]) by smtp.corp.redhat.com (Postfix) with ESMTP id 834A8C15BB4; Wed, 30 Nov 2022 20:12:24 +0000 (UTC) From: Jonathan Toppins To: netdev@vger.kernel.org Cc: Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 2/2] Documentation: bonding: correct xmit hash steps Date: Wed, 30 Nov 2022 15:12:07 -0500 Message-Id: <32b70509bb70966e13512c1b33958e1e52dbd81d.1669839127.git.jtoppins@redhat.com> In-Reply-To: <4c3f4f0b8f4a8cd3c104d58c106b97ce5f180bc1.1669839127.git.jtoppins@redhat.com> References: <4c3f4f0b8f4a8cd3c104d58c106b97ce5f180bc1.1669839127.git.jtoppins@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750954046532107813?= X-GMAIL-MSGID: =?utf-8?q?1750954046532107813?= Correct xmit hash steps for layer3+4 as introduced by commit 49aefd131739 ("bonding: do not discard lowest hash bit for non layer3+4 hashing"). Signed-off-by: Jonathan Toppins --- Documentation/networking/bonding.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/networking/bonding.rst b/Documentation/networking/bonding.rst index da57aac73ffc..adc4bf4f3c50 100644 --- a/Documentation/networking/bonding.rst +++ b/Documentation/networking/bonding.rst @@ -957,6 +957,7 @@ xmit_hash_policy hash = hash XOR source IP XOR destination IP hash = hash XOR (hash RSHIFT 16) hash = hash XOR (hash RSHIFT 8) + hash = hash RSHIFT 1 And then hash is reduced modulo slave count. If the protocol is IPv6 then the source and destination