Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp246570rbe; Wed, 28 Feb 2024 20:07:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV86qwppUCNTQLUA4m9dU1kYZmOdMUt9GANkt6twJQEH8AyAaW1fxCGHMjMl2WtozLEPA2BMGH47O+AKc8s2viS+LZFF0Gohd9bXyUZyQ== X-Google-Smtp-Source: AGHT+IFD9AfuH4Rym0ZsFDPaUEA720BGAYZGCs4vam1RbzU7q8ScMpDRQfCDL0ghIRL8TXWMd9XA X-Received: by 2002:a17:903:2587:b0:1dc:90c0:1e9a with SMTP id jb7-20020a170903258700b001dc90c01e9amr698372plb.64.1709179647331; Wed, 28 Feb 2024 20:07:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709179647; cv=pass; d=google.com; s=arc-20160816; b=uYOrIDEfuJio7MO6WOVlm312ZLc7ytU6KFvSanZLKv7qK9PVz9zEWhm3PmfI54U04J ezsiGIN4ofVyGm+mPsGgw8iFJUXzzwuhAoZQZhUAiNH/yKSCI9XGfhqengXzPso9fvWO yk3eufpfAISIsKgDscO/zA2urHK6/ZnmiOnkdD+Ncspcd2V0s8fe4y20lzJGAbzCyLLH rwi7LIYdgaYYKD8qoltoVq7zanQe/4nsckrCMXJJ9p3KMFlnivkuLKzC6XlL3mJUkE6C AvCsrltx1UOATyYhvSoLpACkUreHyq8kcmV4nguFA8x1QrcV4D5XmryBPe/3+5Lb+fae YcqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=j4RybmKO5z0+jOU5Q3bgVmNyKqmwl5OF6DdBnB6iTOQ=; fh=irIdZQ+h3E9eRejTJmlDLFHVxvXFPkjqECtUaumCy4U=; b=d+PrzuAO5UXkDbLY7fMfM/JNOb/Mq7VmAQkQkW+99OBTxEWvkieRoZQ/mWv9UPQxID SoDC8FuxdjTsphjFH7FZZfXgMqx5ssf4AQ+f+j4aU0KFxS7bliU8kIdvEzSAaN+GwEp3 rbAu6knVIP7DVJnFbX81MJ53IoBwYz5sqM7/AknCYmcnNc22Cg2ZldvvadDBHkqJwkFl lAJMZ76unG58QFSVWyIrZ1nSWUHhKoL4ZDEEgdXavKKW/m+zSYy2oW8HO5SvLrOLo8hs Wn0zBf6M1boWP1gwpOAfhXJIIuLaKnMN9DZiEdcVkMX4FD0pQY0K99Ph9/+ElUVTf/8i +/0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ku3TJ9Jv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v4-20020a170902f0c400b001dba67e1d81si440343pla.647.2024.02.28.20.07.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 20:07:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ku3TJ9Jv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E5C19B21CF6 for ; Thu, 29 Feb 2024 04:05:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DEFD37714; Thu, 29 Feb 2024 04:05:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ku3TJ9Jv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3501D37165; Thu, 29 Feb 2024 04:05:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709179518; cv=none; b=XYwwgumu2DXq2pL2GjWuG0kqQcleflO9bwXoGN9GKVz1ybZnSso3nYivB5jIrfU4Vwyvw/6U9AES2oZD8UTcrLgoFeCGr70Pg9+v/StCTvHNw3ysdXicDymoAWFFY5dlSY+0ucqbj+NbP12lkroxec3y/4wh5HKv//Ct1C3g4W8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709179518; c=relaxed/simple; bh=j4RybmKO5z0+jOU5Q3bgVmNyKqmwl5OF6DdBnB6iTOQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cQzHB9gRD5j8ooXb0K1OhvY3RFuX4LIQEpUQF3Wq4NkSifGS1uFAlpt51BmTHjlVu9CY+G95jQejWoo5afQK7H6erNMjQynHTi6nuYCc7y2Gn54zX3UkXLrahpLUE8RghtD6Fg3i2WVHcNUv+sel61sagQAOpD4lnpn8ax0cpFI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ku3TJ9Jv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A54EC433C7; Thu, 29 Feb 2024 04:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709179517; bh=j4RybmKO5z0+jOU5Q3bgVmNyKqmwl5OF6DdBnB6iTOQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ku3TJ9JvMsZRW9Y8+kYLiSuQn8yfuYHrVpOmC9k81z1UISiws/VioRMjVDK2hn/va vxHV1BYGS0IuN+rxDOxdz6pX6rl+qHmyFSWB4Nw4+IcG4IKuyEUH7Jh/OTpobXy0bA pv+8IN3wSeoNbaiMAhyccYNjxaBHKIAkvz8Hnk09C0LSs7bUmqXgSqhC+zY4P0vyXh c2IDW2EtfyvCZ5sV3PiOveKSB4LRfYTQc0RtM8WO7pylBUwwZhl6jdbFi5R8Dm/wFT XpgRgqTrQeSwwou27b8gMc1OAoauVpevfX6QtkyduMys3Nj7szSLvkQVpfAev5OGXq sRWC0GRLP3wCA== Date: Wed, 28 Feb 2024 20:05:16 -0800 From: Jakub Kicinski To: "=?UTF-8?B?U2FuanXDoW4gR2FyY8OtYSw=?= Jorge" Cc: "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "s-vadapalli@ti.com" , "r-gunasekaran@ti.com" , "rogerq@kernel.org" , "andrew@lunn.ch" , "f.fainelli@gmail.com" , "olteanv@gmail.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net RESEND] net: ethernet: ti: am65-cpsw: Add IFF_UNICAST_FLT flag to port device Message-ID: <20240228200516.1166a097@kernel.org> In-Reply-To: <20240228111300.2516590-1-jorge.sanjuangarcia@duagon.com> References: <20240228111300.2516590-1-jorge.sanjuangarcia@duagon.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 28 Feb 2024 11:13:23 +0000 Sanju=C3=A1n Garc=C3=ADa, Jorge wrote: > Since commit 8940e6b669ca ("net: dsa: avoid call to __dev_set_promiscuity= () > while rtnl_mutex isn't held") when conecting one of this switch's port > to a DSA switch as the conduit interface, the network interface is set to > promiscuous mode by default and cannot be set to not promiscuous mode aga= in > from userspace. The reason for this is that the cpsw ports net devices > do not have the flag IFF_UNICAST_FLT set in their private flags. >=20 > The cpsw switch should be able to set not promiscuous mode as otherwise > a '1' is written to bit ALE_PORT_MACONLY_CAF which makes ethernet frames > get an additional VLAN tag when entering the port connected to the DSA > switch. Setting the IFF_UNICAST_FLT flag to all ports allows us to have > the conduit interface on the DSA subsystem set as not promiscuous. It doesn't look like am65-cpsw-nuss supports unicast filtering,=20 tho, does it? So we're lying about support to work around some=20 CPSW weirdness (additional VLAN tag thing)?