Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp323143lqp; Mon, 10 Jun 2024 05:31:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpVip+4lEYM+Jwp85vsywaY5XU++cLrWODlL6hFnMBpcai8uDfXLPOEBvUMfrdWnvQpg1Us2n3A4OGVlgHknhjdelJ9xP75rK5ibYsMQ== X-Google-Smtp-Source: AGHT+IH+HCsaYREMH1ZszmKIv4ULjyITGqGS0wRaGmt/atcEK/LvB+kxyurEKIFqcLrntaBc6hbi X-Received: by 2002:a05:6a21:329c:b0:1af:4faf:e4a8 with SMTP id adf61e73a8af0-1b2f9a5f4d8mr9539138637.33.1718022667040; Mon, 10 Jun 2024 05:31:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718022667; cv=pass; d=google.com; s=arc-20160816; b=wrjGEfJ9o2K9n7smC/02Gw1ebhECkC+0p/HgD8FdGWg7fLb5QxGwN4iZp76qClBdGf Pd6aIRjNE5SckZXxWvfngibhvVnRU9yiVG57u1EJmR098tFsZW4QslT9l10XVYdkGGb3 nfeMr1w57a0Tw8S81gKbx8LK8viQQDz20P3ywZwFwqSCRwcaS9F93dl7ib9Ipp4GJxpW i7/MtHcb9j6UTVO6bvMMGCYEsyknlfGKPOQFYRpv3vvnKrTaYNGfq5tK01bkZA4DFJJc GTBV+rABEawtoZr+HaCDr5IUA4TDPbAe8DaT2fTWD1DPN1KDOWu3b6dZXLz052QhcyBA zzTg== 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=ZAmsJ52qEwd6M60f4uacAxS1bKk0l5sx1M5ZKU+F02g=; fh=8XN/CgKDi8rDFDpMmKu722YzCcxd1CvLe4g1OdAOL3s=; b=jnLGHe2oploYGimppFhGtE/9GVqdE28M4/rqf70HAnVfqv1Fj0VSXXdmkHRYPZ/0+X lnRW81qlKBBQQJbmGfIK2Ujv+F0mh9hBP7mZD7Kq/26QcBUw6y6e+c9lMdJwxbnb2nzm LY0P7Ufi7L/Up9YgmNyrBwQK4vJvLRTxeMKKfR7fJAxsecZirQ1Y+CyOzm17RJ5Pb5e4 EXzitJPybH4L1yB967l3Z4UlB7npvzT64ofCiY8DkzIbxkXcQVsiq3Q0shpS8rcfJjnh 9gbydmWJZdqCUJYaFhEwqgCHYd7FNNwci1fx/BgBtFuUClfHNY1Z2iKCq2OUAlHa1FaG 1BGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=RI6pwL8M; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-208159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6ea88e288d4si2830306a12.805.2024.06.10.05.31.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 05:31:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208159-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=@lunn.ch header.s=20171124 header.b=RI6pwL8M; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-208159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 7C91928479C for ; Mon, 10 Jun 2024 12:31:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19F828062E; Mon, 10 Jun 2024 12:30:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="RI6pwL8M" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 ADFD37FBC3; Mon, 10 Jun 2024 12:30:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718022656; cv=none; b=K42D8K9KLlmo8TPvnkmpOB+Xdsrel30JUPQJ9lbRw8jEHFKPR63QeIQx2OGjVgADGtJ8+uqJmDX/N+UJX6LQwaq61V8eq20j/yt1dh4fPvMvPVMdeqWnban/mVWkj6UgsWPFavU1pxxC5FIzTYlPr35ESylzgxlEnnci6ZNFHz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718022656; c=relaxed/simple; bh=veByNKSd2kQ7TiJKiXGkl7HROTIQBu6OtkQPiB073wM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=onuxdYCpk6N/qjO2/DTxbhTTqujHyVNVS28CjGqu5zIFyc9bg1H4aTK5/NwGPQ9T3rtRgQEemr6eKoDOKqfsFleE1AiLn178N6zkjubwh3aBarepIinnPzQl6jTsBj9lTJ9ny8PwE3VZFqzqCHDVJiLK8HSiDtrpuUPhwyia6Sc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=RI6pwL8M; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=ZAmsJ52qEwd6M60f4uacAxS1bKk0l5sx1M5ZKU+F02g=; b=RI6pwL8Mkl7wa4Jo79n0XYBrkV ro9kjR65ptgoMiajSMTClkDTnPMHfm0b9oXxDSfIpRRzYWC97ceiJ6shdT3fyBRH1TdcFTEpWpHLK PcxHw8B06RELz2fyisz4uMaNIVSTMtmCeylDOqIYfuOSfftgFcIMawAQmfqj2a/WO4EI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sGeAY-00HIOs-FV; Mon, 10 Jun 2024 14:30:38 +0200 Date: Mon, 10 Jun 2024 14:30:38 +0200 From: Andrew Lunn To: "Ng, Boon Khai" Cc: Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , "netdev@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "Ang, Tien Sung" , "G Thomas, Rohan" , "Looi, Hong Aun" , Andy Shevchenko , "Tham, Mun Yew" Subject: Re: [Enable Designware XGMAC VLAN Stripping Feature v2 1/1] net: stmmac: dwxgmac2: Add support for HW-accelerated VLAN Stripping Message-ID: <3c32c9b9-be77-41c8-97f7-371bd6f8fa16@lunn.ch> References: <20240527093339.30883-1-boon.khai.ng@intel.com> <20240527093339.30883-2-boon.khai.ng@intel.com> <48176576-e1d2-4c45-967a-91cabb982a21@lunn.ch> <48673551-cada-4194-865f-bc04c1e19c29@lunn.ch> <322d8745-7eae-4a68-4606-d9fdb19b4662@linux.intel.com> <734c0d46-63f2-457d-85bf-d97159110583@lunn.ch> 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: On Fri, Jun 07, 2024 at 04:09:37AM +0000, Ng, Boon Khai wrote: > > > > Do you have access to all the reference documentation for the IP driven in > > dwmac4_core.c, dwxgmac2_core.c and stmmac_main.c? Is it just VLAN which > > is the same, and everything else is different? Or are other blocks of the > > hardware also identical and the code should be shared? > > If VLAN is all that is identical, then stammc_vlan.c would make sense. > > Hi Andrew, I only have access to the document for > dwmac4_core.c and dwxgmac2_core.c O.K. So please do look at the VLAN code in other places and see if any can be shared. , I notice that in the linux mainline > https://github.com/torvalds/linux/tree/master/drivers/net/ethernet/stmicro/ > stmmac > > it does have stmmac_est.c and stmmac_ptp.c to that support for both > dwmac4 and dwxgmac2, with that I think it is suitable for introducing > another file called stmmac_vlan? Yes, stmmac_vlan.c is O.K. Andrew