patch 'net/ice: do not include private headers in testpmd' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:03:16 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. 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/a61bb6cc1c1ca08ff10f0af9f34f9191ff77c147
Thanks.
Kevin
---
>From a61bb6cc1c1ca08ff10f0af9f34f9191ff77c147 Mon Sep 17 00:00:00 2001
From: Anatoly Burakov <anatoly.burakov at intel.com>
Date: Thu, 15 Oct 2026 15:21:04 +0100
Subject: [PATCH] net/ice: do not include private headers in testpmd
[ upstream commit 14ce50bbf0af4f26bc350b7587e492af5b0e2814 ]
Currently, the `ice_testpmd.c` file includes headers that are only
available to driver itself, but should not be available to applications,
including testpmd. Instead, testpmd should access them through public
PMD specific API.
The ice driver does not have one (even though it offers a testpmd file),
so add the public PMD-specific API header, move all function definitions
into that file, and get rid of driver-private includes in testpmd file.
Fixes: df539aaf35cb ("net/ice: refactor flex descriptor protocol field extraction")
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
---
doc/guides/nics/ice.rst | 3 ++
drivers/net/intel/ice/ice_diagnose.c | 1 +
drivers/net/intel/ice/ice_ethdev.h | 9 ----
drivers/net/intel/ice/ice_testpmd.c | 7 ++-
drivers/net/intel/ice/meson.build | 1 +
drivers/net/intel/ice/rte_pmd_ice.h | 77 ++++++++++++++++++++++++++++
6 files changed, 87 insertions(+), 11 deletions(-)
create mode 100644 drivers/net/intel/ice/rte_pmd_ice.h
diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst
index 216c79b6f2..d03fb814fd 100644
--- a/doc/guides/nics/ice.rst
+++ b/doc/guides/nics/ice.rst
@@ -966,4 +966,7 @@ Diagnostic Utilities
--------------------
+The diagnostic dump functions are also available to applications
+through the public ``rte_pmd_ice.h`` header.
+
Dump DDP Package
~~~~~~~~~~~~~~~~
diff --git a/drivers/net/intel/ice/ice_diagnose.c b/drivers/net/intel/ice/ice_diagnose.c
index a58279a116..d058567674 100644
--- a/drivers/net/intel/ice/ice_diagnose.c
+++ b/drivers/net/intel/ice/ice_diagnose.c
@@ -14,4 +14,5 @@
#include "ice_ethdev.h"
#include "ice_rxtx.h"
+#include "rte_pmd_ice.h"
#define ICE_BLK_MAX_COUNT 512
diff --git a/drivers/net/intel/ice/ice_ethdev.h b/drivers/net/intel/ice/ice_ethdev.h
index b5f92b2ede..1920774c9c 100644
--- a/drivers/net/intel/ice/ice_ethdev.h
+++ b/drivers/net/intel/ice/ice_ethdev.h
@@ -804,13 +804,4 @@ ice_align_floor(int n)
((phy_type) & ICE_PHY_TYPE_HIGH_200G_AUI8))
-__rte_experimental
-int rte_pmd_ice_dump_package(uint16_t port, uint8_t **buff, uint32_t *size);
-
-__rte_experimental
-int rte_pmd_ice_dump_switch(uint16_t port, uint8_t **buff, uint32_t *size);
-
-__rte_experimental
-int rte_pmd_ice_dump_txsched(uint16_t port, bool detail, FILE *stream);
-
int
ice_tm_setup_txq_node(struct ice_pf *pf, struct ice_hw *hw, uint16_t qid, uint32_t node_teid);
diff --git a/drivers/net/intel/ice/ice_testpmd.c b/drivers/net/intel/ice/ice_testpmd.c
index 98c02d68c6..0c135d79a3 100644
--- a/drivers/net/intel/ice/ice_testpmd.c
+++ b/drivers/net/intel/ice/ice_testpmd.c
@@ -3,6 +3,10 @@
*/
-#include <stdlib.h>
+#include <errno.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <rte_pmd_ice.h>
#include <cmdline_parse_num.h>
@@ -10,5 +14,4 @@
#include "testpmd.h"
-#include "ice_ethdev.h"
/* Fixed size for ICE ddp runtime configure */
diff --git a/drivers/net/intel/ice/meson.build b/drivers/net/intel/ice/meson.build
index 8a20d0f297..28a35a5dc5 100644
--- a/drivers/net/intel/ice/meson.build
+++ b/drivers/net/intel/ice/meson.build
@@ -17,4 +17,5 @@ sources = files(
testpmd_sources = files('ice_testpmd.c')
+headers = files('rte_pmd_ice.h')
deps += ['hash', 'net']
diff --git a/drivers/net/intel/ice/rte_pmd_ice.h b/drivers/net/intel/ice/rte_pmd_ice.h
new file mode 100644
index 0000000000..881dc4cc56
--- /dev/null
+++ b/drivers/net/intel/ice/rte_pmd_ice.h
@@ -0,0 +1,77 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2026 Intel Corporation
+ */
+
+#ifndef _RTE_PMD_ICE_H_
+#define _RTE_PMD_ICE_H_
+
+/**
+ * @file rte_pmd_ice.h
+ *
+ * ICE PMD specific diagnostic functions.
+ */
+
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+
+#include <rte_compat.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Dump the runtime DDP package configuration.
+ *
+ * @param port
+ * The port identifier of the Ethernet device.
+ * @param buff
+ * Pointer to a `malloc()`-allocated buffer. On success, it will be freed by
+ * `free()` and replaced by a newly `malloc()`-allocated buffer; the caller
+ * must free the resulting buffer.
+ * @param size
+ * Input buffer size in bytes; receives the size of the dump on success.
+ * @return
+ * 0 on success, -ENODEV for an invalid port, -ENOTSUP for a non-ICE port,
+ * or a negative error code on failure.
+ */
+__rte_experimental
+int rte_pmd_ice_dump_package(uint16_t port, uint8_t **buff, uint32_t *size);
+
+/**
+ * Dump the runtime switch configuration.
+ *
+ * @param port
+ * The port identifier of the Ethernet device.
+ * @param buff
+ * Pointer to a caller-allocated output buffer.
+ * @param size
+ * Input buffer size in bytes; receives the size of the dump on success.
+ * @return
+ * 0 on success, -ENODEV for an invalid port, -ENOTSUP for a non-ICE port,
+ * or a negative error code on failure.
+ */
+__rte_experimental
+int rte_pmd_ice_dump_switch(uint16_t port, uint8_t **buff, uint32_t *size);
+
+/**
+ * Dump the Tx scheduling tree to a stream in DOT format.
+ *
+ * @param port
+ * The port identifier of the Ethernet device.
+ * @param detail
+ * Include node configuration parameters when true.
+ * @param stream
+ * Output stream opened by the caller.
+ * @return
+ * 0 on success, -ENODEV for an invalid port, or -ENOTSUP for a non-ICE port.
+ */
+__rte_experimental
+int rte_pmd_ice_dump_txsched(uint16_t port, bool detail, FILE *stream);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _RTE_PMD_ICE_H_ */
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:46.878227248 +0000
+++ 0270-net-ice-do-not-include-private-headers-in-testpmd.patch 2026-12-03 12:52:39.217104793 +0000
@@ -1 +1 @@
-From 14ce50bbf0af4f26bc350b7587e492af5b0e2814 Mon Sep 17 00:00:00 2001
+From a61bb6cc1c1ca08ff10f0af9f34f9191ff77c147 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 14ce50bbf0af4f26bc350b7587e492af5b0e2814 ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -22,8 +23,7 @@
- doc/guides/nics/ice.rst | 3 +
- doc/guides/rel_notes/release_26_11.rst | 2 +
- drivers/net/intel/ice/ice_diagnose.c | 1 +
- drivers/net/intel/ice/ice_ethdev.h | 9 ---
- drivers/net/intel/ice/ice_testpmd.c | 7 ++-
- drivers/net/intel/ice/meson.build | 1 +
- drivers/net/intel/ice/rte_pmd_ice.h | 77 ++++++++++++++++++++++++++
- 7 files changed, 89 insertions(+), 11 deletions(-)
+ doc/guides/nics/ice.rst | 3 ++
+ drivers/net/intel/ice/ice_diagnose.c | 1 +
+ drivers/net/intel/ice/ice_ethdev.h | 9 ----
+ drivers/net/intel/ice/ice_testpmd.c | 7 ++-
+ drivers/net/intel/ice/meson.build | 1 +
+ drivers/net/intel/ice/rte_pmd_ice.h | 77 ++++++++++++++++++++++++++++
+ 6 files changed, 87 insertions(+), 11 deletions(-)
@@ -33 +33 @@
-index 79aef433aa..2bdb8e0bdb 100644
+index 216c79b6f2..d03fb814fd 100644
@@ -36 +36 @@
-@@ -1022,4 +1022,7 @@ Diagnostic Utilities
+@@ -966,4 +966,7 @@ Diagnostic Utilities
@@ -44,11 +43,0 @@
-diff --git a/doc/guides/rel_notes/release_26_11.rst b/doc/guides/rel_notes/release_26_11.rst
-index 03155bc59e..18481dd797 100644
---- a/doc/guides/rel_notes/release_26_11.rst
-+++ b/doc/guides/rel_notes/release_26_11.rst
-@@ -169,4 +169,6 @@ New Features
- * Added support for getting and setting link (802.3x) flow control.
- * Added support for Tx rate limiting per queue.
-+ * Made the existing diagnostic dump functions available
-+ through the public ``rte_pmd_ice.h`` header.
-
- * **Updated Intel ixgbe driver.**
@@ -56 +45 @@
-index 4946ace7ae..ecfcdf5559 100644
+index a58279a116..d058567674 100644
@@ -66 +55 @@
-index 8d5e17e2df..08c2b61519 100644
+index b5f92b2ede..1920774c9c 100644
@@ -69 +58 @@
-@@ -822,13 +822,4 @@ ice_align_floor(int n)
+@@ -804,13 +804,4 @@ ice_align_floor(int n)
@@ -106 +95 @@
-index 322d9597d2..00077be30a 100644
+index 8a20d0f297..28a35a5dc5 100644
@@ -109 +98 @@
-@@ -20,4 +20,5 @@ sources = files(
+@@ -17,4 +17,5 @@ sources = files(
More information about the stable
mailing list