Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2965899rwb; Wed, 30 Nov 2022 13:24:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5SND5WulVMq01dJ3GDf4c0SGbr+G95gMHAOC9jBtZB7kyb5B6aI3c3G5EIY6W9dXdQRg+H X-Received: by 2002:a63:e411:0:b0:45f:b2a7:2659 with SMTP id a17-20020a63e411000000b0045fb2a72659mr38674971pgi.132.1669843483412; Wed, 30 Nov 2022 13:24:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669843483; cv=none; d=google.com; s=arc-20160816; b=cbQ/tHh7C7gKAupvSud06m/dF9iPhg+UtTp+/8bs/H7qq699jMB4kPR9QGzmkcvFDK k6CTE8gqcDml6j3W7ndIBOwcHi5FR6UAy3XiHkunI+TDvex4MrMmVMdSTvng89GzCfGC i9d+LHoNwkvRbrMHU9qvQ9FbSkRuQ0Uw8R8fAgipW2rParBcBReaJ06TOBXXsma4jV1C V519BhAAZiv/pn4TdCcwh1fJ8cRbhx0KPXtTYqBLN12ehGodwkLojWrf2ssEXQrwyFKE ooh9PdUf5ltQPSMwHgWDwooyJB+PVp375AqZf0mnf+F7An3MQuIYnxlrd1s2XMrIg3QT 3DWw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a631c03000000b00476d0c7b644si2360592pgc.290.2022.11.30.13.24.33; Wed, 30 Nov 2022 13:24:43 -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 + 83 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 Content-Type: text/plain Content-Transfer-Encoding: 8bit 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 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 -- 2.31.1