Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1987436pxu; Sun, 13 Dec 2020 09:43:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWKzsAiuvWtw9BHcx9OTad9rgo6f1zWMKTBlJVz8eJjjNJ7xCkJ04G+j/4E92twTjPjHBL X-Received: by 2002:a17:906:298c:: with SMTP id x12mr19375661eje.244.1607881424241; Sun, 13 Dec 2020 09:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607881424; cv=none; d=google.com; s=arc-20160816; b=Nc385a+sgtVXJKLMJdGxnPyh5oxn6cHSA6fSSy5RRrf5GsrAjNJaD9yx1stH6z3vTp 49DZnPzvSgzcpVkT4aes916e89uXbuka93k33fVjNXz6u05d6CYup4YvEpHJnit/QFg/ HU/327bQa/lKuTjBTkEHTZyDt3oPKVtNPsuKen/czCX3cE9T7JFm67lB0IqrqVY9T3LH 8z4x0AkpIq5wOlCqmRODd4efJQcKdloiIEC64um6XiZnLf4m+Clm2bM4nCAmI+D1gmz9 DPgTmM77YaXW/4pRxF5UiudtNPhi6HSuSldYgF1uosHZLL+FkxwFrplykxGmBtDKZc8X sHPw== 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-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=QE8kvUfJGF+/tFxP2a7cjpaKSjXf6+aoJtP3goq60E8=; b=ShHpwbV9WJVqf5E15epnG0DkEJwHFJEv92IVwgeotycUZwCJsRQi+e1/ajdhGMW3i4 JIkjnyNQa+BkOVhuPv/u6BcQsLzQUPYkPqF4tn5UzLMgcnAgbkZD+agJ368t1pEfq5zK J/ziAAQGGA1EgCy6s5U7NMJ2ZbDjRaxb2W8uDpALdj9buKE1ECUHZVaAKZnOrNVsiIm2 zJixRUwHR3hpv7OikQ8IZibfKRqUAQrTLloK+TjENuORW3DSyo5M0oN+XW8srIkm8yRJ I43enVXwsu97tyuZ/maLCMGAclSMUE7NPRxsnbHBKFQb8JZrkmJaKn6GsFdqfGkaudDZ 2oHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FxDybe6q; 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 a23si9397383edy.268.2020.12.13.09.43.21; Sun, 13 Dec 2020 09:43:44 -0800 (PST) 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=FxDybe6q; 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 S2393927AbgLMDu2 (ORCPT + 99 others); Sat, 12 Dec 2020 22:50:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393241AbgLMDuT (ORCPT ); Sat, 12 Dec 2020 22:50:19 -0500 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54AF9C0613CF; Sat, 12 Dec 2020 19:49:39 -0800 (PST) Received: by mail-oi1-x243.google.com with SMTP id q205so2382037oig.13; Sat, 12 Dec 2020 19:49:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QE8kvUfJGF+/tFxP2a7cjpaKSjXf6+aoJtP3goq60E8=; b=FxDybe6qZY0cVdUS6zEjz2Kig7c/aw/0vQ9uFAhhVTX5qCeQ4PldrHo6OcbKoMO6/c wgmGI0A+ypYSkoiG2bZp9LM0wXCzGbldKot7nZ0Ohx7xLenhLUAmoEXG0Zp0hthrKOye 6ehYmXkOpC6r7CdexxjIPU9/PCFn59uKuMo+ps1vLzMf7MczFknbxs0pgoh4MlLg/Crt 4MEr764TbawspH662uTEU/w2p+9165jNTSRCmNgLdHVsFQBsI42uTktL3edf/bzm90Ho xBxXniDsxjOqy1X9M1JWaYroo2tsf2o5ou8HJJzPd2cB/xm3yHmtvVWHJ67BImvJeiDC BYxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QE8kvUfJGF+/tFxP2a7cjpaKSjXf6+aoJtP3goq60E8=; b=gX3fP4ZYTJmoi0CyzWQ+1KBwSblprh+4YS+WMcw1GtsWvsmYsgi99b6jDYY41SJ/MJ Z6yFihFVNadbh4uruGPW5dR8d0gnqlD21qD+JYkCzhyiA7Sze1geXAyLH6WyRhnSG2gD fSuB/2HbsxrVHFR0sElGhUogO8R2zxTKBsPibsT/p6fnrGd67XIAAEEDiWGCYOZR4wxo Aa0iv1iqVREqhAVClPCe6LYn2cToCc/CdD9PMoycqRx9mB78f3lLaGuDermD0IUtwdyL 9YxbqFsepndMgWlJacjNZTSpTF63MUA4rovt6kXM8u3x7IeKs9VEC/g8t+tMRce782LZ w36w== X-Gm-Message-State: AOAM530HqS0nWxgQkg2WaXRZkcHwWfpE+Uvur26GMXGuJZYkbld9gcJJ awXIf/eAjZihHN13+U2DG78= X-Received: by 2002:aca:dc85:: with SMTP id t127mr14560421oig.19.1607831378772; Sat, 12 Dec 2020 19:49:38 -0800 (PST) Received: from ?IPv6:2600:1700:dfe0:49f0:5c21:b591:3efd:575e? ([2600:1700:dfe0:49f0:5c21:b591:3efd:575e]) by smtp.gmail.com with ESMTPSA id i25sm3158888oto.56.2020.12.12.19.49.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Dec 2020 19:49:38 -0800 (PST) Subject: Re: [PATCH v2 net-next 6/6] net: dsa: ocelot: request DSA to fix up lack of address learning on CPU port To: Vladimir Oltean , Andrew Lunn , Vivien Didelot , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, Roopa Prabhu , Nikolay Aleksandrov , "David S. Miller" Cc: DENG Qingfang , Tobias Waldekranz , Marek Behun , Russell King - ARM Linux admin , Alexandra Winter , Jiri Pirko , Ido Schimmel , Claudiu Manoil References: <20201213024018.772586-1-vladimir.oltean@nxp.com> <20201213024018.772586-7-vladimir.oltean@nxp.com> From: Florian Fainelli Message-ID: <77d952ad-0aed-8e79-df03-ee6a7f42ef55@gmail.com> Date: Sat, 12 Dec 2020 19:49:34 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20201213024018.772586-7-vladimir.oltean@nxp.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/12/2020 6:40 PM, Vladimir Oltean wrote: > Given the following setup: > > ip link add br0 type bridge > ip link set eno0 master br0 > ip link set swp0 master br0 > ip link set swp1 master br0 > ip link set swp2 master br0 > ip link set swp3 master br0 > > Currently, packets received on a DSA slave interface (such as swp0) > which should be routed by the software bridge towards a non-switch port > (such as eno0) are also flooded towards the other switch ports (swp1, > swp2, swp3) because the destination is unknown to the hardware switch. > > This patch addresses the issue by monitoring the addresses learnt by the > software bridge on eno0, and adding/deleting them as static FDB entries > on the CPU port accordingly. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian