Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3899579pxt; Tue, 10 Aug 2021 14:14:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPmOLiksCRHwy1TAQbpvW3sbv71IHXAIGyVbFXzC+5x+pSEfEys7ChmXDp0oFmY+Mvwbet X-Received: by 2002:a17:906:3693:: with SMTP id a19mr450479ejc.237.1628630040615; Tue, 10 Aug 2021 14:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628630040; cv=none; d=google.com; s=arc-20160816; b=SoheGr3b9NiZHcwVWVmJ/TFFvfeHSrYo/jQolFnixMYh9IuMzpdOgKdgATa33H+M/f Tm8KlCIy3QhmspXDSaTVNiHLPvXfz2a31CCgBPdaZqqYfgFpKvkNPhiLgCnX0SMghTrU KNY6mYp6n+LTH8j2rQ2sKvVWKZA4TbP7ZO5HxIXHg3ipTwb1hPp/Un6xUvcihGkOQSkG gp/yicX32A7XgtNArKiLt8fkIZ1IzCu6H3du1Rwr6byBv5dOlsFThZtobypvZOEXQK4U bcpPzMWMt1M25PUz81ZFTy9Fxgumg/wQPRY4ZvcJEVT5113u7hUn87Qe4EjEwakwaxBb IUtQ== 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:organization :from:references:cc:to:subject; bh=nlGwXYFvsEnYcj0VnZr8cl9UcjMVNznpZ6aBfnM6jfI=; b=FS/eml6pczHNwDoCMaCW9njaPEUUBPgiy5daOB8ego1XyHir+crJJjBdVc8mLOt3qB UFJm0Frt8BOE89HXQ/R1djL63R6Ci65tjjQD1SlTSDCJsrVULa4fIicvp7u5JzNZEdLA uVdBLfL67LYlGwsK1KVdtR+7Y84ZimnbKvtVjwmfNzqQ1lBc7WD5qLuEMFYJoUJ176Yp CEZ+ZX6BCWJ2thhjiOv/IzSqCnppwKo+tROnugjww5zRfc+Us5SWmOEbmLguHIh24nLz JmDrEEE8BjKCXrbmdssOJloVNozYXHyyCTJJ9eJIT/d4cIr0i/IHWApL3hcTJlHSE/hh BNjA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si3002294edb.11.2021.08.10.14.13.30; Tue, 10 Aug 2021 14:14:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234038AbhHJVJw (ORCPT + 99 others); Tue, 10 Aug 2021 17:09:52 -0400 Received: from mail3.marcant.net ([217.14.160.188]:41900 "EHLO mail3.marcant.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234040AbhHJVJu (ORCPT ); Tue, 10 Aug 2021 17:09:50 -0400 Received: from [192.168.180.1] (port=47516 helo=admins.marcant.net) by mail3.marcant.net with esmtp (Exim 4.94.2) (envelope-from ) id 1mDYzk-0004gh-25; Tue, 10 Aug 2021 23:09:08 +0200 Received: from vmh.kalnet.hooya.de (unknown [192.168.203.15]) by admins.marcant.net (Postfix) with ESMTPA id 0B71B2809A2; Tue, 10 Aug 2021 23:09:08 +0200 (CEST) Subject: Re: [RFC net-next 2/3] net: dsa: qca8k: enable assisted learning on CPU port To: Vladimir Oltean Cc: DENG Qingfang , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Russell King , "open list:NETWORKING DRIVERS" , open list , Ansuel Smith , Jonathan McDowell , =?UTF-8?B?TWljaGFsIFZva8OhxI0=?= , Christian Lamparter , Nishka Dasgupta , John Crispin , Stefan Lippers-Hollmann , Hannu Nyman , Imran Khan , Frank Wunderlich , Nick Lowe References: <20210807120726.1063225-1-dqfext@gmail.com> <20210807120726.1063225-3-dqfext@gmail.com> <20210807222555.y6r7qxhdyy6d3esx@skbuf> <20210808160503.227880-1-dqfext@gmail.com> <0072b721-7520-365d-26ef-a2ad70117ac2@marcant.net> <20210810175324.ijodmycvxfnwu4yf@skbuf> From: Andre Valentin Organization: MarcanT AG Message-ID: <7af5c79e-fe18-a6fa-4282-1aa2bee187d6@marcant.net> Date: Tue, 10 Aug 2021 23:09:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210810175324.ijodmycvxfnwu4yf@skbuf> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 10.08.21 um 19:53 schrieb Vladimir Oltean: > On Tue, Aug 10, 2021 at 07:27:05PM +0200, Andre Valentin wrote: >> On Sun, Aug 08, 2021 at 1805, DENG Qingfang wrote: >>> On Sun, Aug 08, 2021 at 01:25:55AM +0300, Vladimir Oltean wrote: >>>> On Sat, Aug 07, 2021 at 08:07:25PM +0800, DENG Qingfang wrote: >>>>> Enable assisted learning on CPU port to fix roaming issues. >>>> >>>> 'roaming issues' implies to me it suffered from blindness to MAC >>>> addresses learned on foreign interfaces, which appears to not be true >>>> since your previous patch removes hardware learning on the CPU port >>>> (=> hardware learning on the CPU port was supported, so there were no >>>> roaming issues) >> >> The issue is with a wifi AP bridged into dsa and previously learned >> addresses. >> >> Test setup: >> We have to wifi APs a and b(with qca8k). Client is on AP a. >> >> The qca8k switch in AP b sees also the broadcast traffic from the client >> and takes the address into its fdb. >> >> Now the client roams to AP b. >> The client starts DHCP but does not get an IP. With tcpdump, I see the >> packets going through the switch (ap->cpu port->ethernet port) and they >> arrive at the DHCP server. It responds, the response packet reaches the >> ethernet port of the qca8k, and is not forwarded. >> >> After about 3 minutes the fdb entry in the qca8k on AP b is >> "cleaned up" and the client can immediately get its IP from the DHCP server. >> >> I hope this helps understanding the background. > > How does this differ from what is described in commit d5f19486cee7 > ("net: dsa: listen for SWITCHDEV_{FDB,DEL}_ADD_TO_DEVICE on foreign > bridge neighbors")? > I lost a bit, It is a bit different. I've been also working a bit on the ipq807x device with such a switch on OpenWRT. There is a backport of that commit. To fix the problems described by d5f19486cee7, I enabled assisted_learning on qca8k. And it solves the problem. But initially, the device was unreachable until I created traffic from the device to a client (cpu port->ethernet). At first, I did not notice this because a wifi client with it's traffic immediately solved the issue automatically. Later I verified this in detail. Hopefully DENG Qingfang patches help. But I cannot proove atm.