Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp217655lqg; Fri, 1 Mar 2024 03:12:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXOgoi2yEb1YZppjvCSMzPLmKSlm/Z81kQw4tAwznCyeOF9iAadsdNLaVwyjdds/MR4/XfDqDSi6eu5muVDJazX+nPOQQqmFEvVfvoP9w== X-Google-Smtp-Source: AGHT+IG41mi10rhr90eSpvuBtODlaY8m7xejVg7f5Ot5jT5YZzsvVqGR7e2ASMejS63CYiB8Ewgu X-Received: by 2002:a05:6e02:1bc4:b0:365:a64c:e2ce with SMTP id x4-20020a056e021bc400b00365a64ce2cemr1447135ilv.7.1709291546059; Fri, 01 Mar 2024 03:12:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709291545; cv=pass; d=google.com; s=arc-20160816; b=n6zFCu1YkawkRErN38vfzhu25HPvVnG5V6ucBBd7HH8iJ0iqWKI7Z8MKX00ewNaBjF qtXMl0vCW0n4BoHJDI8K1JmrNop/joAMgW/c3fU+uxxQPkfhK0MP8BUk4qvwdXfRthrf cO90sYS8y2i/tCf83ASoEgwwpZtSzC5bj2kF2+Ns7YOykwS9j0FeA/cEomPAIYZVuYVl u5K1RrSs864hYDuxGUkycrohx+OtlqVCdruXGbNXNT3X+AjXy/pihmbrO5nwmctCofqA C16X7amDlUUEEtc3AxbduVGlkSSgeuTOa8RbGIcRHpHxAoF9KTwQDxGiZ9TI7jBVhh5v owzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=WthVMSlBC04LR7tfpauZDWEDm6N7t/Hgl+E1wPR/kR4=; fh=yqo4/i3UEsiJgBUcEDT5Vd5BCurquyv50BSq2z7HruQ=; b=VOk6ryT4rNQLeZ5OJgSCR4w/qhbzdFH7iu/oCsaWlVEqLHnj/+NtPF+usIdkoWUjmc fPUbgu5FjNf7yp+vgCiF0ZpusDshZm+tjDekh8At6T+pPHvREM5Vj4WXpn1UYo9Hl5jw l0n96r2oWW651POpfaG/F0J3hJBA5PLAfA8ChXuW0MeV1BTT8gO+Usigtd4+zicaFFeB BZisCPiHJKN8HuJD3EcMTtOfoh3hHdsNW6iEhWsOZ6OOAfd5JjxKynsJm8CO9Z4yO9MA sO299WyDBM7n0gEr1KEvngh1zGBZUx5ZWu7X1ir65htIsTirFnHf8kBTdtG+N/79XA0R oAng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PAZ7hQ7k; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-88305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q5-20020a634305000000b005dcab90d688si3342640pga.526.2024.03.01.03.12.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 03:12:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PAZ7hQ7k; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-88305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 68625288AFE for ; Fri, 1 Mar 2024 11:11:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4E096F062; Fri, 1 Mar 2024 11:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="PAZ7hQ7k" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 882846EB7B; Fri, 1 Mar 2024 11:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709291411; cv=none; b=k9H+jNqqZ9tPuau+6z+Hpd+vb3ZSw9iwOi15xcblBN+JCThAJbR8uT9iH6LZnZDZ6wm6RJXT0+0MFT/D42uofU54a3s9336lfw6uaOtseBAmjD/vw+Vtjfv85o2BYVvezfCn05iiyJ4h0O+K6Jodg4D3B54kXKxXHqoukx6BQWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709291411; c=relaxed/simple; bh=QRbExAMvXdH77Tuwests8b8zj5ZvrcJ6Ix6vLJ+34M8=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=CkdupNdAWLWvt4iNv6BXZ3yzM5IqHzTnYKoD958DvLxKEvd6DEAgBeB9KA9e8z3rQcpi445KESc31hqZYw8nP7thG8mu400W8NM6YQ9y5Xs1AlzkOjQWN1220M1zV701c5egtVdod1fSma3OD0JnvMbGCcWvtXF5jLtT+tuaymk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=PAZ7hQ7k; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 421B9tBL120075; Fri, 1 Mar 2024 05:09:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1709291395; bh=WthVMSlBC04LR7tfpauZDWEDm6N7t/Hgl+E1wPR/kR4=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=PAZ7hQ7kUNUaI1reBgkk8AFHWJ4SvLVGUkTqhxIpDJd++wVWfRoOpW24dN1AeFRQN tfzcx2UJiUy48RQ/17pmLYaG+N7qApykx3i3JVOgFCh4M/KkNiB703kIb2ufU0ZdhA tP/yRxbZD2DcOBzLZIA2Xb/zeYsY+TlouBKIjB6k= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 421B9txW099588 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 1 Mar 2024 05:09:55 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 1 Mar 2024 05:09:55 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 1 Mar 2024 05:09:55 -0600 Received: from [172.24.227.88] (uda0500640.dhcp.ti.com [172.24.227.88]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 421B9odN124584; Fri, 1 Mar 2024 05:09:51 -0600 Message-ID: <03bf515c-9f90-487c-ecfa-90d407dc5d86@ti.com> Date: Fri, 1 Mar 2024 16:39:50 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net RESEND] net: ethernet: ti: am65-cpsw: Add IFF_UNICAST_FLT flag to port device Content-Language: en-US To: Jakub Kicinski , =?UTF-8?B?U2FuanXDoW4gR2FyY8OtYSwgSm9yZ2U=?= CC: "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "s-vadapalli@ti.com" , "rogerq@kernel.org" , "andrew@lunn.ch" , "f.fainelli@gmail.com" , "olteanv@gmail.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Ravi Gunasekaran References: <20240228111300.2516590-1-jorge.sanjuangarcia@duagon.com> <20240228200516.1166a097@kernel.org> From: Ravi Gunasekaran In-Reply-To: <20240228200516.1166a097@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 2/29/24 9:35 AM, Jakub Kicinski wrote: > On Wed, 28 Feb 2024 11:13:23 +0000 Sanjuán García, 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 again >> 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. >> >> 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, > tho, does it? So we're lying about support to work around some > CPSW weirdness (additional VLAN tag thing)? CPSW driver does not support unicast filtering. -- Regards, Ravi