Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1643951pxp; Thu, 17 Mar 2022 13:27:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRSysN45X+2oqlgLneSXq8X9T/VPiu0E3bIXq1ozwpV1anLAi+CQqm0+aXkfgi1XR8Y6iF X-Received: by 2002:a17:902:b782:b0:153:e0dc:755e with SMTP id e2-20020a170902b78200b00153e0dc755emr6019628pls.1.1647548853538; Thu, 17 Mar 2022 13:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647548853; cv=none; d=google.com; s=arc-20160816; b=ZAmpbHxGyysDWTFsFr9zZAVxT0GaoMc4J9tYq+F1sBzQ1vNNTJqzC/cnO+PoAxwNBn lHQrxy3b/Jl4/nZyCASs/uE9XhuqMN9T20N9hkGzi9IwSYp6uN++AlU3Swtch01HqqXB UxIsmuHuDYifOWczOw7oBYlgw+aRYirCbPHp0inXrH8wYUWfOG2mqWOacu/CQwcwsnmA isBRxXgs681kDUpxnVCqecnxfitgo4WVVt5A1OAGiE7DZlux+saiInbTcZh2XPSHTiOi MHNpGc4r8oOXXVDFOTwqWiJ75M/CmP42NxaofONaBtlQmpT9uzs8+nl7bNrQ3ac+jF8w 8OAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=L1e+fcWDnZdQZM9oD9cXnUDNEbXoK01OS6ilM8+cAaM=; b=kVik8MYK/5oXTeib709B5a7PM9igcim6scdcYiR/B/4EqsqKiVjhhC+sqw5qNeY/FT SZ4adGcQcSR7fJx3CcfO/+dfXRwhxoiT+IX+YR5fC5mIQxvrrRSMxwO1m0/AiwK8zJjf B5/PKxRtiSps+cP39RPYeevduRwQfnNlRN968GkHG3LEHSDXDM0eyYFxlmuSRG4MVkty Een6mXqrm3e9R+CRjR3vKD5MpjzJGQFOSlsecp+bmozoA08njquHLZ7Ruoep8gSwLKlp asQVgYdHmRdj8imss3J900VoOYZHzuzvw9ux8o6walmkBR5TKklSHQhUrf2ze1/h+MNQ Qolg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U3LXXsy3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y6-20020a655286000000b003816043ee7dsi2809540pgp.114.2022.03.17.13.27.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:27:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U3LXXsy3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E826F2241FB; Thu, 17 Mar 2022 13:03:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237680AbiCQSva (ORCPT + 99 others); Thu, 17 Mar 2022 14:51:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237639AbiCQSvT (ORCPT ); Thu, 17 Mar 2022 14:51:19 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C1F315855B; Thu, 17 Mar 2022 11:49:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 6FED0CE2421; Thu, 17 Mar 2022 18:49:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 135C9C340E9; Thu, 17 Mar 2022 18:49:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647542995; bh=8Z1XVSc7H5Hxk/DGfrhzpPCrEGYqxRVGj582MxmoFts=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=U3LXXsy3YjBCtFZPHXFuI+X3DzcHg9tNdkwTCn41x6XEtrKMh3VnpNf2c5OdXAnE7 KhvplqlDxTu2OOaKmyuftp1QXcf4QWlG9f1yuUq9O1LKWsD8mIgOHy221LWkCSlkvB GHaTdbaWApjIIgUPhzzR3I5sSsBnOHaAub0Yl3oVPdrPWR7CUKc2xhvR3X6lpslVr+ UAR4tiFy6QKhruRCWIKPxm/GvmRrzKixSTNJoCaMSaVV/d8CzPYzPJW4vDhJ6DMcMq t886+vI3CLO2tPJfkfgM8Ugb7mgmsEcY11uATWRnW11ZnhAtXijoSG6wC7Ezir6lB3 BAy6hg5eSJnRQ== Message-ID: Date: Thu, 17 Mar 2022 12:49:54 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH v4] net:bonding:Add support for IPV6 RLB to balance-alb mode Content-Language: en-US To: Sun Shouxin , j.vosburgh@gmail.com, vfalico@gmail.com, andy@greyhouse.net, davem@davemloft.net, kuba@kernel.org, yoshfuji@linux-ipv6.org, oliver@neukum.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, huyd12@chinatelecom.cn References: <20220317061521.23985-1-sunshouxin@chinatelecom.cn> From: David Ahern In-Reply-To: <20220317061521.23985-1-sunshouxin@chinatelecom.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 3/17/22 12:15 AM, Sun Shouxin wrote: > This patch is implementing IPV6 RLB for balance-alb mode. > > Suggested-by: Hu Yadi > Signed-off-by: Sun Shouxin > --- > changelog: > v1-->v2: > -Remove ndisc_bond_send_na and refactor ndisc_send_na. > -In rlb_nd_xmit, if the lladdr is not local, return curr_active_slave. > -Don't send neighbor advertisement message when receiving > neighbor advertisement message in rlb6_update_entry_from_na. > > v2-->v3: > -Don't export ndisc_send_na. > -Use ipv6_stub->ndisc_send_na to replace ndisc_send_na > in rlb6_update_client. > > v3-->v4: > -Submit all code at a whole patch. you misunderstood Jakub's comment. The code should evolve with small, focused patches and each patch needs to compile and function correctly (ie., no breakage). You need to respond to Jiri's question about why this feature is needed. After that: 1. patch 1 adds void *data to ndisc_send_na stub function and ndisc_send_na direct function. Update all places that use both ndisc_send_na to pass NULL as the data parameter. 2. patch 2 refactors ndisc_send_na to handle the new data argument 3. patch 3 exports any IPv6 functions. explain why each needs to be exported. 4. patch 4 .... bonding changes. (bonding folks can respond on how to introduce that change).