Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2416661rwb; Mon, 7 Nov 2022 13:03:43 -0800 (PST) X-Google-Smtp-Source: AMsMyM67rmCYSf9Via0phL2usJI7LMSFC/6bZ29lns/wtjwdfkvHDpde3g17SpVceeveFktjWmhi X-Received: by 2002:a62:6544:0:b0:561:7446:fdf4 with SMTP id z65-20020a626544000000b005617446fdf4mr53718920pfb.41.1667855023576; Mon, 07 Nov 2022 13:03:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667855023; cv=none; d=google.com; s=arc-20160816; b=gJyZ8ufkuwMXVJqtZrcdR2tW7UcnvZ9jrzb/Vii4PZa05E1+0q3/mW9ukXT0w3MkIp gJeHDW8Lfs0FGCWQeHWCE2nFu6BQHl6Qu1OithgyGFOPMMSijf6sKOPCFnI8LVgyzSyn u98KwuNkYRrxe9IOlfXhx5ZM3Qa6SN8F2XbfKFzOZZS7kyDgZlI9S4+fY39bXqXDLCHk 1RJwIL/7gr7yeqdrIuzQ+lF0t1lYJ2QD3t0UkMffJvsdna+syvBj/ox6YBLLV8LoR7eJ Dpka6A0nY/P/zf4Xzmmb8tN/BN4sX4X9GH6MW5BqUwPLOgb5ua1Sn44BAXrBiA9kqXbM iHig== 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=6IYI4p300dG70msn+7q2b2hGBMt0NQzYvJdzq6aVpFo=; b=x1w/JxpbbXVttNpYndCvguWD7fgwvSB8G+Q5Wfds3UP530udHTdV+D7lz4XBmQPMaP xTcubwp0kSWYkS1wRYnV5lWDuDpFcezpRgNTAeSmlT24GeZ3niUPM5HwtR8FJZWUeKUJ sYVYm9k5uiZFvMP9Uk8t99wkmnQdzsiHAMAQ5DOQcAlk41QO1zRd4U+RTZvj2nHtXak7 SqYQehgP8fO3rodtxPjWOGKBxekKH2Fnz8AiRUE8DzufoeZ7NWgZQWgy2MdbBYG+5PNA SlycIhdfmpi/XT0iz+8xTBqr6msvooIC+K7hGR473IVqutgW1g1NWOTpWqHzseCiwIMS u46Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=flLecCoc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a170902f70b00b00186e9ff4edcsi11279699plo.408.2022.11.07.13.03.31; Mon, 07 Nov 2022 13:03:43 -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=flLecCoc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231997AbiKGTZ5 (ORCPT + 92 others); Mon, 7 Nov 2022 14:25:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbiKGTZu (ORCPT ); Mon, 7 Nov 2022 14:25:50 -0500 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16BF42AE02; Mon, 7 Nov 2022 11:25:43 -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=6IYI4p300dG70msn+7q2b2hGBMt0NQzYvJdzq6aVpFo=; b=flLecCocMLB6pb9ZXLmN4mEnk+ pK9o1To5LtMyJeRHHQuP8GK1v+MMpglN0sLlqCEwW0kmh0PiRyaY000+ol0A4q+K3zwf47vCSMZ6i fy+ap0P6FbHDSoySQgYMti2AYYM+4XP5ewAGqQgf9bqRjoZBWOVJ7Rc/VWgpuyh/TGPQ=; Received: from p200300daa72ee1007849d74f78949f6c.dip0.t-ipconnect.de ([2003:da:a72e:e100:7849:d74f:7894:9f6c] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1os7HH-000LCc-R6; Mon, 07 Nov 2022 19:55:23 +0100 From: Felix Fietkau To: netdev@vger.kernel.org, John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 13/14] net: ethernet: mtk_eth_soc: set NETIF_F_ALL_TSO Date: Mon, 7 Nov 2022 19:54:51 +0100 Message-Id: <20221107185452.90711-13-nbd@nbd.name> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221107185452.90711-1-nbd@nbd.name> References: <20221107185452.90711-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 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 Significantly improves performance by avoiding unnecessary segmentation Signed-off-by: Felix Fietkau --- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h index 26b2323185ef..bf8c7d11df9f 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h @@ -46,8 +46,7 @@ NETIF_F_RXCSUM | \ NETIF_F_HW_VLAN_CTAG_TX | \ NETIF_F_HW_VLAN_CTAG_RX | \ - NETIF_F_SG | NETIF_F_TSO | \ - NETIF_F_TSO6 | \ + NETIF_F_SG | NETIF_F_ALL_TSO | \ NETIF_F_IPV6_CSUM |\ NETIF_F_HW_TC) #define MTK_HW_FEATURES_MT7628 (NETIF_F_SG | NETIF_F_RXCSUM) -- 2.38.1