DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dts: avoid Scapy MAC resolution in Rx split test
@ 2026-06-10 18:32 Thomas Monjalon
  2026-06-11 18:54 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Monjalon @ 2026-06-10 18:32 UTC (permalink / raw)
  To: dev; +Cc: Luca Vizzarro, Patrick Robb

The test gets the Ethernet header length from Scapy with len(Ether()).

When building DTS API documentation, Sphinx imports the test module
and shows this warning:
WARNING: MAC address to reach destination not found. Using broadcast.

Use a dummy MAC address so Scapy no longer performs
destination resolution during import.

Fixes: 01c70544cffd ("dts: add selective Rx tests")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 dts/tests/TestSuite_rx_split.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dts/tests/TestSuite_rx_split.py b/dts/tests/TestSuite_rx_split.py
index 0c7913bbd8..5f5a2e6187 100644
--- a/dts/tests/TestSuite_rx_split.py
+++ b/dts/tests/TestSuite_rx_split.py
@@ -27,7 +27,7 @@
 from framework.test_suite import TestSuite, func_test
 
 PAYLOAD = bytes(range(256))
-ETHER_HDR_LEN = len(Ether())
+ETHER_HDR_LEN = len(Ether(dst="00:00:00:00:00:00"))
 IP_HDR_LEN = len(IP())
 ETHER_IP_HDR_LEN = ETHER_HDR_LEN + IP_HDR_LEN
 ETHER_MIN_FRAME_LEN = 60
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dts: avoid Scapy MAC resolution in Rx split test
  2026-06-10 18:32 [PATCH] dts: avoid Scapy MAC resolution in Rx split test Thomas Monjalon
@ 2026-06-11 18:54 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2026-06-11 18:54 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev, Luca Vizzarro, Patrick Robb

On Wed, 10 Jun 2026 20:32:18 +0200
Thomas Monjalon <thomas@monjalon.net> wrote:

> The test gets the Ethernet header length from Scapy with len(Ether()).
> 
> When building DTS API documentation, Sphinx imports the test module
> and shows this warning:
> WARNING: MAC address to reach destination not found. Using broadcast.
> 
> Use a dummy MAC address so Scapy no longer performs
> destination resolution during import.
> 
> Fixes: 01c70544cffd ("dts: add selective Rx tests")
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>

Thanks, I previously reported this as:

https://bugs.dpdk.org/show_bug.cgi?id=1951

Acked-by: Stephen Hemminger <stephen@networkplumber.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-11 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-10 18:32 [PATCH] dts: avoid Scapy MAC resolution in Rx split test Thomas Monjalon
2026-06-11 18:54 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox