From: Patrick Robb <probb@iol.unh.edu>
To: Andrew Bailey <abailey@iol.unh.edu>
Cc: dev@dpdk.org, luca.vizzarro@arm.com, dmarx@iol.unh.edu
Subject: Re: [PATCH v11 1/3] dts: allow mbuf fast free to be set with testpmd shell
Date: Tue, 28 Oct 2025 18:32:49 -0400 [thread overview]
Message-ID: <CAJvnSUDLujYSwLD1bN6vZFtP14ikBgjxVbhfun3xnXW7K=VgdQ@mail.gmail.com> (raw)
In-Reply-To: <20251028122240.112773-2-abailey@iol.unh.edu>
[-- Attachment #1: Type: text/plain, Size: 3700 bytes --]
Applied to next-dts, thanks.
On Tue, Oct 28, 2025 at 8:22 AM Andrew Bailey <abailey@iol.unh.edu> wrote:
> Currently, there is no way in the testpmd shell class to set the mbuf
> fast free offload configuration for queues or ports. This prohibits any
> test suites to be written utilizing this offload configuration.
> Introduce methods that support calls to testpmd in order to allow
> the configuration of mbuf fast free.
>
> Signed-off-by: Andrew Bailey <abailey@iol.unh.edu>
> ---
> dts/api/testpmd/__init__.py | 60 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 60 insertions(+)
>
> diff --git a/dts/api/testpmd/__init__.py b/dts/api/testpmd/__init__.py
> index a060ab5639..9e9cbaf495 100644
> --- a/dts/api/testpmd/__init__.py
> +++ b/dts/api/testpmd/__init__.py
> @@ -1292,3 +1292,63 @@ def get_capabilities_physical_function(
> supported_capabilities.add(NicCapability.PHYSICAL_FUNCTION)
> else:
> unsupported_capabilities.add(NicCapability.PHYSICAL_FUNCTION)
> +
> + @_requires_stopped_ports
> + def set_port_mbuf_fast_free(
> + self,
> + port_id: int,
> + on: bool,
> + /,
> + verify: bool = True,
> + ) -> None:
> + """Sets the mbuf_fast_free configuration for the Tx offload of a
> given port.
> +
> + Args:
> + port_id: The ID of the port to configure mbuf_fast_free on.
> + on: If :data:`True` mbuf_fast_free will be enabled, disable
> it otherwise.
> + verify: If :data:`True` the output of the command will be
> scanned in an attempt to
> + verify that the mbuf_fast_free was set successfully.
> +
> + Raises:
> + InteractiveCommandExecutionError: If mbuf_fast_free could not
> be set successfully.
> + """
> + mbuf_output = self.send_command(
> + f"port config {port_id} tx_offload mbuf_fast_free {"on" if on
> else "off"}"
> + )
> +
> + if verify and "Error" in mbuf_output:
> + raise InteractiveCommandExecutionError(
> + f"Unable to set mbuf_fast_free config on port
> {port_id}:\n{mbuf_output}"
> + )
> +
> + @_requires_stopped_ports
> + def set_queue_mbuf_fast_free(
> + self,
> + port_id: int,
> + on: bool,
> + /,
> + queue_id: int = 0,
> + verify: bool = True,
> + ) -> None:
> + """Sets the Tx mbuf_fast_free configuration of the specified
> queue on a given port.
> +
> + Args:
> + port_id: The ID of the port containing the queues.
> + on: If :data:`True` the mbuf_fast_free configuration will be
> enabled, otherwise
> + disabled.
> + queue_id: The ID of the queue to configure mbuf_fast_free on.
> + verify: If :data:`True` the output of the command will be
> scanned in an attempt to
> + verify that mbuf_fast_free was set successfully on all
> ports.
> +
> + Raises:
> + InteractiveCommandExecutionError: If all queues could not be
> set successfully.
> + """
> + toggle = "on" if on else "off"
> + output = self.send_command(
> + f"port {port_id} txq {queue_id} tx_offload mbuf_fast_free
> {toggle}"
> + )
> + if verify and "Error" in output:
> + self._logger.debug(f"Set queue offload config
> error\n{output}")
> + raise InteractiveCommandExecutionError(
> + f"Failed to get offload config on port {port_id}, queue
> {queue_id}:\n{output}"
> + )
> --
> 2.50.1
>
>
[-- Attachment #2: Type: text/html, Size: 4632 bytes --]
next prev parent reply other threads:[~2025-10-28 22:33 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-02 11:43 [PATCH v1 0/3] dts: add tx_offload support in dts Andrew Bailey
2025-09-02 11:43 ` [PATCH v1 1/3] dts: fix docstring typo in checksum suite Andrew Bailey
2025-09-02 11:43 ` [PATCH v1 2/3] dts: add reception check to checksum offload suite Andrew Bailey
2025-09-02 11:43 ` [PATCH v1 3/3] dts: all are one Andrew Bailey
2025-09-02 11:48 ` [PATCH v1 0/3] dts: add tx_offload support in dts Andrew Bailey
2025-09-24 16:47 ` [PATCH v4 0/3] dts:add " Andrew Bailey
2025-09-24 16:47 ` [PATCH v4 1/3] dts: allow mbuf_fast_free to be set with testpmd shell Andrew Bailey
2025-09-24 20:51 ` Patrick Robb
2025-09-25 16:01 ` Luca Vizzarro
2025-09-24 16:47 ` [PATCH v4 2/3] dts: add TX offload capabilities to NIC capabilities Andrew Bailey
2025-09-24 20:51 ` Patrick Robb
2025-09-25 16:05 ` Luca Vizzarro
2025-09-24 16:47 ` [PATCH v4 3/3] dts: update tx_offload test from old dts Andrew Bailey
2025-09-24 20:53 ` Patrick Robb
2025-09-29 17:06 ` [PATCH v5 0/3] dts: add tx_offload support in dts Andrew Bailey
2025-09-29 17:06 ` [PATCH v5 1/3] dts: allow mbuf_fast_free to be set with testpmd shell Andrew Bailey
2025-09-29 17:06 ` [PATCH v5 3/3] dts: update tx_offload test from old dts Andrew Bailey
2025-10-15 15:34 ` Patrick Robb
2025-09-29 17:27 ` [PATCH v6 0/3] dts: add tx_offload support in dts Andrew Bailey
2025-09-29 17:27 ` [PATCH v6 1/3] dts: allow mbuf_fast_free to be set with testpmd shell Andrew Bailey
2025-09-30 12:51 ` Luca Vizzarro
2025-10-09 15:53 ` Dean Marx
2025-09-29 17:27 ` [PATCH v6 2/3] dts: add TX offload capabilities to NIC capabilities Andrew Bailey
2025-09-30 12:55 ` Luca Vizzarro
2025-10-09 15:55 ` Dean Marx
2025-09-29 17:27 ` [PATCH v6 3/3] dts: update tx_offload test from old dts Andrew Bailey
2025-09-30 12:57 ` Luca Vizzarro
2025-10-09 15:56 ` Dean Marx
2025-10-16 13:24 ` [PATCH v7 0/3] add tx_offload support in dts Andrew Bailey
2025-10-16 13:24 ` [PATCH v7 1/3] dts: allow mbuf_fast_free to be set with testpmd shell Andrew Bailey
2025-10-21 13:28 ` Luca Vizzarro
2025-10-16 13:24 ` [PATCH v7 2/3] dts: add TX offload capabilities to NIC capabilities Andrew Bailey
2025-10-21 13:50 ` Luca Vizzarro
2025-10-16 13:24 ` [PATCH v7 3/3] dts: update tx_offload test from legacy dts to next dts Andrew Bailey
2025-10-21 13:51 ` Luca Vizzarro
2025-10-21 14:45 ` [PATCH v8 0/3] dts: add tx_offload support in dts Andrew Bailey
2025-10-21 14:45 ` [PATCH v8 1/3] dts: allow mbuf_fast_free to be set with testpmd shell Andrew Bailey
2025-10-21 15:15 ` Luca Vizzarro
2025-10-21 15:27 ` Luca Vizzarro
2025-10-21 14:45 ` [PATCH v8 2/3] dts: add TX offload capabilities to NIC capabilities Andrew Bailey
2025-10-21 15:19 ` Luca Vizzarro
2025-10-21 15:29 ` Luca Vizzarro
2025-10-21 14:45 ` [PATCH v8 3/3] dts: update tx_offload test from legacy dts to next dts Andrew Bailey
2025-10-21 15:31 ` Luca Vizzarro
[not found] ` <20251023123223.56924-1-abailey@iol.unh.edu>
2025-10-23 12:32 ` [PATCH v9 1/3] dts: allow mbuf fast free to be set with testpmd shell Andrew Bailey
2025-10-24 19:20 ` Patrick Robb
2025-10-23 12:32 ` [PATCH v9 2/3] dts: add Tx offload capabilities to NIC capabilities Andrew Bailey
2025-10-23 12:32 ` [PATCH v9 3/3] dts: add Rx Tx offload test suite Andrew Bailey
2025-10-24 19:21 ` Patrick Robb
2025-10-27 13:02 ` [PATCH v10 0/3] dts: add Tx offload support in dts Andrew Bailey
2025-10-27 13:02 ` [PATCH v10 1/3] dts: allow mbuf fast free to be set with testpmd shell Andrew Bailey
2025-10-27 16:16 ` Patrick Robb
2025-10-27 13:02 ` [PATCH v10 2/3] dts: add Tx offload capabilities to NIC capabilities Andrew Bailey
2025-10-27 16:15 ` Patrick Robb
2025-10-27 13:02 ` [PATCH v10 3/3] dts: add Rx Tx offload test suite Andrew Bailey
2025-10-27 16:17 ` Patrick Robb
2025-10-28 12:22 ` [PATCH v11 0/3] dts: add Tx offload support in dts Andrew Bailey
2025-10-28 12:22 ` [PATCH v11 1/3] dts: allow mbuf fast free to be set with testpmd shell Andrew Bailey
2025-10-28 22:32 ` Patrick Robb [this message]
2025-10-28 12:22 ` [PATCH v11 2/3] dts: add Tx offload capabilities to NIC capabilities Andrew Bailey
2025-10-28 22:32 ` Patrick Robb
2025-10-28 12:22 ` [PATCH v11 3/3] dts: add Rx Tx offload test suite Andrew Bailey
2025-10-28 22:33 ` Patrick Robb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJvnSUDLujYSwLD1bN6vZFtP14ikBgjxVbhfun3xnXW7K=VgdQ@mail.gmail.com' \
--to=probb@iol.unh.edu \
--cc=abailey@iol.unh.edu \
--cc=dev@dpdk.org \
--cc=dmarx@iol.unh.edu \
--cc=luca.vizzarro@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).