dts: avoid Scapy MAC resolution in Rx split test
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.
--- dts/tests/TestSuite_rx_split.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
dts/tests/TestSuite_rx_split.py +1 -1
@@ -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
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")Signed-off-by Thomas Monjalon <[email protected]>
Thanks, I previously reported this as:
Thomas Monjalon
Applied11/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")Signed-off-by Thomas Monjalon <[email protected]>Thanks, I previously reported this as:
OK, added the tag in the commit log.
Quoted 1 line
Applied