From patchwork Thu Nov 10 21:22:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 13039356 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84919C4332F for ; Thu, 10 Nov 2022 21:23:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231676AbiKJVWh (ORCPT ); Thu, 10 Nov 2022 16:22:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231899AbiKJVWS (ORCPT ); Thu, 10 Nov 2022 16:22:18 -0500 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F01931DFD for ; Thu, 10 Nov 2022 13:22:17 -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: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: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=cfqbLsjTXIklgUmkkjoKLX8BggWtVbPLmwMoI1aXoyk=; b=dZhXm+IpFFEJsfqN3xQJYJPbqD NY4f7k4zhNV2Dnq3yc+YxC14yeK7ijVX4FUijlgKLXf15B6kC9l9R7/8e+NPbPjrjs9Hve15xc0Io 3zHnou/5lPpVCcC5zOasJdNMIYVuctKwSsb/icjbrmR7VzvmdQDKruWRvQTQMiUuGkCQ=; Received: from p200300daa72ee10c199752172ce6dd7a.dip0.t-ipconnect.de ([2003:da:a72e:e10c:1997:5217:2ce6:dd7a] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1otF03-0011Om-6K; Thu, 10 Nov 2022 22:22:15 +0100 From: Felix Fietkau To: netdev@vger.kernel.org, Matthias Brugger Cc: Vladimir Oltean , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH net-next v3 0/4] mtk_eth_soc rx vlan offload improvement + dsa hardware untag support Date: Thu, 10 Nov 2022 22:22:07 +0100 Message-Id: <20221110212212.96825-1-nbd@nbd.name> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This series improves rx vlan offloading on mtk_eth_soc and extends it to support hardware DSA untagging where possible. This improves performance by avoiding calls into the DSA tag driver receive function, including mangling of skb->data. This is split out of a previous series, which added other fixes and multiqueue support Changes in v3: - fix netdev features sync - fix dsa_default_offload_fwd_mark call in dsa patch Felix Fietkau (4): net: dsa: add support for DSA rx offloading via metadata dst net: ethernet: mtk_eth_soc: pass correct VLAN protocol ID to the network stack net: ethernet: mtk_eth_soc: add support for configuring vlan rx offload net: ethernet: mtk_eth_soc: enable hardware DSA untagging drivers/net/ethernet/mediatek/mtk_eth_soc.c | 93 ++++++++++++++++++--- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 8 ++ net/core/flow_dissector.c | 4 +- net/dsa/dsa.c | 19 ++++- 4 files changed, 109 insertions(+), 15 deletions(-)