Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1266255rwb; Thu, 8 Dec 2022 08:33:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf4nHzSrPtVSCWVmIrFn7fY5JC5axG/mbWvRGhRs90on+po9lCSqHNaBn00EpAa7iA6yNM5B X-Received: by 2002:a17:902:c086:b0:189:d445:f36f with SMTP id j6-20020a170902c08600b00189d445f36fmr18885230pld.69.1670517188953; Thu, 08 Dec 2022 08:33:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670517188; cv=none; d=google.com; s=arc-20160816; b=ysIGTlcRFNA+u+opUpADocLQ90Ls2VbFK5jDU59aiKiHfSESf8tl8GKjgwSgrzF8Im XiLFLy4LLRmifOmsZqo0meQ2mhl9fD3++fgOeGR9/2Ou3MNJ5j19GO848nTth0F7WTRn /6uH5JUkVxy8Rv1TPswvQAne9hr775W3R8MEjaAjIx+6o7+mHsFRXeiAv7MPEv8DXu9x Xi2u5Rl8hGh6y1e+BjuZCeCXJMacslDy8sHIPS8zvxwWEwhucwSDzJ6YBZqRbVyNR3oH MQ0RHTPPWKrjVBRTqY/1K8wLgp0fwM3c976pF/Nznmdxlh2PSaXMBOwM/uTGowlyPMUB liiA== 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=RiqBb46+HPp8goYEv89xctk4t08Ol4xrURMi99OWSS4=; b=AbP9YB/eSezCjRFlSgVqL9lrB2YjJ1EJnXVj63y9iF09KnTuyMUi6lTaoYpLJxnOUO y6XuzRXlU+xOH1L7iP6kbr2MRe9I92qash4WQqxhECBEcp2vk2ZIu8ioEu6a9d7jb3aM cAVGnQe9ahcnV7MtAF3uB0UUCHhzpU+LVyijZjmUpUtVVJcb9h1Q9d13RwDxi0t+aULV ueWhIwvkksqy8zcktpuxNGK4MedXf7zFu/DhnczhlUbhnN7s8ekut8plV5+KzzbMtIxV a+bjcR7Qdt6mLRLcNZkJCXwiQD//xJjB1hMCl/fpghrBGE9cIarPXFmzx2X9KyiWFTmH JkLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Nc4SjQe6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a63d94e000000b00477b4b68f09si23088971pgj.258.2022.12.08.08.32.58; Thu, 08 Dec 2022 08:33:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Nc4SjQe6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230088AbiLHQJu (ORCPT + 72 others); Thu, 8 Dec 2022 11:09:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbiLHQJs (ORCPT ); Thu, 8 Dec 2022 11:09:48 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65A78193FD; Thu, 8 Dec 2022 08:09:46 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id l11so2430837edb.4; Thu, 08 Dec 2022 08:09:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RiqBb46+HPp8goYEv89xctk4t08Ol4xrURMi99OWSS4=; b=Nc4SjQe6se+E2RfzTOuOpKPEGmzDHlLzuw6/dulBCQF3ytQb5XTEWXI9DxJsvKfPyR Dt/LzrR63/Vmx6LjoDzVbOYtVxThIcRwns66WJVy4GfvzDvwVY9zELquWG40VQDSU9tr qRLkcYoPc1TEDX/x1dImSYtN0VOqLXAw+DSvqF7pqYz84okg3g5TZnAZR1DRrwGxyfN3 q8kOvfg66AN1GNqW2sm36Zp5Qd5q7uHSxmUZCZDRdUPwedAlTQgDlKRTjbWIpYY0i96F UpD1lOY/Za1GDSFy/SfeqxZ8WL1ApeooWQZDuTlL+DPoMK2OxNgMreey5rwfoPIS4iFF 9yaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RiqBb46+HPp8goYEv89xctk4t08Ol4xrURMi99OWSS4=; b=Mm5DyT7jlnLX9OHhTCg8aAtNnao/GZYzm7GlztMga6s0gAmbyOHrk7ZQRqVJWx1/4n E0oSGgPNqAWPdSj45KBn/HngdtKeUc2T8vjOps6xEif+6cBvl7FPuEKZ/ctiR0pUQdyA 6UIYnK0Ef2pcxMewKdg/CKzN8Pcq1kY+yM4nft85mUqis/+JchQPBMQuFPTMyvztKnox O36+pYeRx9igEqmXRcmtpCaYqiF0zQ1CkotlUP4uItvRkmGUOddwrlM4wvN4d39YH4OZ QNIBcPYiXX4VN34DC1xY+a/iSRTBmN2zV5k04fHMFAuMr0lzn4FWDH4mz55aIGV5TMu2 3HOA== X-Gm-Message-State: ANoB5pm7yFsCbKk9uZ8KBBYwp0Sbx93d5RYSrtcPfmi1XRhti+0vYWRh aTeH5V9OPRFcqb3jOudJe8o= X-Received: by 2002:aa7:d787:0:b0:46b:eadf:8d34 with SMTP id s7-20020aa7d787000000b0046beadf8d34mr2841682edq.7.1670515784856; Thu, 08 Dec 2022 08:09:44 -0800 (PST) Received: from skbuf ([188.26.185.87]) by smtp.gmail.com with ESMTPSA id c5-20020a1709060fc500b007ae10525550sm9868594ejk.47.2022.12.08.08.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 08:09:44 -0800 (PST) Date: Thu, 8 Dec 2022 18:09:42 +0200 From: Vladimir Oltean To: netdev@kapio-technology.com Cc: Ido Schimmel , davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , Eric Dumazet , Paolo Abeni , open list Subject: Re: [PATCH net-next 3/3] net: dsa: mv88e6xxx: mac-auth/MAB implementation Message-ID: <20221208160942.r2xp5or6k4xrur65@skbuf> References: <20221205185908.217520-1-netdev@kapio-technology.com> <20221205185908.217520-4-netdev@kapio-technology.com> <580f6bd5ee7df0c8f0c7623a5b213d8f@kapio-technology.com> <20221207202935.eil7swy4osu65qlb@skbuf> <1b0d42df6b3f2f17f77cfb45cf8339da@kapio-technology.com> <20221208133524.uiqt3vwecrketc5y@skbuf> <7c7986329901730416b1505535ec3d36@kapio-technology.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c7986329901730416b1505535ec3d36@kapio-technology.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 08, 2022 at 05:03:59PM +0100, netdev@kapio-technology.com wrote: > At leisure, do you have an idea why it will encounter a VTU miss violation > at random? Do you understand that any packets with a VID that isn't present in the VTU will trigger a VTU miss, and also an ATU miss if the port is locked and the ATU doesn't have an entry with that FID? Your selftest creates a VLAN interface on top of $h1 with a VID that isn't present in the VTU of the switch ("bridge vlan add .. vid 100" is run elsewhere; we run "bridge vlan del ... vid 100" when we no longer need it). But the $h1.100 interface is persistent across the selftest. And it's not silent. Linux does all sorts of crap by default, like IPv6 neighbor discovery, even if you don't use the interface. So it will send packets from time to time. And that's when you get those ATU and VTU violations. The MAC address of $h1.100 is the same as the MAC address of $h1, of course.