Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5057017rdb; Sat, 16 Sep 2023 00:42:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEI0TeX6ULMNgIMGwN0lvghuhCcMQFpQZWKYunzo8OFddOGhtfRvhw4zQgy+eEM+DuzB8lY X-Received: by 2002:a17:902:e885:b0:1bb:25bd:d091 with SMTP id w5-20020a170902e88500b001bb25bdd091mr4571958plg.30.1694850145397; Sat, 16 Sep 2023 00:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694850145; cv=none; d=google.com; s=arc-20160816; b=QXGtk8/gsR2445/9iOOS0wYIhwzfYkuCbEnkN4sduPjOO8dMyBgjo5xlPSpJkWSu5x G1Euq+kCqDJVPG4xYRn9R/DhOEpaM6+5TtAuQmn8sLNmv8oXEateHwmLlwH6H/V+h/Y3 ZypfVmkhgWpeQ6MDWUg5svRqdpTvFBYULfhHv6u8gSpCVQdzHvDVJTE6wuG4H+uotPS0 q2UvzXWI4qTIk6OVFy1nV8D6DLOZQXP7vZCdGp3wxssxxSL+29AnCqtvcmz9il15jyMm XhzC6DlVXQU+RHG/8o0eyyk+leZeEjhHLO3aV6eOYhWWQxvXY2hM6pn3+cSc/ATderwN blPw== 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=aRvqBbUnPTJ/ihjprHEzoYh3iB9vO/ZixgE4WWpNpBc=; fh=iirzLoWJAOwPJS/1lQH2xIo9YnUkSd2SurOPc047UYw=; b=sNgvEiZd5VJDPP8DiDPY5iNAYx0NvzK38Ei8NU8ynMFC89/5qIXA4uvtq57QCuHZ86 8jqr0IilDL6sfZuVWKqScj+qO6V+iNM5rK6NakqNsWKXDWXP+DPkeFtes3d9M7x1MFSQ GD5jK6RBPfAShDANDuyC7oKosExmBYJCNurDBixeB/k0rjN099+2mm9Ik/urAupdAcqf FqRj0A2vljUdMVWJW38vtDSwQjgeLpqQ6OBpLcUcCaWZ3pPA3KGTVVjx0fzbs9RIowS0 V28pfESTC/Hg1NMxelX3h0j2zvRHbUg7XPuKInaTX9t6J76t+VSpTxEq3ClvQN5iN1Zx OWEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Uk6Vs0fa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u4-20020a170902e80400b001bda57935fasi4804168plg.64.2023.09.16.00.42.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 00:42:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Uk6Vs0fa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1E7B88083DE9; Fri, 15 Sep 2023 23:34:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236913AbjIPGdd (ORCPT + 99 others); Sat, 16 Sep 2023 02:33:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235309AbjIPGd2 (ORCPT ); Sat, 16 Sep 2023 02:33:28 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAD491985; Fri, 15 Sep 2023 23:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694846003; x=1726382003; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=XNwP6iy06WtQIeeb2YYjHa0FD0axMwuKvWJRYdYZ9sI=; b=Uk6Vs0faTpyCsVfuMniRj/6m+oC42jzUFLZXHzwg4dyh+IfNYT4pWouP nVSWlGEZIeCSY7FH16ZxDQAlSl3c9+PCITdobEWgRMwVycfAfNW4AUjeM ek2KehPBOh8Wv4F4BgBUR1GTePb9hJCgUsfhZZ5DuQTmNT4XRI68YxmeK Vtb8c3i/R6Yr//UwMcvdesoZWMukm6c16j4hSFq+gu+jbV41wEwzmG0+j D3z3UUrVm3yI5lLnPgNYRnigVlL/t8U3c2y9bYKvg6H6xXsJZqXs/xa2r c7c/e88zs/tL7WktYJ/DHd2fgkDV40d6S6Fk0b6EbAht9+BDxLwEb50hK A==; X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="359637784" X-IronPort-AV: E=Sophos;i="6.02,151,1688454000"; d="scan'208";a="359637784" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 23:33:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="780351376" X-IronPort-AV: E=Sophos;i="6.02,151,1688454000"; d="scan'208";a="780351376" Received: from pglc00032.png.intel.com ([10.221.207.52]) by orsmga001.jf.intel.com with ESMTP; 15 Sep 2023 23:33:14 -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 v7 0/2] net: stmmac: Tx coe sw fallback Date: Sat, 16 Sep 2023 14:33:10 +0800 Message-Id: <20230916063312.7011-1-rohan.g.thomas@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 15 Sep 2023 23:34:02 -0700 (PDT) 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 v7: * Updated commit message. * Add blank lines around newly added dt binding. 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 | 5 +++++ 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, 19 insertions(+) -- 2.25.1