From patchwork Fri Sep 15 09:54:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohan G Thomas X-Patchwork-Id: 13386778 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 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 0D688EE644D for ; Fri, 15 Sep 2023 09:55:06 +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=6tuI33EQbCm2JrI9atnYLlo6SU/KQ1u0wgvo0HlT3G4=; b=tUOaWq+r8WImMy MFTv4ouj7nUgFOE/NAqMJf38ov2V8CO/IYoQLt8eUUMlSQhwlfy+DHA9Gu8cRMMKcje8C8zZgF6cG iW58SmHNq4WBahzydQRrIWhbdVSLfsrZEn2lThWLnBCla7YJ62GWPG+BQWn9y3E8NLkIb5IiMFp18 MKmils7IbY/o0E7RRAzmIdHxwve2lCYk5nATqIXoQOi24PFtw89Au5L9xGZTl3gx2iiyapXiqToQC aiR6R3EHKZC7de+rChpIxSTkAs2E+vZ+FdbsHMq1wpgqisovY2TkunwyCDM92DE7sE92qcDAkr2eC g1WJBL9sm5+kA9556f+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh5X4-00AKU1-2O; Fri, 15 Sep 2023 09:54:38 +0000 Received: from mgamail.intel.com ([134.134.136.24]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh5X2-00AKSf-2U for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:54:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694771676; x=1726307676; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ed4YUZv03FL/7pT0GTcscmk26C9Wo3TferDm4a8fs+I=; b=JFgSLcpxUcxp3NafxBSxP7e8p9jlHLcLdLlKCb9hmKviyAxjFUbj6q2P /L9PtDoamlCJzBKnib8F33DoSSDeNN38VE2/zXmRDg97onYbci5fhxAh0 Z6BlDknCaoKRx8SFrwHSBOZ1peIxtMcAzF5QcKpPcVZIVIsEo5YS25oTh sWZN5dg9vKE8hrvkD7b0vzWqk6IHluLVgpnGWoGXvbwktRJQAS39z8igl TFq9mSMCqwPeSbOuwCoPOuYJUaiomt9538OGukWzDi8hCyvmEo/V9Osue Qz9RSzfbo/Ilr5vVzLAcCpEP16IaJil7hgsmPsC0B1Z5464AFZFNP7Uuf Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="381938673" X-IronPort-AV: E=Sophos;i="6.02,148,1688454000"; d="scan'208";a="381938673" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 02:54:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="744916284" X-IronPort-AV: E=Sophos;i="6.02,148,1688454000"; d="scan'208";a="744916284" Received: from pglc00032.png.intel.com ([10.221.207.52]) by orsmga002.jf.intel.com with ESMTP; 15 Sep 2023 02:54:20 -0700 From: Rohan G Thomas To: "David S . Miller" , Alexandre Torgue , Jose Abreu , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , fancer.lancer@gmail.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rohan G Thomas Subject: [PATCH net-next v6 0/2] net: stmmac: Tx coe sw fallback Date: Fri, 15 Sep 2023 17:54:15 +0800 Message-Id: <20230915095417.1949-1-rohan.g.thomas@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-20230915_025436_872052_330FA138 X-CRM114-Status: GOOD ( 10.66 ) 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 Hi, DW xGMAC IP can be synthesized such that it can support tx checksum offloading only for a few initial tx queues. Also as Serge pointed out, for the DW QoS IP, tx coe can be individually configured for each tx queue. This patchset adds support for tx coe sw fallback for those queues that don't support tx coe. Also, add binding for snps,coe-unsupported property. changelog v6: * Reworked patchset to cover DW QoS Ethernet IP also. changelog v5: * As rightly suggested by Serge, reworked redundant code. changelog v4: * Replaced tx_q_coe_lmt with bit flag. changelog v3: * Resend with complete email list. changelog v2: * Reformed binding description. * Minor grammatical corrections in comments and commit messages. Rohan G Thomas (2): dt-bindings: net: snps,dwmac: Tx coe unsupported net: stmmac: Tx coe sw fallback Documentation/devicetree/bindings/net/snps,dwmac.yaml | 3 +++ drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 10 ++++++++++ drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 3 +++ include/linux/stmmac.h | 1 + 4 files changed, 17 insertions(+)