Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4730530rdb; Fri, 15 Sep 2023 10:27:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeY3FYnxR2H5u9rDvrb+PqEJcozn+etYuPFR9avC+5PrlREHTaafVEdwss+NsAtAQpkCU1 X-Received: by 2002:a05:6a20:7f84:b0:154:6480:8588 with SMTP id d4-20020a056a207f8400b0015464808588mr2426233pzj.0.1694798857135; Fri, 15 Sep 2023 10:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694798857; cv=none; d=google.com; s=arc-20160816; b=xRq8XDLeRKyHdbPylXmetNO0A9eyJsTEPhC4qeGsOio6cquZ368Oro6uJjYYXO/KjP Btzu49syXWDcJhlosKp3be7MksRpAtGmsG0eXK+YojNSXlyR3RS2CJtGVmA8Jh4xUUOc TtNj3wCFM3/Vpk3TL0aE5kzFpPrOo+nhm+FZqM2mgKNrikxQMoPyWNe7VHJW2xWeB32O k2kHwIcV6IihGvZfbI5gOBoeahvm72RUd0uUrwwpi8OeDwG6eDb9DMrghyVuM73AzOuQ xFxlUl2nzPPiVTkfR1IbvA6aOp0gTx8a7ik1kWdv3uxClHpSOGJVE/DwjW8CXmJMJ7GM Dd/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 :message-id:date:subject:cc:to:from:dkim-signature; bh=lNl+g8mf3uRYE8Ebob3vpjqTAyZACRlym5SXPPqTLMA=; fh=iirzLoWJAOwPJS/1lQH2xIo9YnUkSd2SurOPc047UYw=; b=QU/KcJzAgR1JOcku2hyJRALJvwYCRdRPosFJrgniuRisYQVrP3FYQzJhu26eOWif4H ScQpcrz9AYEyLwcTPNcU2VoHtUSHcTvKCWsIh5gji5+fy6ZEedY3BVzdb7rmg73mBRFw HPoTqmIZQRrQOEXBxHZwfuFvOL5AgTiPnJS+cDTU6STwC3tPBE/z2f5QzVcF7upciA1C QpCeT79wcquMpg08wNZacgZBRpLJ0mOvYeHHPaIGVP09HDAOfAfM3O8oh8J2Pn++G1Wc B9zYz/XGfLKaOtZf2aNu4Ctebv++D4YonsJL7p3Xr67LQSB3i4wUsBm+TNmhJEJknOXf Xv+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PkhI5gk4; 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 m1-20020a656a01000000b0054fbd904b6dsi3829344pgu.500.2023.09.15.10.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 10:27:37 -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=PkhI5gk4; 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 D5B5783457F7; Fri, 15 Sep 2023 03:04:06 -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 S234056AbjIOKEE (ORCPT + 99 others); Fri, 15 Sep 2023 06:04:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231367AbjIOKD6 (ORCPT ); Fri, 15 Sep 2023 06:03:58 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D7294493; Fri, 15 Sep 2023 03:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694772165; x=1726308165; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ed4YUZv03FL/7pT0GTcscmk26C9Wo3TferDm4a8fs+I=; b=PkhI5gk4YPFyjciC6siFEA9LbLJPsFAkfaJZeJqFi/dGhwtSdkvD6s00 8LSX8vP8+8cMerKWtRuo3bOlS0v4DPzmcG9Fbl8mmE8Q/fIIdPFz6QqC5 M2FP9OTDAl2kJ7PB9QI4UoULUS1tVLaw18meFDnstRXYJPktECcz8nZP/ /mjxNpupZf5ijWN2BBHU/+UBciaCiRjHHAyMzfUO9AMxdrPizOMOa67R/ k7dr1fx2CCPpHlbr8AQMd2VaUKayTg18iQm54DD/jUKS2wjF8w6xank7c ZtnJjkAmrXnYBusn4WvcYCbywdoTx+SQCa6qfKjQqpjuOX1DuqXOj8pEu g==; X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="381938667" X-IronPort-AV: E=Sophos;i="6.02,148,1688454000"; d="scan'208";a="381938667" 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 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 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 03:04:07 -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 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(+) -- 2.25.1