<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 2/9/2026 4:45 PM, Bruce Richardson
wrote:<br>
</div>
<blockquote type="cite" cite="mid:20260209164538.1428499-30-bruce.richardson@intel.com">
<pre wrap="" class="moz-quote-pre">The buffer freeing function for the simple scalar Tx path is almost
identical in both ice and i40e drivers, except that the i40e has
batching for the FAST_FREE case. Consolidate both functions into a
common one based off the better i40e version.
Signed-off-by: Bruce Richardson <a class="moz-txt-link-rfc2396E" href="mailto:bruce.richardson@intel.com"><bruce.richardson@intel.com></a>
---
drivers/net/intel/common/tx.h | 3 ++
drivers/net/intel/common/tx_scalar.h | 58 +++++++++++++++++++++++++
drivers/net/intel/i40e/i40e_rxtx.c | 63 +---------------------------
drivers/net/intel/ice/ice_rxtx.c | 45 +-------------------
4 files changed, 65 insertions(+), 104 deletions(-)
diff --git a/drivers/net/intel/common/tx.h b/drivers/net/intel/common/tx.h
index ef6d543e7a..67378a0803 100644
--- a/drivers/net/intel/common/tx.h
+++ b/drivers/net/intel/common/tx.h
@@ -66,6 +66,9 @@ enum ci_tx_l2tag1_field {
/* Common TX maximum burst size for chunked transmission in simple paths */
#define CI_TX_MAX_BURST 32
+/* Common TX maximum free buffer size for batched bulk freeing */
+#define CI_TX_MAX_FREE_BUF_SZ 64
+</pre>
</blockquote>
same here, eventually it would be good to replace all the rest
{IXGBE, I40E, ICE, RTE_FM10K}<span style="white-space: pre-wrap">_TX_MAX_FREE_BUF_SZ</span>
with this
<blockquote type="cite" cite="mid:20260209164538.1428499-30-bruce.richardson@intel.com">
<pre wrap="" class="moz-quote-pre">
</pre>
</blockquote>
<snip>
<blockquote type="cite" cite="mid:20260209164538.1428499-30-bruce.richardson@intel.com">
<pre wrap="" class="moz-quote-pre">
</pre>
</blockquote>
Acked-by: Vladimir Medvedkin <a class="moz-txt-link-rfc2396E" href="mailto:vladimir.medvedkin@intel.com"><vladimir.medvedkin@intel.com></a>
<blockquote type="cite" cite="mid:20260209164538.1428499-30-bruce.richardson@intel.com">
<pre wrap="" class="moz-quote-pre">
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Regards,
Vladimir</pre>
</body>
</html>