From patchwork Fri Jul 21 06:26:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boon@ecsmtp.png.intel.com, Khai@ecsmtp.png.intel.com, "Ng X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6A9B2C0015E for ; Fri, 21 Jul 2023 06:27:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=sUloZBPB42cVbrPOPM5m6DCxpmgtnKaB4c8beglte7M=; b=jHxIwisiwEfyN3 ZuktyrAGYVx98vCIABvmuNmqYjYlJiCdKPn7UBsuJviqLoIAiUWgaRCGYRPnqIkou3fxOE+hg+kZD UC1B6szsbAk6lkN/FNOr1/T2i4Ec14414R9TqQaJZ/7cuIOL0hvjOEA8alGrcVEhitE0cs/tjVBPV NxuxS0ulQ3KwzQh7xaq0XPtCjZ7VBSvV02jhnGbEO9WKMvLuJv7j2lflbeqXBsJ31jQdBSuhbSWqo DpAe2AmLGae6tKsZfTQEGwoXQYkXKyF3h/D4naIlK8d47N8RF/P6c9wq8cZ70+gSx6CvjN46IjPfk MXhOtZQxY3jglYFNhIog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qMjbl-00D26H-0V; Fri, 21 Jul 2023 06:27:21 +0000 Received: from mga05.intel.com ([192.55.52.43]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qMjbh-00D235-2P for linux-arm-kernel@lists.infradead.org; Fri, 21 Jul 2023 06:27:18 +0000 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="453327517" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="453327517" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2023 23:26:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="727990179" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="727990179" Received: from pglmail07.png.intel.com ([10.221.193.207]) by fmsmga007.fm.intel.com with ESMTP; 20 Jul 2023 23:26:52 -0700 Received: from localhost (pglc00300.png.intel.com [10.221.233.223]) by pglmail07.png.intel.com (Postfix) with ESMTP id 968BA482B; Fri, 21 Jul 2023 14:26:51 +0800 (+08) Received: by localhost (Postfix, from userid 11742525) id 909A580F8C4; Fri, 21 Jul 2023 14:26:51 +0800 (+08) From: Boon@ecsmtp.png.intel.com, Khai@ecsmtp.png.intel.com, "Ng , 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 Cc: Boon Khai Ng , Shevchenko Andriy , Mun Yew Tham , Leong Ching Swee , G Thomas Rohan , Shevchenko Andriy Subject: [Enable Designware XGMAC VLAN Stripping Feature 0/2] Date: Fri, 21 Jul 2023 14:26:15 +0800 Message-Id: <20230721062617.9810-1-boon.khai.ng@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230720_232717_818459_6A735689 X-CRM114-Status: UNSURE ( 8.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Boon Khai Ng Hi, The Designware 10G MAC(dwxgmac) driver has lack of vlan support in term of hardware, such as the hardware accelerated VLAN stripping. The driver was not draft from scratch, however it was ported from the Ethernet Quality-of-Service (dwmac4) driver, it was tested working on ourside. Reviewed-by: Shevchenko Andriy Boon Khai Ng (2): dt-bindings: net: snps,dwmac: Add description for rx-vlan-offload net: stmmac: dwxgmac2: Add support for HW-accelerated VLAN Stripping .../devicetree/bindings/net/snps,dwmac.yaml | 5 +++ .../net/ethernet/stmicro/stmmac/dwxgmac2.h | 28 ++++++++++++++ .../ethernet/stmicro/stmmac/dwxgmac2_core.c | 38 +++++++++++++++++++ .../ethernet/stmicro/stmmac/dwxgmac2_descs.c | 18 +++++++++ drivers/net/ethernet/stmicro/stmmac/hwif.h | 16 ++++++++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 29 +++++++++++--- .../ethernet/stmicro/stmmac/stmmac_platform.c | 6 +++ include/linux/stmmac.h | 1 + 8 files changed, 136 insertions(+), 5 deletions(-)