Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp840945pxb; Wed, 13 Jan 2021 18:01:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzF6gO3o6BRYREyby+H0Xuk4OMpjiqhS4RPOFBQeXSX4agBxqroXlyVG0ikjXoMxNfvSzPP X-Received: by 2002:a17:906:5618:: with SMTP id f24mr3604008ejq.517.1610589689944; Wed, 13 Jan 2021 18:01:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610589689; cv=none; d=google.com; s=arc-20160816; b=Rlq9boRELRYk4EvzqaGaJzB3EBgdvP+UH+ydxRHrYHD+4rnQTTg9V8bj9GhxzJyqUL J5hr5qYGbeBJkhX7V7kSkmRdHzv07v6Qy7CPK2pVZIxpRj8Y5yWp9id5IH4ZYHLx8123 UJ+5eMOIniJgotys16iiMdztWC7hWvdyjtovAlE3JMjHD3ieR5EX7+pPgu1cb28FDjvr StJKl/AAFEDx8u0P5Syp9Hxm7fPpMCUGdJjk8wGPZn/fmrXDXeLZJtkevTvsDRk5LVcI +f3WX5PY5LY8t0zH4OcnZlHnZL92/lu7hDjiADOOaFml6PvnYilw9ODaoWY/JlpT13WX tLYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cqg0wNGRTTkRJwGtfx/C5BvxZwI3bxOus+69CkzX8pw=; b=MmFEtUncEkLlrRAamGt7RWNAsymgbnRttN5+vlu2FDYLy5rETDugLO/5BwWP9Q2RO8 EAaB+XZ93GoCmYHPOuPt3XjrCDvRPwwmVW+n40BXRJQoVorGyvMluomWHHfUJT6F8gfV S4/M0zFRXTKd18PQVgMcnR0bjvWbBnl1xP8HvjgSslOZT5n3PAc4o+wV+/971xH0a3PK DZpVUfoDTFHffmxOcm8sqdzBdG/HMobSIkgP3leeb3eZAEYU7iePnrpBisJUZwgBpS6C sqJ1YJdesm7/9vM8QeLjRkOw94xbXzeZuJTuiSHxO61BeDASAIY+OYzNyYskfKBx6g+r qFrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o2QRiIAk; 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 rn2si1768497ejb.251.2021.01.13.18.00.36; Wed, 13 Jan 2021 18:01:29 -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=o2QRiIAk; 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 S1729031AbhANB7H (ORCPT + 99 others); Wed, 13 Jan 2021 20:59:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729455AbhAMXj5 (ORCPT ); Wed, 13 Jan 2021 18:39:57 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BC85C0617A3; Wed, 13 Jan 2021 15:26:38 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id q22so5563874eja.2; Wed, 13 Jan 2021 15:26:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=cqg0wNGRTTkRJwGtfx/C5BvxZwI3bxOus+69CkzX8pw=; b=o2QRiIAkVgwzuSeSCIuaYpLbiKd66o6IlbF5tzRMkJHIaVX9zMlzGr5u7q5/oazqkX rjST24rT5ff+Zvegxuk22uuI5B4ErY32Z5zK++NKg4YqpQoRyhVFm2F+yl1sn7IK2EiD ruu2oPI+lQeFiMUK4K9U/TBZgrcvSH8CT7ciWoGYmT14oodB7X+KZarmBUicask5aWkb 6nr7mSj6KGDcawgKLLESOaZO3YbXYh3WsfNJd1D4qHCzzIX7AXnPYz4jaZSQE1GVYfVm QpCloFhqcefJ136zyHeVZlXSW8ScagBZJzsITTXUHjwO4g/fW/yqAVowRnQihtW2ORWM DaqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cqg0wNGRTTkRJwGtfx/C5BvxZwI3bxOus+69CkzX8pw=; b=c9ZOiCW6FOvoBggvtSAcDELCYfP/UNgjQW/KoTkq5tX4mcw+9n3pBlXOCwnduGnh4s Px5mo8s9ffJCmESzzNLTlVdmS7S3OI5SSCSPGqklagOo27bX2C/2tNkR+LjQrBmvZZSG 0Ff89tteH89++BQ+NNYo5scOBaKOoieI4sHqCZ6czJzAP7+gfYvuNhFzb/HvTAmeY2ow 57Qa+Q6Xqx/ca7HYMUWDCqGtP+MDAnvnw6g67zCW83kMsmr/nLM28QWt7oIr/jxa6nPZ 4Qb9XHFH+D15kpzu/nIIHx22VAvJ67Ll8/hkXgZ1KCAcGmdu4MTU1GbJ+HdbC0Sj0M8T x0Bw== X-Gm-Message-State: AOAM531CAkOVeBv/JpQtYjaGaSiUckNEdv0xnQDGiqGA1Usd0B/Zyqwa li/yXopvta3dncXrL+ixpIA= X-Received: by 2002:a17:906:7689:: with SMTP id o9mr3327438ejm.324.1610580397107; Wed, 13 Jan 2021 15:26:37 -0800 (PST) Received: from skbuf (5-12-227-87.residential.rdsnet.ro. [5.12.227.87]) by smtp.gmail.com with ESMTPSA id r21sm1470219eds.91.2021.01.13.15.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 15:26:36 -0800 (PST) Date: Thu, 14 Jan 2021 01:26:35 +0200 From: Vladimir Oltean To: Gilles DOFFE Cc: netdev@vger.kernel.org, Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: Re: [PATCH net 1/6] net: dsa: ksz: fix FID management Message-ID: <20210113232635.gcqohiuhwpeb2oqc@skbuf> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 01:45:17PM +0100, Gilles DOFFE wrote: > The FID (Filter ID) is a 7 bits field used to link the VLAN table > to the static and dynamic mac address tables. > Until now the KSZ8795 driver could only add one VLAN as the FID was > always set to 1. What do you mean the ksz8769 driver could only add one VLAN? That is obviously a false statement. All VLANs use the same FID of 1 means that the switch is currently configured for shared address learning. Whereas each VLAN having a separate FID would mean that it is configured for individual address learning. > This commit allows setting a FID for each new active VLAN. > The FID list is stored in a static table dynamically allocated from > ks8795_fid structure. > Each newly activated VLAN is associated to the next available FID. > Only the VLAN 0 is not added to the list as it is a special VLAN. > As it has a special meaning, see IEEE 802.1q. > When a VLAN is no more used, the associated FID table entry is reset > to 0. Why is this patch targeting the "net" tree? What is the problem that it resolves?