Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp56768pxm; Fri, 25 Feb 2022 03:58:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyw2SUicDpy7O81DS8UGrtUJEKA1hZ8t92q/9OoDfNjVFtSmlPK3UXGrq0OfKXoj7L3hKc+ X-Received: by 2002:a17:90b:1916:b0:1bc:2c12:9140 with SMTP id mp22-20020a17090b191600b001bc2c129140mr2863285pjb.115.1645790329259; Fri, 25 Feb 2022 03:58:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645790329; cv=none; d=google.com; s=arc-20160816; b=ZaJqQBjjTQQczcti4CToel4x3pDwmqa/UcMlsD+Fn9XrnhJg1WZQv3HbvYwXpyPQ2S bys4xiXuahf0/WfhuIvhjsURCHrqeCz8N2Yy59y8cMRAh3g5i/Yi/e6F654VDGPxYw0+ je41cNZFCxd2DDLJCQO7W2wH4xQj08/3Ap92geLsKNJqlFj24DTHOL/H4H+R7R0miz5x sJWXgIQYiaNUyVM6NW7W21NUrVlUo7ZDSnT03jE9UVBSKTbfkZzc6l4+HACJhOWSgpyC BZlcvDKSEEdU1ReYdVE4Rzs1nGL8p9bT9FADm2i2LqJGGNZ4Q+I5sRixsDUNiFBNDxum Xi/w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=G7vsg/KcOeJhzWVxaCzLaJE46D0kipXYK45386ZlK7o=; b=ZNyQWefFQOLjgt/zLWOxa3LQ1ZkhrF8ncfWm+5wgoiAlUGStgTv09Md7M0+kc4ot2L 7lmPEbqLhYhNihMcitU+/fXKn3hDTZiITlL5cg9WqKUtLsPsdAq381s8wHyevoZ2+dRS 7xsXdjpfQbmulmAfsS947BG3MMdO/44jLeVsRJwWyLxuewCKayRXzCAzmpLfWlev+wCM UMyPQoLbCaIQtfJpGRI32dgpCRKtA4gz/8pX/WGxZZ4RDtbnauQPzXIxMgO50jEQhPli E6ILhKCe98Ll24dSLRdzUiUL3h3huk0Jp0T+9aARRUfdYecKJ+buLMPLMEQxCp8Pqdvd 5CfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=U+5fzw8v; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v32-20020a634820000000b0037323a4cc49si1672660pga.616.2022.02.25.03.58.35; Fri, 25 Feb 2022 03:58:49 -0800 (PST) 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=fail header.i=@nbd.name header.s=20160729 header.b=U+5fzw8v; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239537AbiBYKc2 (ORCPT + 99 others); Fri, 25 Feb 2022 05:32:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239457AbiBYKc1 (ORCPT ); Fri, 25 Feb 2022 05:32:27 -0500 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BF083FBC5; Fri, 25 Feb 2022 02:31:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=G7vsg/KcOeJhzWVxaCzLaJE46D0kipXYK45386ZlK7o=; b=U+5fzw8vCoFnC2xr7pDVAIT9fo V4sikZJwQwEO8t2tJofbwPbv9MOY+FGdY/Ec9jjpAuJnk2DwnmtDuxHaRMR/76IJGa3VqM0bn2WxJ axarjWcUNqlMtPUKoges/HzpRQfEhl1VCf/bTyz2b5FBoyhCbJn6C9NRZIxO24cRNyBo=; Received: from p200300daa7204f00f847964d075b2b3d.dip0.t-ipconnect.de ([2003:da:a720:4f00:f847:964d:75b:2b3d] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nNXg5-0007J1-9J; Fri, 25 Feb 2022 11:18:21 +0100 From: Felix Fietkau To: netdev@vger.kernel.org, John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Jakub Kicinski , Matthias Brugger Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/11] net: ethernet: mtk_eth_soc: remove bridge flow offload type entry support Date: Fri, 25 Feb 2022 11:18:09 +0100 Message-Id: <20220225101811.72103-11-nbd@nbd.name> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20220225101811.72103-1-nbd@nbd.name> References: <20220225101811.72103-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 According to MediaTek, this feature is not supported in current hardware Signed-off-by: Felix Fietkau --- drivers/net/ethernet/mediatek/mtk_ppe.c | 8 -------- drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c | 1 - 2 files changed, 9 deletions(-) diff --git a/drivers/net/ethernet/mediatek/mtk_ppe.c b/drivers/net/ethernet/mediatek/mtk_ppe.c index a7fe33bbde63..aa0d190db65d 100644 --- a/drivers/net/ethernet/mediatek/mtk_ppe.c +++ b/drivers/net/ethernet/mediatek/mtk_ppe.c @@ -84,13 +84,6 @@ static u32 mtk_ppe_hash_entry(struct mtk_foe_entry *e) u32 hash; switch (FIELD_GET(MTK_FOE_IB1_PACKET_TYPE, e->ib1)) { - case MTK_PPE_PKT_TYPE_BRIDGE: - hv1 = e->bridge.src_mac_lo; - hv1 ^= ((e->bridge.src_mac_hi & 0xffff) << 16); - hv2 = e->bridge.src_mac_hi >> 16; - hv2 ^= e->bridge.dest_mac_lo; - hv3 = e->bridge.dest_mac_hi; - break; case MTK_PPE_PKT_TYPE_IPV4_ROUTE: case MTK_PPE_PKT_TYPE_IPV4_HNAPT: hv1 = e->ipv4.orig.ports; @@ -572,7 +565,6 @@ int mtk_ppe_start(struct mtk_ppe *ppe) MTK_PPE_FLOW_CFG_IP4_NAT | MTK_PPE_FLOW_CFG_IP4_NAPT | MTK_PPE_FLOW_CFG_IP4_DSLITE | - MTK_PPE_FLOW_CFG_L2_BRIDGE | MTK_PPE_FLOW_CFG_IP4_NAT_FRAG; ppe_w32(ppe, MTK_PPE_FLOW_CFG, val); diff --git a/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c b/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c index d4b482340cb9..eb0b598f14e4 100644 --- a/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c +++ b/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c @@ -32,7 +32,6 @@ static const char *mtk_foe_pkt_type_str(int type) static const char * const type_str[] = { [MTK_PPE_PKT_TYPE_IPV4_HNAPT] = "IPv4 5T", [MTK_PPE_PKT_TYPE_IPV4_ROUTE] = "IPv4 3T", - [MTK_PPE_PKT_TYPE_BRIDGE] = "L2", [MTK_PPE_PKT_TYPE_IPV4_DSLITE] = "DS-LITE", [MTK_PPE_PKT_TYPE_IPV6_ROUTE_3T] = "IPv6 3T", [MTK_PPE_PKT_TYPE_IPV6_ROUTE_5T] = "IPv6 5T", -- 2.32.0 (Apple Git-132)