Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2047145rbb; Tue, 27 Feb 2024 09:02:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUqhaaPOUsylYxwvXss6uYtivEIy1ALEvv3AyRr1XaUtrWBW0FQDdzjGxnqXACLFxCWzPo8E4niZlEd+YYJgo1ab7Y0xFSVJJIyAoRaUg== X-Google-Smtp-Source: AGHT+IHyt2nipyG0J652nFQ6z3GKPtZzdzu9ceXtLTutfVHfqYf2DdQpZaIu5E9XI4EQEFeEjldo X-Received: by 2002:a05:6a20:ac44:b0:1a1:15dd:fb85 with SMTP id dh4-20020a056a20ac4400b001a115ddfb85mr544494pzb.44.1709053368220; Tue, 27 Feb 2024 09:02:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709053368; cv=pass; d=google.com; s=arc-20160816; b=vjUbprN4g9f13LWPF76mH8khzTLrGM/qlNrtx8qVqfgY70grAwMM+8mrmXywiA2W8R F0ufn4IZOwvbZ8t3TbpyBFzlCJXxmsvPhcicNBHyypvAt5in8pdxTMdV/OcVhG7NjBvm DojRKgD2muhAfYDZlTusiaihl/wVUI+7vUT8N6ZVirU5ratm/C9rKXxVzBVTCH5X4x8R SayOGBXE3OQlW88KRjrNKzbBuSbx8UjNa3vAlmQ0/+9drxg0t1ChWCZZAIzBxdrBisxb yN4HKCz4R5VzoFBbmxUdj1lyzqkm4Y87sP2/kjH0Dlk/igP3zK4Hr3ZxKBnE8fqm0pgp c2Eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3G5KA/KgvvnP+phbQfXRPEFm6i2mU+y0npJdWX/2CSw=; fh=gI+1BHFE7y59Jj+zhmCegcrRUAaZRxcILqptMBuJvgk=; b=oH1j6BQFeiT6sXzNRtjVK0y6vjX2FsKcwwS/yk3/POUBRR17y6q8FncIOZpscRFazd IojrvMwll3yP8Eg5U3yHhRFOjEBv0ZQSqV06uKpPuFPYkU0cnXJp0ljuTqmLv5dupsPi NpDL889cFYdEtZgsN39DjZQH2KabuH8wNv4jvAkCWihVEbl71O4Qk2t8olxmxkqBUpiF XYwcEZVm1AXS4kYZXzJMwPQIj8KGKQ3MHBE99TvSM0cWOYtWAPk0OlhNHerOyEVapRs5 9gXvUxbKDte956zyeqcWRZ+nzlru56DzIZap44qi3KTo49TQ6knrKjLxVmrfgyDaoerG hsSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=jHCgNOSp; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-83246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83246-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b9-20020a63eb49000000b005ce016cce21si5634356pgk.191.2024.02.27.09.02.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 09:02:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83246-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=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=jHCgNOSp; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-83246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83246-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0F556281E79 for ; Tue, 27 Feb 2024 12:40:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0035E13A258; Tue, 27 Feb 2024 12:40:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b="jHCgNOSp" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8666931A66 for ; Tue, 27 Feb 2024 12:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037604; cv=none; b=FCosibVFnYMkJ4FlKVEssjKe1gqj3lp3EadeFlWRYhPt9klhFyXCb+9AOc4cx0MCePlHPuU9141jBX4PEo0AyuktemWy47se5wHHz0Lehf0SJOq1ngLDxU8YmdtKIlNb/hXbut9KpJLc7RZSHgb7P8mPbLZIYuIEoGK4AB8F+cM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037604; c=relaxed/simple; bh=3G5KA/KgvvnP+phbQfXRPEFm6i2mU+y0npJdWX/2CSw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e8+C+UmWutqPqhfeSzFygEf16lI8u7ROZGReQsPQC0qvdzuuCf8w//Zxr+cBOGS68VnwNCf088R/07t8N+tUsQAardbtOGbXpmBVjNDWO+1Bjcim++7lL/kSS6kyxS3pTG1O98H6861tiEYs4dsmevYfWHJdkbEYIWzCFOnzH0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b=jHCgNOSp; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a3f5808b0dfso576940766b.1 for ; Tue, 27 Feb 2024 04:40:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1709037601; x=1709642401; darn=vger.kernel.org; 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=3G5KA/KgvvnP+phbQfXRPEFm6i2mU+y0npJdWX/2CSw=; b=jHCgNOSpMBU0VigG4iD9R5XshpWywf40VJuefxMlEEkiR0CaIbxbg70etnyiwxod+x 0hIYb4B/gSNipwLL3hwbskrR7vTfQtuloJfKeo73D1n5eAVq1Ms5GkTobq2xBnOaaram xkgybw7b6srTE/Va9lbJZagTp7recqjZRlQoeZYEGg/BenYnYNiVkawQLg0615Jt2ttk wqgUvClBKfpbb0Pgk1tYXfkb9+q8Rt3O1B69x8JAblPpMRR8I3sxdXGkZbYbdgPEdj63 0wGtSEz9m883N9k6XMmj4hM4VhncyB0FWh+kgYkgEhl12cOYNaiz5uP2359YhMUxbTdw HBBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709037601; x=1709642401; 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=3G5KA/KgvvnP+phbQfXRPEFm6i2mU+y0npJdWX/2CSw=; b=Yl0R9eQltIEyRRbn50cyiU3jIb5EpgKOnMQacqMP2XS845pz6iQ+yg5FtwXSAXz8nN W8s4GW3DKeUz56tPVP8aS852S/NGrtyJSvsJbt0w9+N3CgquDczeanqenCE8GmXZwaAw NTohrc/RSDEDFUDFdpErE+4ley9DT4kChRLImU4XI1Mbi7xYiZe/pzWpNqbarroBB8U/ 8Ofy18duxlPBKcO2yYvLqo3HSBe256VLnUqp7tfEX/45MfCXtLKN5qsQl5D9LYWggbyJ akCbym1dmWGvAi8G02w4pkrayJIQ4jhaerS8J6GxFOKXQs48VMijaqs5EDSRRv6BIMVw QGvA== X-Forwarded-Encrypted: i=1; AJvYcCVGA3GbqK6afR9CuQNgZWHhtLxODB1E6SEeCbR6deWzy2D6/UHJEo2FTNbiGo3KPDxkQ+o6KngMrBU4fOLoFuG+Gi80XBuvm8Htd08j X-Gm-Message-State: AOJu0YwHCrbNqLoOecPrDqHfUkDPdgkuWh/qGafXN+rBn57lSmxyylVX vDeN/ToGr9slE18sIvmaLIUICV9EqpkDS2qR3NiNJ7mp1sNWyxbGnxX9noyBnqg= X-Received: by 2002:a17:906:e0d6:b0:a43:8468:ac0b with SMTP id gl22-20020a170906e0d600b00a438468ac0bmr2629106ejb.7.1709037600854; Tue, 27 Feb 2024 04:40:00 -0800 (PST) Received: from localhost ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id wr2-20020a170907700200b00a3e881b4b25sm714035ejb.164.2024.02.27.04.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 04:40:00 -0800 (PST) Date: Tue, 27 Feb 2024 13:39:57 +0100 From: Jiri Pirko To: Siddharth Vadapalli Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, rogerq@kernel.org, andrew@lunn.ch, vladimir.oltean@nxp.com, hkallweit1@gmail.com, dan.carpenter@linaro.org, horms@kernel.org, yuehaibing@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srk@ti.com Subject: Re: [PATCH net-next] net: ethernet: ti: am65-cpsw: Add priv-flag for Switch VLAN Aware mode Message-ID: References: <20240227082815.2073826-1-s-vadapalli@ti.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=us-ascii Content-Disposition: inline In-Reply-To: <20240227082815.2073826-1-s-vadapalli@ti.com> Tue, Feb 27, 2024 at 09:28:15AM CET, s-vadapalli@ti.com wrote: >The CPSW Ethernet Switch on TI's K3 SoCs can be configured to operate in >VLAN Aware or VLAN Unaware modes of operation. This is different from >the ALE being VLAN Aware and Unaware. The Ethernet Switch being VLAN Aware >results in the addition/removal/replacement of VLAN tag of packets during >egress as described in section "12.2.1.4.6.4.1 Transmit VLAN Processing" of >the AM65x Technical Reference Manual available at: >https://www.ti.com/lit/ug/spruid7e/spruid7e.pdf >In VLAN Unaware mode, packets remain unmodified on egress. > >The driver currently configures the Ethernet Switch in VLAN Aware mode by >default and there is no support to toggle this capability of the Ethernet >Switch at runtime. Thus, add support to toggle the capability by exporting >it via the ethtool "priv-flags" interface. I don't follow. You have all the means to offload all bridge/vlan configurations properly and setup your hw according to that. See mlxsw for a reference. I don't see the need for any custom driver knobs.