From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2C53C433F5 for ; Sat, 22 Jan 2022 15:51:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234019AbiAVPve (ORCPT ); Sat, 22 Jan 2022 10:51:34 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:48894 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbiAVPvd (ORCPT ); Sat, 22 Jan 2022 10:51:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=0Dkpea18J6WunFkXH5z3bm2XvFAUdlPI4g4c38Jf2PQ=; b=jtuCbIzf9YXW16xJ8KfxIwiIwx +4+OLTgctGWIH11VrLRMWamUZxlOZ1jyRAM4rwkzkqDE9Xvv41UuTuSv9ztX0SI/Zn0Dp8JzYAPmy CKkQaEfY7keoC007L+gBLC9AFn64eLgePhhaHvrlaLWD9tXtPuHEUvMGopyoNa45x5s4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nBIfo-002IyP-71; Sat, 22 Jan 2022 16:51:28 +0100 Date: Sat, 22 Jan 2022 16:51:28 +0100 From: Andrew Lunn To: Luiz Angelo Daros de Luca Cc: Vladimir Oltean , Frank Wunderlich , Alvin =?utf-8?Q?=C5=A0ipraga?= , "netdev@vger.kernel.org" , "linus.walleij@linaro.org" , "vivien.didelot@gmail.com" , "f.fainelli@gmail.com" , "arinc.unal@arinc9.com" Subject: Re: [PATCH net-next v4 11/11] net: dsa: realtek: rtl8365mb: multiple cpu ports, non cpu extint Message-ID: References: <87v8ynbylk.fsf@bang-olufsen.dk> <20220120151222.dirhmsfyoumykalk@skbuf> <20220121020627.spli3diixw7uxurr@skbuf> <20220121185009.pfkh5kbejhj5o5cs@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > trap_port seems to be where the switch will send any packet captured > from LAN ports. There are a couple of situations it will be used like: > 1) untagged or unmatched vlan packets (if configured to do so) > 2) some multicasting packets (Reserved Multicast Address), for some > cases like capturing STP or LACP > 3) IGMP and 802.1X EAPOL packets > 4) Switch ACL rules that could match a packet and send it to the trap port. > > In my early tests, I only saw some IGMP packets trapped to CPU. I also > do not know how important they are. STP is important for detecting loops in the ethernet traffic and blocking ports. The linux software bridge will want to see these packets. IGMP will become important when you implement multicast support in the switch. It will allow you to optimize the distribution of multicast to only ports which have expressed an interest in receiving the group. Currently we don't have any switch driver making use of 802.1x. It is something which many switches have, but so far nobody has spent the time to implement an interface to wpa_supplicant etc. Andrew