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 61E9F46BAE for ; Fri, 18 Jul 2025 21:39:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D52040611; Fri, 18 Jul 2025 21:39:08 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id A6DD040611 for ; Fri, 18 Jul 2025 21:39:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1752867547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=La4SNnDyM0oqu54jW2fevfbNZyN7orZdu28DU3O9yg4=; b=eIhZA4G3mJC8grXXhnvr8duVkg/VNkENrLdgHd25ck+KkV5Z0VmSuyfmI9Qi6l4quGohZo lEFsoIFI3jx6+d13M9lxFJ3TX1Xh6V2pqUKe5dvXyk1wadBKlqKjpoHWixWJUgiTz2NarG +TMA6qqY1OZxw5zwuKZ+idoHti2wrwk= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-8-22n_rJirNtGSvVIJwCjDwA-1; Fri, 18 Jul 2025 15:38:57 -0400 X-MC-Unique: 22n_rJirNtGSvVIJwCjDwA-1 X-Mimecast-MFC-AGG-ID: 22n_rJirNtGSvVIJwCjDwA_1752867536 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2110F19560A2; Fri, 18 Jul 2025 19:38:56 +0000 (UTC) Received: from rh.redhat.com (unknown [10.44.32.40]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 4089B180049D; Fri, 18 Jul 2025 19:38:53 +0000 (UTC) From: Kevin Traynor To: Shai Brandes Cc: Amit Bernstein , Yosef Raisman , dpdk stable Subject: patch 'net/ena: fix control path interrupt mode' has been queued to stable release 24.11.3 Date: Fri, 18 Jul 2025 20:31:48 +0100 Message-ID: <20250718193247.1008129-174-ktraynor@redhat.com> In-Reply-To: <20250718193247.1008129-1-ktraynor@redhat.com> References: <20250718193247.1008129-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: LknC8oJBs7dCltKyWgMLjJOS6s2MN9I6Eq5Q8QE6OF8_1752867536 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 24.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/23/25. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/95dd517436d94f47a593af53ac8ddc6d4c6e4969 Thanks. Kevin --- >From 95dd517436d94f47a593af53ac8ddc6d4c6e4969 Mon Sep 17 00:00:00 2001 From: Shai Brandes Date: Mon, 30 Jun 2025 14:15:25 +0300 Subject: [PATCH] net/ena: fix control path interrupt mode [ upstream commit 99bfe66911cabf8f2ae1c17e05970e969bbfe794 ] Fixed the device initialization routine to correctly handle failure during the registration or enabling of interrupts when operating in control path interrupt mode. Fixes: ca1dfa85f0d3 ("net/ena: add control path pure polling mode") Signed-off-by: Shai Brandes Reviewed-by: Amit Bernstein Reviewed-by: Yosef Raisman --- drivers/net/ena/ena_ethdev.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index aea2e5c929..93dca8f146 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -2434,6 +2434,14 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev) if (!adapter->control_path_poll_interval) { /* Control path interrupt mode */ - rte_intr_callback_register(intr_handle, ena_control_path_handler, eth_dev); - rte_intr_enable(intr_handle); + rc = rte_intr_callback_register(intr_handle, ena_control_path_handler, eth_dev); + if (unlikely(rc < 0)) { + PMD_DRV_LOG_LINE(ERR, "Failed to register control path interrupt"); + goto err_stats_destroy; + } + rc = rte_intr_enable(intr_handle); + if (unlikely(rc < 0)) { + PMD_DRV_LOG_LINE(ERR, "Failed to enable control path interrupt"); + goto err_control_path_destroy; + } ena_com_set_admin_polling_mode(ena_dev, false); } else { @@ -2454,4 +2462,12 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev) return 0; err_control_path_destroy: + if (!adapter->control_path_poll_interval) { + rc = rte_intr_callback_unregister_sync(intr_handle, + ena_control_path_handler, + eth_dev); + if (unlikely(rc < 0)) + PMD_INIT_LOG_LINE(ERR, "Failed to unregister interrupt handler"); + } +err_stats_destroy: rte_free(adapter->drv_stats); err_rss_destroy: -- 2.50.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-07-18 20:29:17.075419975 +0100 +++ 0174-net-ena-fix-control-path-interrupt-mode.patch 2025-07-18 20:29:11.193908137 +0100 @@ -1 +1 @@ -From 99bfe66911cabf8f2ae1c17e05970e969bbfe794 Mon Sep 17 00:00:00 2001 +From 95dd517436d94f47a593af53ac8ddc6d4c6e4969 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 99bfe66911cabf8f2ae1c17e05970e969bbfe794 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -17,3 +18,2 @@ - doc/guides/rel_notes/release_25_07.rst | 2 ++ - drivers/net/ena/ena_ethdev.c | 20 ++++++++++++++++++-- - 2 files changed, 20 insertions(+), 2 deletions(-) + drivers/net/ena/ena_ethdev.c | 20 ++++++++++++++++++-- + 1 file changed, 18 insertions(+), 2 deletions(-) @@ -21,11 +20,0 @@ -diff --git a/doc/guides/rel_notes/release_25_07.rst b/doc/guides/rel_notes/release_25_07.rst -index 54e2634794..017bada33e 100644 ---- a/doc/guides/rel_notes/release_25_07.rst -+++ b/doc/guides/rel_notes/release_25_07.rst -@@ -77,4 +77,6 @@ New Features - * Added support for enabling fragment bypass mode for egress packets. - This mode bypasses the PPS limit enforced by EC2 for fragmented egress packets on every ENI. -+ * Fixed the device initialization routine to correctly handle failure during the registration -+ or enabling of interrupts when operating in control path interrupt mode. - - * **Added Mucse rnp net driver.** @@ -33 +22 @@ -index 8ef6e55248..eb33ca2c6e 100644 +index aea2e5c929..93dca8f146 100644 @@ -36 +25 @@ -@@ -2466,6 +2466,14 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev) +@@ -2434,6 +2434,14 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev) @@ -53 +42 @@ -@@ -2486,4 +2494,12 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev) +@@ -2454,4 +2462,12 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev) @@ -65 +54 @@ - err_indirect_table_destroy: + err_rss_destroy: