Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3754294pxt; Tue, 10 Aug 2021 10:31:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzktMLEgo3BO4C2myUECR4oRPGBBbe+iFN1owGkDzLfKk0wVSkjV28h/i7joR7T+5lmnOg9 X-Received: by 2002:a05:6e02:f44:: with SMTP id y4mr148559ilj.257.1628616712247; Tue, 10 Aug 2021 10:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628616712; cv=none; d=google.com; s=arc-20160816; b=j9QbdDMU7KBd4pbO6ypefUVAPjGUTP1wGecBnkYSYjD8Z8CyPK7w/qdxaT5Bfbe4TO IYFoz5pPPFdXtkI+CfCTleHa7/k0M0/LOY5Ad54VwSoTuMFWcqAb5tfGC/FEN01TtGgg uD/aVTQvzMtmZimqX+PaqmAX1eAHUbefCpLQBQkIdxv65tInk4OlCgUOHkEiTIB7zsRp QRzGJlZAZke9SbVWdEQKr7xbzXnSrU18k+TdqYQKy3ueydgVcoCNyeQO+DbwciX3ol8b 1a6kISGtuO/gP8YIv55NAkBDHf73wyFqh+weJ3BKRJMHbrpriVzxx5qTFhKM0q6qebs0 yGlA== 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=p1uM4Z7CvwIfSXulq6bsmeGu+PCCgtUNcdTodzc6ty0=; b=ro1tpCakw+6UbBV4jjv0lVFEsso02l5+iySgBqPa8F1FFD4/jGYPZfSnoGt3baE9mh NSCQ13e32E9SwwR1YwCjKaE1Krc3U6QGbw4Qmr2oRBi86nlhKBnyFRST5tDo/yuLC9b7 lKHoH6pMja0knCSksxyye8w4rsuyI9Ym6yMFHoJLqxgpZJKanznGxo8U2WTRdX+6IteY jRkkGewJGWMNR2A449rbcQcGdSV1qoGsu16cevqRXuzFUQCv4mvJjK6j8FcCCU3afKef YcMYEPy1i9UGFEdiULU9XVoAH4Lfp42lN3HYvQg8FYhVY5nyGZbItm08EIiYxintlvlF zQ8w== 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 a4si7584322iow.39.2021.08.10.10.31.25; Tue, 10 Aug 2021 10:31:52 -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 S229484AbhHJRa0 (ORCPT + 99 others); Tue, 10 Aug 2021 13:30:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbhHJRa0 (ORCPT ); Tue, 10 Aug 2021 13:30:26 -0400 X-Greylist: delayed 169 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 10 Aug 2021 10:30:04 PDT Received: from mail3.marcant.net (mail3.marcant.net [IPv6:2a00:f88:0:3011:217:14:160:188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26ABEC0613C1 for ; Tue, 10 Aug 2021 10:30:04 -0700 (PDT) Received: from [192.168.180.1] (port=45942 helo=admins.marcant.net) by mail3.marcant.net with esmtp (Exim 4.94.2) (envelope-from ) id 1mDVWt-0002jU-0R; Tue, 10 Aug 2021 19:27:07 +0200 Received: from vmh.kalnet.hooya.de (unknown [192.168.203.15]) by admins.marcant.net (Postfix) with ESMTPA id 5195E2808A2; Tue, 10 Aug 2021 19:27:06 +0200 (CEST) Subject: Re: [RFC net-next 2/3] net: dsa: qca8k: enable assisted learning on CPU port To: DENG Qingfang , Vladimir Oltean Cc: 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> From: Andre Valentin Organization: MarcanT AG Message-ID: <0072b721-7520-365d-26ef-a2ad70117ac2@marcant.net> Date: Tue, 10 Aug 2021 19:27:05 +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: <20210808160503.227880-1-dqfext@gmail.com> 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 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.