From: Luca Vizzarro <luca.vizzarro@arm.com>
To: Andrew Bailey <abailey@iol.unh.edu>
Cc: dev@dpdk.org, dmarx@iol.unh.edu, probb@iol.unh.edu
Subject: Re: [PATCH v7 1/3] dts: allow mbuf_fast_free to be set with testpmd shell
Date: Tue, 21 Oct 2025 14:28:51 +0100 [thread overview]
Message-ID: <176105316351.86099.5081796528192485598.luca.vizzarro@arm.com> (raw)
In-Reply-To: <20251016132421.12176-2-abailey@iol.unh.edu>
Hi Andrew,
Apologies for not spotting this before. Everything else is fine just as
before but:
On Thu, Oct 16, 2025 at 09:24:19AM +0000, Andrew Bailey wrote:
> diff --git a/dts/api/testpmd/__init__.py b/dts/api/testpmd/__init__.py
> index a060ab5639..39696ddde2 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,
> + on: bool,
> + port_id: int,
Out of consistency with the actual testpmd call and with all the other
methods, the port_id should come first. The arguments generally reflect
the other in which they are called in testpmd to make it "easier" for
someone who is familiar with it to pick up.
> + /,
> + verify: bool = True,
> + ) -> None:
> + """Sets the mbuf_fast_free configuration for the Tx offload of a given port.
> +
> + Args:
> + on: If :data:`True` mbuf_fast_free will be enabled, disable it otherwise.
> + port_id: The ID of the port to configure mbuf_fast_free on.
Don't forget to swap it here as well.
> + 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.
> + """
<snip>
> +
> + @_requires_stopped_ports
> + def set_queue_mbuf_fast_free(
> + self,
> + on: bool,
> + port_id: int,
same here.
> + /,
> + queue_id: int = 0,
> + verify: bool = True,
> + ) -> None:
and the docstring here too.
Best,
Luca
next prev parent reply other threads:[~2025-10-21 13:29 UTC|newest]
Thread overview: 44+ 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 [this message]
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
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=176105316351.86099.5081796528192485598.luca.vizzarro@arm.com \
--to=luca.vizzarro@arm.com \
--cc=abailey@iol.unh.edu \
--cc=dev@dpdk.org \
--cc=dmarx@iol.unh.edu \
--cc=probb@iol.unh.edu \
/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).