Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1725094rwl; Thu, 30 Mar 2023 00:11:24 -0700 (PDT) X-Google-Smtp-Source: AKy350YmdHWF0zKntyD5zzeTI68qoYvK5L0UsS1W4QyAvWrcvb/BnMnR5PiigsXai2t5kO6g4SzN X-Received: by 2002:a05:6402:40c7:b0:501:ea97:519c with SMTP id z7-20020a05640240c700b00501ea97519cmr1502909edb.4.1680160284518; Thu, 30 Mar 2023 00:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680160284; cv=none; d=google.com; s=arc-20160816; b=hLzmArk59XQdCINj8xhtR/3VCDLGivUwPRBIMbCvqQwEr0GLwn1NEFqhv6ymDKagez 3wzcobk38unseZyAFCynfpc4AJV3xQsySGv1ZPmbB5OVTofmlbSOC8CnCiXxXoolRZH8 Wj8vsiVvGC8dFKjLbZ4peVirr1tJeastsPynTOyPughLLB9sKaJeWQjltIjS+ErKmnR0 32HpQCXsmVB5Wv7WrDxPiAXTQVndY51KmBdE6AUC/+dmEkQDjBz8fVy6+4/5itJfsZIZ ch7JM7XpVLDnxo8mf14wjS2D3la9frq87GLeIxvXWptH0O+aw8yyZXbSStIbS01x1Wbj 2Stg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=b1yhWAhPwDzUSliIf6I8dNOAGYmgl61IkvyXkpmOSWY=; b=CP56sqTmqPbxayjnHV710A+7gbgXpV0Rm3WSpoFrjiXajtXfgZE+uuvRhsCJU/ZFYP eXNmgSpqVVx90S5VPb88tLPryjxsSH6WIzETKzsNHupX6EbFlek1r5vbj5C+1dKmIW17 P6EX29pZWJeZh6xPXcNs5mHQrOUCDn3qSYMhEjSJNSANhrf1vw/fA50oiCHHP9BnlfpS IMmw0OHzbH5j2sTlHj8M3kk8NmxPCzocaURdYGw5M1ydl9BarOqcBQcznsKpggS3kmLp YV0YUrtN8rnBiteGqugrcc5K6/i5g/xwZb/kmWVjAYP8SF2gRcg2Korip3Ee3PsRpC4o SJhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IjgkuAjq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a50fb05000000b004ad0993e54esi35076952edq.487.2023.03.30.00.10.59; Thu, 30 Mar 2023 00:11:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IjgkuAjq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbjC3HCy (ORCPT + 99 others); Thu, 30 Mar 2023 03:02:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229896AbjC3HCv (ORCPT ); Thu, 30 Mar 2023 03:02:51 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4332855B5 for ; Thu, 30 Mar 2023 00:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680159770; x=1711695770; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=emsz7RuRmLOMYEXI0fF4ScGgAtHMX/rkvAuxD3N/61I=; b=IjgkuAjqiWWAnwxafocUi2bdesIWMloQqAssB8xDG71LwbKqyKiOtY2E jtHj8XLAoTNbFGTpYZl+6UwGrvKLW9e/SUroi6Ikc9xyOF/Kx3Z8QBlfJ CIxhadMZG1Pov31+UKjiuUBHyKIJKCGSdrFuon/kTIMvvtIIi62sjcIDP 2yMB1aBwXDGyldHPo4POD0Ahk/qwk0iuCR298N/vFA0LOdySpJQmdOk7P GiNrRgXu7NJEuk10dxSftA/G3vYoEzCQBXJeaXP0LLiH4zXNOEnOsF7tF CT0QJ6VgYOGbHs8zg4riLCWwZzbpsCgNJgsxeKszda005PlY5Ao4kuXoD g==; X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="329580887" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="329580887" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2023 00:02:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="795557898" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="795557898" Received: from pglmail07.png.intel.com ([10.221.193.207]) by fmsmga002.fm.intel.com with ESMTP; 30 Mar 2023 00:02:48 -0700 Received: from localhost (ppgyli0109.png.intel.com [10.126.160.114]) by pglmail07.png.intel.com (Postfix) with ESMTP id 938D34837; Thu, 30 Mar 2023 15:02:47 +0800 (+08) Received: by localhost (Postfix, from userid 11742525) id 8FB5C3040; Thu, 30 Mar 2023 15:02:47 +0800 (+08) From: Boon Khai Ng To: "David S . Miller" Cc: linux-kernel@vger.kernel.org, Mun Yew Tham , Tien Sung Ang , Boon Khai Ng Subject: [PATCH v1 0/8] drivers: net: stmicro: Add VLAN support Date: Thu, 30 Mar 2023 15:02:27 +0800 Message-Id: <20230330070227.27173-1-boon.khai.ng@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=AC_FROM_MANY_DOTS, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The Designware 10G MAC(dwxgmac) driver has lack of vlan support in term of hardware, such as the hardware accelerated VLAN stripping, hardware filtering and vlan fail queue. These patches are meant to enable not only the hardware support of VLAN features but also the promiscous mode. 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. Boon Khai Ng (8): drivers: net: stmmac_main: Add support for HW-accelerated VLAN Stripping drivers: net: stmmac_main: fix vlan toggle option. drivers: net: stmmac: Add support for HW-accelerated VLAN Stripping drivers: net: dwmac: Add use_hw_vlan setting net: stmmac: Add support for VLAN Rx filtering net: stmmac: Add support for VLAN promiscuous mode net: stmmac: Add Double VLAN handling for VLAN Rx filtering net: stmmac: Add option for VLAN filter fail queue enable drivers/net/ethernet/stmicro/stmmac/common.h | 1 + .../net/ethernet/stmicro/stmmac/dwxgmac2.h | 56 +++ .../ethernet/stmicro/stmmac/dwxgmac2_core.c | 328 +++++++++++++++++- .../ethernet/stmicro/stmmac/dwxgmac2_descs.c | 15 + drivers/net/ethernet/stmicro/stmmac/hwif.h | 16 + .../net/ethernet/stmicro/stmmac/stmmac_main.c | 30 +- .../ethernet/stmicro/stmmac/stmmac_platform.c | 13 + include/linux/stmmac.h | 1 + 8 files changed, 452 insertions(+), 8 deletions(-) -- 2.25.1