Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp7126824pxv; Fri, 30 Jul 2021 10:36:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLVQBTmW/DMqFseiHjMoPUnbIgJZCkG6mPQATLpMHW+zq8ATppFse+OytBo2RPEcOe+EfE X-Received: by 2002:a05:6402:22e9:: with SMTP id dn9mr4326675edb.218.1627666578392; Fri, 30 Jul 2021 10:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627666578; cv=none; d=google.com; s=arc-20160816; b=p2hJA4ACZyOf7DPDTab+6+uHTEAsbsLrBjGIAhJFHjBpbdguiiFOfLuUWLtmFUwgXV /Iv4wzm/N66D6lMwaiCHsDwGUYxHvIoig0Rz/N163fD/vwcHYJ9QQdXNnAwqVbYlTURn w/99PHzxZQnuwXHrt2OL1ECu3HyPLbibFx2p5oxXXopKgQ+Ab5svOJc3hBJyWrDibYaN QTbRvLxg4xfcdRxGHn3+zYGyUsAf6haHEljRd6caRfZjEz/4yHpMI+3GCIKzcL57o1vc bLbg9Rwuxzd9uI+/34IK0tYiPSngaVVYoMJMp2LCp2gwxdXypV/0noX25+H3113cKkbl HevA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=B8zL+1qEXUiyhytb1znuh6gn0RRcTrCNxC66xqLEJ2M=; b=byu0l1d18fsgfgnCpvsbHFZXv4reDjXVc/Fur21yYNA0I+rdrMieMPw7DgPSqR/Mmn cN2M7xPuxsvEvq+ypEd0F1wpk+AqvN9MDL/yVcqs7h/EmCB2k5x8OIai75o5qDs+wlvf CgbHBK+DhdHB9A61rpvPjvJITJk8YM8bLk97m4uJsDH2jHcXq5H+d7X4Kb1JirBkKTxv g9QwZwrRMsa5QyLjCSrtuML5DXUIQOCwzAgqpSR7dptbW6ice1axUYMKpx9x0MGcQI6w vjv70StZFoUDCypkL017X0jQ3FTa1P4lQHFbF18vgMEUvn8AQJzP62f0WBl20vXod8YU Zqhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XPp6ZGO9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si2270453edt.345.2021.07.30.10.35.48; Fri, 30 Jul 2021 10:36:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XPp6ZGO9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230318AbhG3RcT (ORCPT + 99 others); Fri, 30 Jul 2021 13:32:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbhG3RcS (ORCPT ); Fri, 30 Jul 2021 13:32:18 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4614EC0613CF; Fri, 30 Jul 2021 10:32:13 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id m13so12339457iol.7; Fri, 30 Jul 2021 10:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-disposition:content-transfer-encoding; bh=B8zL+1qEXUiyhytb1znuh6gn0RRcTrCNxC66xqLEJ2M=; b=XPp6ZGO91Rb7e90Ovm8SWrrU4CdL9lQZ/5cZWVw6TXHCt5dwQ71FDZFH1oZYbn557g obTqqr4Kx7ReoyX7lZAxPdTp7YZEBXcHJND+JX3rxG9knyEL85L2UJr8pNvPmR2NFXVz VYiW5yKFNZee9HCT2hKXkXX669jimeI0ganqZdEz649nH70wCQYLv2pvhgravJXFnlfD ZbUj7NFmQQwKE/myDhnSrwauThxqb07/a86C/9ixMlIZy9g4m9ndcsxj4tMq5GqirJu6 KqHqFmagahVRc6Xot69XUs9WpZZqWnoTpaPdkzbfy9DxsAgyLQidumdhLkIs8vh0jaHb ge2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-disposition :content-transfer-encoding; bh=B8zL+1qEXUiyhytb1znuh6gn0RRcTrCNxC66xqLEJ2M=; b=Mo2AKvckU19nd5UT+O8W4u8YURmIkgQ5OCTNwCduB0QHVPnA265/mKBlaYvzHed0Bb amcA4z3V3CTw1jMb3V0KMPbo2M3qs5grB2YFxnJRsszeZ1t0pziJEyMDz3soW4v1Jcu0 oxz1dECE56/WfT76oP/Ynd49kjuPjPItT26Bcfy8evaHDBiRHIyfVpWBefAfmXq6NhQ0 9TlaPoenVdRR5G462FDKdQYeEYNnZzZGOfLw1clsOlo3tlu8T1cALl96H6NCY/k+i/Gl j5WhSlBn9ujvRW5RhnorwxFV+UuL8/WjYxW5AtoVthxin9kpNgEonipGRZhkJjmGsZGp JwcA== X-Gm-Message-State: AOAM533buONkHDZ9o/6uPLAKwkkPm7R10YetvGk0Sa2kGOC0luFuzGD+ zbFbekxjld7kfZuscRA78wg= X-Received: by 2002:a6b:4f16:: with SMTP id d22mr880154iob.15.1627666332729; Fri, 30 Jul 2021 10:32:12 -0700 (PDT) Received: from haswell-ubuntu20.lan ([138.197.212.246]) by smtp.gmail.com with ESMTPSA id l12sm1142444ilg.2.2021.07.30.10.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 10:32:12 -0700 (PDT) From: DENG Qingfang To: Vladimir Oltean Cc: Sean Wang , Landen Chao , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Matthias Brugger , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC net-next 1/2] net: dsa: tag_mtk: skip address learning on transmit to standalone ports Date: Sat, 31 Jul 2021 01:32:03 +0800 Message-Id: <20210730173203.518307-1-dqfext@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210730162403.p2dnwvwwgsxttomg@skbuf> References: <20210728175327.1150120-1-dqfext@gmail.com> <20210728175327.1150120-2-dqfext@gmail.com> <20210728183705.4gea64qlbe64kkpl@skbuf> <20210730162403.p2dnwvwwgsxttomg@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 30, 2021 at 07:24:03PM +0300, Vladimir Oltean wrote: > Considering that you also have the option of setting > ds->assisted_learning_on_cpu_port = true and this will have less false > positives, what are the reasons why you did not choose that approach? You're right. Hardware learning on CPU port does have some limitations. I have been testing a multi CPU ports patch, and assisted learning has to be used, because FDB entries should be installed like multicast ones, which point to all CPU ports.