Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1657917pxp; Thu, 17 Mar 2022 13:48:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWGENluelJWbvnKJqSJUqEcTZgIW+Al4dbayYaTm2HIFKfUxPP9LtyOPCyBy4xSnylbx/R X-Received: by 2002:a17:902:b590:b0:153:a243:3331 with SMTP id a16-20020a170902b59000b00153a2433331mr6769980pls.129.1647550107574; Thu, 17 Mar 2022 13:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647550107; cv=none; d=google.com; s=arc-20160816; b=n5c4tJ4MjnERgQEfy+jnjxsnRddUPfV5iRI9+C3DfFCcDLQXadkCpK0OPY5APnSMKS ljYNA/6S6jULlF6mfZ7k2tkzfrRY481YXVADCWsF0c+ASQtpxVS/FvG0CeWLta/1WjaE 86k2nTZPrktik5dikKHvqutro81ouhGC3qi0PZvqxURsIXitw1sW56RVxVuBA6fGe6e3 CIRqymSj0KJbaufzxUjg7wWplWILeiaEBqR0FwudNpWewKqwn51TRYWSQj8xXNPUs6Ks VfVGBkFjgIYMy6Gy7MV7WI3Wxx+dYmHsBqWfVrIZMZtrmqUZz87xn6eYkckCCN9ZzcJO jVtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:comments :references:in-reply-to:subject:cc:to:from:dkim-signature; bh=oGka89Ju4SH1eJbMmEz67bGmXAxdjFKHnHgVhuc4y5I=; b=ap7/y8rcq/ZHtR9zbAOMCXqQDwbBLV2YO8TTnvLPpEVSmO1/vc/QZd1BITJkKHFMlc djqtKQLzUO1qTUPJ+tSqRNzZz9Ou7+JnubpyAfRPuFOHs1D2eUR0iWfqG83MClUwABzE MIyPhnDCqTMog6nECeFs9L8me8XERNdyz8+Pwz+BNoKyKcB/UV4hdst0qqjC9KtPm4G9 1mGUTBSuzYcZebDz8k8bPG3dfaaZ2BIpNVi9jbXZxi6W6hnM0lPDCDyIxbpeagXGSnan jmEUQwP/u9rkjvaxc6BWsUuKEmRhOgyTb0OO3Acnn/Dll5y8E6TxrIqInr++0InJ8tlu 84KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="sw/5GufZ"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p17-20020a170902ead100b00153b2d1641dsi132763pld.37.2022.03.17.13.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:48:27 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="sw/5GufZ"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 064F313EFA8; Thu, 17 Mar 2022 13:13:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229578AbiCQUMK (ORCPT + 99 others); Thu, 17 Mar 2022 16:12:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbiCQUMH (ORCPT ); Thu, 17 Mar 2022 16:12:07 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EB2D2EE94D for ; Thu, 17 Mar 2022 13:10:45 -0700 (PDT) Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 021163F07E for ; Thu, 17 Mar 2022 20:10:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1647547835; bh=oGka89Ju4SH1eJbMmEz67bGmXAxdjFKHnHgVhuc4y5I=; h=From:To:cc:Subject:In-reply-to:References:MIME-Version: Content-Type:Date:Message-ID; b=sw/5GufZAgBNmERL1Y9HmuS3umWXoV2LJzjY+01EAlEwJymaQ6Py5UKQg5jQ17e/j FJwQFOObsuqqLRyUJuzEC4uBPqopCxzvb+VjLCi2QIr6MEgdodY0JfBWuB2Lli07uZ X3PYAjkOeeOqA1lZQl1usTtxfj31YEVn4zzOlX5xeIU9YZcsESK3YewSlqAPQfJ0Jn NMxJhP+pwoAPVgQMcfZPQfPc2hvfwnnmpbkb5J+OXoEvI3zhE3uY5VyZIojQX+AAee vkJ5hOlqTEtLw7TOTeJZJkWxYxeqqkIKj6biABYlIPbRN3z9AZ3gzf/yRPsG2TESOa Mwk7oAUqWWZeQ== Received: by mail-pj1-f69.google.com with SMTP id om8-20020a17090b3a8800b001c68e7ccd5fso1390303pjb.9 for ; Thu, 17 Mar 2022 13:10:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :comments:mime-version:content-id:date:message-id; bh=oGka89Ju4SH1eJbMmEz67bGmXAxdjFKHnHgVhuc4y5I=; b=7se+F3FeDPTMMO7f6cp1A+Oo7J52dIDoMAbH6L2ryFeM4n8tF9sDUdEzEUqIko3lcd cwQE25ZRGeZpQAAsFyylpzY374/DaCpb2n2f3baCoXfkT5ffRdu9Bzx++laRxXOlgSCR HD98hufzjNtVl9djQO5xZT0VlkmjKLDbLnIyScaL9m7Dn5eiwuwy5xa+v0I6Ur2CT4R6 oCoinGk68H/WcdstWWKmvpETVBXvOCIkErHjNtUUHflTPU9GP6mLlyGHtXeVKXMZJf6r tQASY0pWSnPGhtQ9m28fgk2G4+XKo9mnnKzpMeVt/WIK2TTupuEeSzY6nPGVQ7SZtW3M 3jjQ== X-Gm-Message-State: AOAM533tTVKO20ZP3U1mlF1VMzaOIti2O/eiU1vr3xQ5lLNoy0hPxJ1K Y12ORSHBZDJCarNpQJ+gX2SoVgeoJ87QISbfRQlPC2w3Le7POmh8ib3Yb4bsowfDfCoE0APkAGd atwFqfAPAspWIn9jZj1VEgbwWYl4g50njR9b3UAslmA== X-Received: by 2002:a17:90b:1e05:b0:1bf:4673:7e7d with SMTP id pg5-20020a17090b1e0500b001bf46737e7dmr18136860pjb.10.1647547832989; Thu, 17 Mar 2022 13:10:32 -0700 (PDT) X-Received: by 2002:a17:90b:1e05:b0:1bf:4673:7e7d with SMTP id pg5-20020a17090b1e0500b001bf46737e7dmr18136848pjb.10.1647547832729; Thu, 17 Mar 2022 13:10:32 -0700 (PDT) Received: from famine.localdomain ([50.125.80.157]) by smtp.gmail.com with ESMTPSA id q10-20020a056a00088a00b004f7ceff389esm8019135pfj.152.2022.03.17.13.10.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Mar 2022 13:10:32 -0700 (PDT) Received: by famine.localdomain (Postfix, from userid 1000) id D9ACA5FDEE; Thu, 17 Mar 2022 13:10:31 -0700 (PDT) Received: from famine (localhost [127.0.0.1]) by famine.localdomain (Postfix) with ESMTP id D2725A0B18; Thu, 17 Mar 2022 13:10:31 -0700 (PDT) From: Jay Vosburgh To: David Ahern cc: Sun Shouxin , vfalico@gmail.com, andy@greyhouse.net, davem@davemloft.net, kuba@kernel.org, yoshfuji@linux-ipv6.org, oliver@neukum.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, huyd12@chinatelecom.cn Subject: Re: [PATCH v4] net:bonding:Add support for IPV6 RLB to balance-alb mode In-reply-to: References: <20220317061521.23985-1-sunshouxin@chinatelecom.cn> Comments: In-reply-to David Ahern message dated "Thu, 17 Mar 2022 12:49:54 -0600." X-Mailer: MH-E 8.6+git; nmh 1.6; Emacs 29.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24596.1647547831.1@famine> Date: Thu, 17 Mar 2022 13:10:31 -0700 Message-ID: <24597.1647547831@famine> X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 David Ahern wrote: >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). Agreed; the split of the patches was not at issue, it was that each patch in a series must compile and the built kernel must function rationally. >You need to respond to Jiri's question about why this feature is needed. I'm not entirely sold on adding IPv6 RLB for balance-alb, but the IPv4 version of it does see moderate levels of use, even now. It's less common than LACP by far, though. I'd like to know why someone would choose IPv6 RLB over LACP. I wonder if this is a checklist item somewhere that something must have "complete support for IPv6" or words to that effect, versus an actual functional need. >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). Looking at the previous patch for bonding, my two initial requests are: 1) A more detailed commit message. The only way to understand how any of this actually works is reading the code, there is no higher level description. 2) How does this interact with the IPv4 RLB logic? Is it possible for a given bond interface MAC to be "assigned" to two different peers (one IPv4, one IPv6), and if so, does that behave in an expected manner? I.e., two peers on the network could receive contradictory information via ARP and ND for the MAC address of a given peer. This is already possible with the IPv4 RLB, but with an additional IPv6 RLB, a single peer could see two different MACs for a given host (one via IPv4, one via IPv6), and another peer could see the opposite, or even disjoint information across several peers. -J --- -Jay Vosburgh, jay.vosburgh@canonical.com