Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5237599rdb; Wed, 13 Dec 2023 03:07:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPNtkOJJC/UGgHQtzB6C/4x0lGSvgmE+xSsI8S0/ozAIeBvbCf94+NtAioSX8/3rVh8rNr X-Received: by 2002:a17:903:244d:b0:1cc:53d1:10b8 with SMTP id l13-20020a170903244d00b001cc53d110b8mr8919064pls.50.1702465662325; Wed, 13 Dec 2023 03:07:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702465662; cv=none; d=google.com; s=arc-20160816; b=Rq05/DkWtTT48+BwwohqpzY9CTlQwnjQE3IbbxTKCUYtzOHljR//+LJHegzOSdfwM7 aJb/jjuBhSTD1odOyE0BcPhSFuDJnnCABtKEZyVNrnJDGjwuDbR9+p8mYTkhU4DQuZhe Kl/H6+t9INdWOh779jQaZtMszgwCRjQDhtksG45TWXLyeFJCb5KXJrDX1HwDOL9vSzhq tPpsGTnck5PQNFVVheZfsBKEAjM+CjbFq/G9oBmO2oiui30kaCBScplKSiCpUBUpocPd dPuLRhSrkWc6Q1fTtdaUrx73c0hshzbPvmZQsNfcqKgbTs59Y9C5LL6PxgALmR3+ONC+ m3UA== 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=DMLvI4RoBREMxcUctH1P8v7TzVeCFRrK8sW3v438zR4=; fh=asmpGj2YxYe8/ji4bMUZUZytUYtbGpU9WbAkliy8rO0=; b=WCE+KYj6LzOXm4x0pPR7GWKMWBKhfRn+M+ne3WaA0FzLfvVTCyQhc0/RSsMpFFaf7U Ksz7mgZ0BLiZDcfkztBxiv86YR7kZXQTDEG7U4gbrH1jjx1hKEk6iB8WD5wWV7oGJknq xHKKvupLCANSEMFD5B0QG+WronFjFPEYAzJuXivs84pG+4bzMfXwMZ60IxDnYvX8macF 7vv8pqpvkvn1c87Qk2G4Jchq+OdpoFXz/U8GqdYDYznRiE118qpoFnkaZoaP8GchZd24 xnKo2QO15MTZOTluML9u05Jrh3CCfvYcjkrR9rl2gKOdALw25qBqW1CySWBcTiB2RGNB JRuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J0hJ1xlD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id x9-20020a170902820900b001cfb971ee07si6985071pln.165.2023.12.13.03.07.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 03:07:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J0hJ1xlD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2E11B8089E48; Wed, 13 Dec 2023 03:07:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378327AbjLMLHX (ORCPT + 99 others); Wed, 13 Dec 2023 06:07:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378268AbjLMLHW (ORCPT ); Wed, 13 Dec 2023 06:07:22 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5B829C for ; Wed, 13 Dec 2023 03:07:28 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3696C433C8; Wed, 13 Dec 2023 11:07:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702465648; bh=qeHcGu+cqpueuzzOHNMxP2bi/V2IKukDx5WaAQ3io2I=; h=From:To:Cc:Subject:Date:From; b=J0hJ1xlD7C6izgIls3qD5GO9UOvsVzz0B7Isf3z8GgihZaCiuJszZHdQdjrotpe8k xXY9gs4tIayTZARJPrYzo+BNLXJEvJfGrUOaIWTlFoxUQHcDU+oihmsYsyCKzEapsC 2pbxhj6zqrkIxAwELm/W2guhf9cYtIYsAqusBxhx1srR/l1hBS0MfHMroNfWB45Xgv yWe4wU8doZIgqQ3mS4ENffZEYrbsY0XUFqAc5GFTiLAnrWyhnV63bhtRPfB7LEyegn pqgN1JHTEJqO+diU1j1UsoZNYjiyQMQ1Od05hr9ycs+z21wAsLsgn7jvgwi7GNpPIb j/8J1sfxYFLnw== From: Roger Quadros To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, shuah@kernel.org, vladimir.oltean@nxp.com Cc: s-vadapalli@ti.com, r-gunasekaran@ti.com, vigneshr@ti.com, srk@ti.com, horms@kernel.org, p-varis@ti.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, rogerq@kernel.org Subject: [PATCH v8 net-next 00/11] net: ethernet: am65-cpsw: Add mqprio, frame pre-emption & coalescing Date: Wed, 13 Dec 2023 13:07:10 +0200 Message-Id: <20231213110721.69154-1-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 13 Dec 2023 03:07:38 -0800 (PST) Hi, This series adds mqprio qdisc offload in channel mode, Frame Pre-emption MAC merge support and RX/TX coalesing for AM65 CPSW driver. In v8 following changes were made - added a new selftest patch to use aggregate stats if pMAC stats are not supported. - added a patch to rename TI_AM65_CPSW_TAS to TI_AM65_CPSW_QOS is added. - added a patch to fix mac stats reporting. we only support aggregate stats. - build issues if TI_AM65_CPSW_TAS is disabled is resolved. - selftest patches are moved to the beginning of the series. Changelog information in each patch file. cheers, -roger Grygorii Strashko (2): net: ethernet: ti: am65-cpsw: add mqprio qdisc offload in channel mode net: ethernet: ti: am65-cpsw: add sw tx/rx irq coalescing based on hrtimers Roger Quadros (7): net: ethernet: am65-cpsw: Build am65-cpsw-qos only if required net: ethernet: am65-cpsw: Rename TI_AM65_CPSW_TAS to TI_AM65_CPSW_QOS net: ethernet: am65-cpsw: cleanup TAPRIO handling net: ethernet: ti: am65-cpsw: Move code to avoid forward declaration net: ethernet: am65-cpsw: Move register definitions to header file net: ethernet: ti: am65-cpsw-qos: Add Frame Preemption MAC Merge support net: ethernet: ti: am65-cpsw: Fix get_eth_mac_stats Vladimir Oltean (2): selftests: forwarding: ethtool_mm: support devices with higher rx-min-frag-size selftests: forwarding: ethtool_mm: fall back to aggregate if device does not report pMAC stats drivers/net/ethernet/ti/Kconfig | 14 +- drivers/net/ethernet/ti/Makefile | 3 +- drivers/net/ethernet/ti/am65-cpsw-ethtool.c | 249 ++++++ drivers/net/ethernet/ti/am65-cpsw-nuss.c | 64 +- drivers/net/ethernet/ti/am65-cpsw-nuss.h | 9 + drivers/net/ethernet/ti/am65-cpsw-qos.c | 708 +++++++++++++----- drivers/net/ethernet/ti/am65-cpsw-qos.h | 186 +++++ .../selftests/net/forwarding/ethtool_mm.sh | 48 +- tools/testing/selftests/net/forwarding/lib.sh | 9 + 9 files changed, 1103 insertions(+), 187 deletions(-) base-commit: 70028b2e51c61d8dda0a31985978f4745da6a11b -- 2.34.1