From: Dean Marx <dmarx@iol.unh.edu>
To: probb@iol.unh.edu, luca.vizzarro@arm.com,
yoan.picchi@foss.arm.com, Honnappa.Nagarahalli@arm.com,
paul.szczepanek@arm.com
Cc: dev@dpdk.org, Dean Marx <dmarx@iol.unh.edu>
Subject: [PATCH v1 3/3] dts: fix doc generation bug
Date: Tue, 27 May 2025 11:37:34 -0400 [thread overview]
Message-ID: <20250527153734.368235-3-dmarx@iol.unh.edu> (raw)
In-Reply-To: <20250527153734.368235-1-dmarx@iol.unh.edu>
Fix a bug in the port stats check test suite that was causing
the DTS doc generation to fail.
Fixes: 8f21210b1d50 ("dts: add port stats check test suite")
Signed-off-by: Dean Marx <dmarx@iol.unh.edu>
---
dts/tests/TestSuite_port_stats_checks.py | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/dts/tests/TestSuite_port_stats_checks.py b/dts/tests/TestSuite_port_stats_checks.py
index 2a3fb06946..491c2263b6 100644
--- a/dts/tests/TestSuite_port_stats_checks.py
+++ b/dts/tests/TestSuite_port_stats_checks.py
@@ -51,10 +51,15 @@ class TestPortStatsChecks(TestSuite):
#: Length of the packet being sent including the IP and frame headers.
total_packet_len: ClassVar[int] = 100
- #: Packet to send during testing.
- send_pkt: ClassVar[Packet] = (
- Ether() / IP() / Raw(b"X" * (total_packet_len - ip_header_len - ether_header_len))
- )
+
+ @property
+ def send_pkt(self) -> Packet:
+ """Packet to send during testing."""
+ return (
+ Ether()
+ / IP()
+ / Raw(b"X" * (self.total_packet_len - self.ip_header_len - self.ether_header_len))
+ )
def extract_noise_information(
self, verbose_out: list[TestPmdVerbosePacket]
--
2.49.0
next prev parent reply other threads:[~2025-05-27 15:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-27 15:37 [PATCH v1 1/3] dts: rewrite README Dean Marx
2025-05-27 15:37 ` [PATCH v1 2/3] dts: rewrite dts rst Dean Marx
2025-05-28 21:25 ` Patrick Robb
2025-05-29 12:27 ` Paul Szczepanek
2025-05-27 15:37 ` Dean Marx [this message]
2025-05-28 20:28 ` [PATCH v1 3/3] dts: fix doc generation bug Patrick Robb
2025-05-29 12:28 ` Paul Szczepanek
2025-05-28 20:40 ` [PATCH v1 1/3] dts: rewrite README Patrick Robb
2025-05-29 12:27 ` Paul Szczepanek
2025-05-29 12:40 ` Paul Szczepanek
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=20250527153734.368235-3-dmarx@iol.unh.edu \
--to=dmarx@iol.unh.edu \
--cc=Honnappa.Nagarahalli@arm.com \
--cc=dev@dpdk.org \
--cc=luca.vizzarro@arm.com \
--cc=paul.szczepanek@arm.com \
--cc=probb@iol.unh.edu \
--cc=yoan.picchi@foss.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).