Skip to contentSkip to conversation

dts: avoid Scapy MAC resolution in Rx split test

PATCH In review Thomas Monjalon 2 participants 3 messages Jun 10 – Jun 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dts: avoid Scapy MAC resolution in Rx split test

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")
---
 dts/tests/TestSuite_rx_split.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
dts/tests/TestSuite_rx_split.py +1 -1
index 0c7913bbd8..5f5a2e6187 100644
@@ -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
Signature · 1 line
2.54.0
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · On Wed, 10 Jun 2026 20:32:18 +0200 Thomas Monjalon <[email protected]> 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.

Quoted 6 lines

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

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

Thanks, I previously reported this as:

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

author Applied
#2 lore raw

11/06/2026 20:54, Stephen Hemminger:

Quoted 12 lines
Quoted 9 lines · On Wed, 10 Jun 2026 20:32:18 +0200 Thomas Monjalon <[email protected]> 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.

Quoted 7 lines
Quoted 3 lines
Fixes 01c70544cffd ("dts: add selective Rx tests")

Thanks, I previously reported this as:

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

OK, added the tag in the commit log.

Quoted 1 line

Applied