From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 21FA943A53; Fri, 2 Feb 2024 20:34:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C8C3742EB6; Fri, 2 Feb 2024 20:33:28 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2053.outbound.protection.outlook.com [40.107.237.53]) by mails.dpdk.org (Postfix) with ESMTP id 8848F42E90 for ; Fri, 2 Feb 2024 20:33:25 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DTMH/47d/LatlFrom3nk4otu7xsH0sdlN13O+Vdgr+SGirKem+BxTIQ8sRBnjlE0awo0FNMod8jNZw/r7xT72NrQx2YGLgHwG72jyR3Az1WcYQum7Oxfg3lx2AEnoSoNCEWBOL+ij5vYkMertWQkSBvn+tZr9O9l7fGKwSN1kcWk4LX059diY8Csb/K608IN2FSGCcLiHbZRiG4P0CVQuZqTlmk8gXkCaFUOC1Dh0BYYTQSgDa3L6KvRthYbzC/nBA0XzAC4Eg9iqGInLW7gUEV9BuPD07xOlplgL3LOcqGEV+0h5/gVuk2LEX0Xau+c84dOvAxDIw4jfAat/dBKWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wg6GarQmVRHe0vG9yPeKZpU6Tcj+zI7KHAQofbhW6rE=; b=kxRExsoutF51vu1m3WARDeCD8+UT5iRcqvPo8/KcJJM3AGSr7IQW9y8JqWeu5BunsMbJnb8UMcRAfu+/DMSHtVqmhfw17FkWaYHYcU9dm3qJl9L1A82eODAwBuCT5qHTfxioRXzNFdeivQD/bkEQZVu/QHvMK3wzVl+pEzEU3jYghHbUCGaEcS0Sxw9fLQlqB9U+fwfHsrh3FFA8DP4/QTnpK4yaj6A3ni0b0TIGhhcYp9seWx/nrkY+vNfGJm3zkKlQC8AMxWpckP91WMnQvbObPA9YHjWacDIUdzewjZ+Q6XzrXRPSEwx0X/ClcKJp+QivWdr8DrtDqB6nfCa6uA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wg6GarQmVRHe0vG9yPeKZpU6Tcj+zI7KHAQofbhW6rE=; b=laRSZdIb6rG8cP0eaRnjYupLwtRgAelDPdLjSpduVm8kjY1kCQ/rkc9fZHzyQjza6Tao03RHEm6SU8oto47TacoQg24kiCbefn4LP9WS2QBH0tsMVLWEOW1xVhwYHQ2Sq6kcfoAmHBY7qtVJilGxu34eq+YQFq6bEXmaaukc3xg= Received: from DS7PR03CA0244.namprd03.prod.outlook.com (2603:10b6:5:3b3::9) by SJ0PR12MB7458.namprd12.prod.outlook.com (2603:10b6:a03:48d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.24; Fri, 2 Feb 2024 19:33:23 +0000 Received: from DS1PEPF00017090.namprd03.prod.outlook.com (2603:10b6:5:3b3:cafe::6c) by DS7PR03CA0244.outlook.office365.com (2603:10b6:5:3b3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.34 via Frontend Transport; Fri, 2 Feb 2024 19:33:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS1PEPF00017090.mail.protection.outlook.com (10.167.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7249.19 via Frontend Transport; Fri, 2 Feb 2024 19:33:23 +0000 Received: from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Fri, 2 Feb 2024 13:33:22 -0600 From: Andrew Boyer To: CC: Brad Larson , Andrew Boyer Subject: [PATCH 09/13] net/ionic: add flexible firmware xstat counters Date: Fri, 2 Feb 2024 11:32:34 -0800 Message-ID: <20240202193238.62669-10-andrew.boyer@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240202193238.62669-1-andrew.boyer@amd.com> References: <20240202193238.62669-1-andrew.boyer@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00017090:EE_|SJ0PR12MB7458:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a484235-5127-4661-e0a0-08dc2425d217 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rRiEUfCP+I/5WYc9pbc2w9GJavbuyFPr+d8/Z83NnGRuWeLCbAlHuhpg6QcDtGRkZiDyKGUcJOOZpAY6VSqpqSMfFpBPFj41V4g11Lo0QmTObBUE9rC+m45xClpdxRf76CFn+SL4eEnH5ocV3nrk9pMLLgV9TBJDLIvoYX/LiWXHJmERMnLhGTX22IJXluSgH0K2xSqOddxWBftlyRdwx3FEvMmhHRAO5ApIM6hQaRarUZ+i8gkFLC4z7XPgesfjFtBghhblw9kyKIUAcqF3zOAJ9I5l5b1G4DbfwGnLoiGoO3BGTONw90lAeoRWXShVtO6B+bnvjoQEs/rcP2Nyba3NAmwqfbJpQGmi5/gcZOGBPKc2RbRGK+LWzrydMNYwcDRb+WLRxcNOfJV3GaLYrul2nLQksDRVTIKQ3IQPxziHKNS/FBCi7OtkFQm/q+swNGxFWNK3E2VwPRbOD6CcsOdCfJQreS8eRhe7liC0T7S3asO5oeSCSmVzW+d12XBU0X9aBy8bwo4+HvGSs20jrlCapQKp+q1RqDC08886jbA7mOpZglKlDigprVPfFUVe/mWf4O87pfZbxmpfgo4czLppW8fFexpdrGSF5cX0VEVHbi7TM2r8t7ZSFOZJR7oQbW+Nkvz4EViRdmAxjHbjqGhsloLrvUbQq3k/CZHRFhmFO1WitbX+vsk/Cb/45+JK0YR0TLnARhjrR+IAVA5tNNqEohm2lBCrLP0jfXYzlzg5vXuXs1/stojIi8o+XaMtzgmw3vmImsW/+9Ftgme6RA== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(396003)(346002)(136003)(39860400002)(376002)(230922051799003)(1800799012)(64100799003)(186009)(451199024)(82310400011)(40470700004)(36840700001)(46966006)(54906003)(316002)(36756003)(6916009)(40480700001)(44832011)(36860700001)(40460700003)(4326008)(8936002)(8676002)(356005)(5660300002)(86362001)(47076005)(81166007)(70586007)(70206006)(2906002)(82740400003)(16526019)(26005)(336012)(426003)(2616005)(1076003)(6666004)(83380400001)(478600001)(41300700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2024 19:33:23.6000 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3a484235-5127-4661-e0a0-08dc2425d217 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00017090.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7458 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Brad Larson Assign 32 counters for flexible firmware events. These can be used as per-port or per-queue counters in certain firmware configurations. They are displayed as fw_flex_eventX in xstats. Signed-off-by: Andrew Boyer Signed-off-by: Brad Larson --- drivers/net/ionic/ionic_ethdev.c | 33 +++++++++++++++ drivers/net/ionic/ionic_if.h | 70 ++++++++++++++++---------------- 2 files changed, 68 insertions(+), 35 deletions(-) diff --git a/drivers/net/ionic/ionic_ethdev.c b/drivers/net/ionic/ionic_ethdev.c index 327f6b9de5..7c55a26956 100644 --- a/drivers/net/ionic/ionic_ethdev.c +++ b/drivers/net/ionic/ionic_ethdev.c @@ -196,6 +196,39 @@ static const struct rte_ionic_xstats_name_off rte_ionic_xstats_strings[] = { tx_desc_fetch_error)}, {"tx_desc_data_error", offsetof(struct ionic_lif_stats, tx_desc_data_error)}, + /* Flexible firmware events */ + {"fw_flex_event1", offsetof(struct ionic_lif_stats, flex1)}, + {"fw_flex_event2", offsetof(struct ionic_lif_stats, flex2)}, + {"fw_flex_event3", offsetof(struct ionic_lif_stats, flex3)}, + {"fw_flex_event4", offsetof(struct ionic_lif_stats, flex4)}, + {"fw_flex_event5", offsetof(struct ionic_lif_stats, flex5)}, + {"fw_flex_event6", offsetof(struct ionic_lif_stats, flex6)}, + {"fw_flex_event7", offsetof(struct ionic_lif_stats, flex7)}, + {"fw_flex_event8", offsetof(struct ionic_lif_stats, flex8)}, + {"fw_flex_event9", offsetof(struct ionic_lif_stats, flex9)}, + {"fw_flex_event10", offsetof(struct ionic_lif_stats, flex10)}, + {"fw_flex_event11", offsetof(struct ionic_lif_stats, flex11)}, + {"fw_flex_event12", offsetof(struct ionic_lif_stats, flex12)}, + {"fw_flex_event13", offsetof(struct ionic_lif_stats, flex13)}, + {"fw_flex_event14", offsetof(struct ionic_lif_stats, flex14)}, + {"fw_flex_event15", offsetof(struct ionic_lif_stats, flex15)}, + {"fw_flex_event16", offsetof(struct ionic_lif_stats, flex16)}, + {"fw_flex_event17", offsetof(struct ionic_lif_stats, flex17)}, + {"fw_flex_event18", offsetof(struct ionic_lif_stats, flex18)}, + {"fw_flex_event19", offsetof(struct ionic_lif_stats, flex19)}, + {"fw_flex_event20", offsetof(struct ionic_lif_stats, flex20)}, + {"fw_flex_event21", offsetof(struct ionic_lif_stats, flex21)}, + {"fw_flex_event22", offsetof(struct ionic_lif_stats, flex22)}, + {"fw_flex_event23", offsetof(struct ionic_lif_stats, flex23)}, + {"fw_flex_event24", offsetof(struct ionic_lif_stats, flex24)}, + {"fw_flex_event25", offsetof(struct ionic_lif_stats, flex25)}, + {"fw_flex_event26", offsetof(struct ionic_lif_stats, flex26)}, + {"fw_flex_event27", offsetof(struct ionic_lif_stats, flex27)}, + {"fw_flex_event28", offsetof(struct ionic_lif_stats, flex28)}, + {"fw_flex_event29", offsetof(struct ionic_lif_stats, flex29)}, + {"fw_flex_event30", offsetof(struct ionic_lif_stats, flex30)}, + {"fw_flex_event31", offsetof(struct ionic_lif_stats, flex31)}, + {"fw_flex_event32", offsetof(struct ionic_lif_stats, flex32)}, }; #define IONIC_NB_HW_STATS RTE_DIM(rte_ionic_xstats_strings) diff --git a/drivers/net/ionic/ionic_if.h b/drivers/net/ionic/ionic_if.h index 79aa196345..7ca604a7bb 100644 --- a/drivers/net/ionic/ionic_if.h +++ b/drivers/net/ionic/ionic_if.h @@ -2592,41 +2592,41 @@ struct ionic_lif_stats { __le64 rsvd16; __le64 rsvd17; - __le64 rsvd18; - __le64 rsvd19; - __le64 rsvd20; - __le64 rsvd21; - __le64 rsvd22; - __le64 rsvd23; - __le64 rsvd24; - __le64 rsvd25; - - __le64 rsvd26; - __le64 rsvd27; - __le64 rsvd28; - __le64 rsvd29; - __le64 rsvd30; - __le64 rsvd31; - __le64 rsvd32; - __le64 rsvd33; - - __le64 rsvd34; - __le64 rsvd35; - __le64 rsvd36; - __le64 rsvd37; - __le64 rsvd38; - __le64 rsvd39; - __le64 rsvd40; - __le64 rsvd41; - - __le64 rsvd42; - __le64 rsvd43; - __le64 rsvd44; - __le64 rsvd45; - __le64 rsvd46; - __le64 rsvd47; - __le64 rsvd48; - __le64 rsvd49; + __le64 flex1; + __le64 flex2; + __le64 flex3; + __le64 flex4; + __le64 flex5; + __le64 flex6; + __le64 flex7; + __le64 flex8; + + __le64 flex9; + __le64 flex10; + __le64 flex11; + __le64 flex12; + __le64 flex13; + __le64 flex14; + __le64 flex15; + __le64 flex16; + + __le64 flex17; + __le64 flex18; + __le64 flex19; + __le64 flex20; + __le64 flex21; + __le64 flex22; + __le64 flex23; + __le64 flex24; + + __le64 flex25; + __le64 flex26; + __le64 flex27; + __le64 flex28; + __le64 flex29; + __le64 flex30; + __le64 flex31; + __le64 flex32; /* RDMA/ROCE REQ Error/Debugs (768 - 895) */ __le64 rdma_req_rx_pkt_seq_err; -- 2.17.1