Skip to content

Commit f46a051

Browse files
committed
Use PTF version with bf_pktpy as default.
Signed-off-by: fruffy <fruffy@nyu.edu>
1 parent b652e51 commit f46a051

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,6 @@ find_python_module (re REQUIRED)
284284
# other packages
285285
find_package (Doxygen)
286286
find_package (BMV2)
287-
# If we have found simple switch or psa switch or pna_nic, we also need scapy.
288-
if(SIMPLE_SWITCH OR PSA_SWITCH OR PNA_NIC)
289-
find_python_module (scapy REQUIRED)
290-
endif()
291287
# enable CTest
292288
enable_testing ()
293289

backends/ebpf/tests/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ for xdp_enabled in "${XDP[@]}" ; do
180180
# Start tests
181181
ptf \
182182
--test-dir ptf/ \
183+
--packet-manipulation-module ptf.packet_scapy \
183184
--test-params="$TEST_PARAMS" \
184185
--interface 0@s1-eth0 --interface 1@s1-eth1 --interface 2@s1-eth2 --interface 3@s1-eth3 \
185186
--interface 4@s1-eth4 --interface 5@s1-eth5 $TEST_CASE

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ license = "Apache"
1111
dependencies = [
1212
"pyroute2==0.7.3",
1313
"ply==3.11",
14-
"scapy==2.5.0",
1514
"googleapis-common-protos==1.53.0",
1615
"grpcio<=1.75.1,>=1.67.0; python_version > '3.6'",
1716
"grpcio==1.48.2 ; python_version <= '3.6'",
@@ -39,7 +38,7 @@ package = false
3938
# FIXME: We should figure out a way to synchronize P4Runtime versions across CMake and Python.
4039
# This is the same commit hash as defined in the top-level CMakelists.txt
4140
p4runtime = { git = "https://github.com/p4lang/p4runtime.git", rev = "ec4eb5ef70dbcbcbf2f8357a4b2b8c2f218845a5", subdirectory = "py" }
42-
ptf = { git = "https://github.com/p4lang/ptf.git", rev = "d016cdfe99f2d609cc9c7fd7f8c414b56d5b3c5c"}
41+
ptf = { git = "https://github.com/p4lang/ptf.git", rev = "3415cb3036b805512136fd85ad553fcdf6e932db"}
4342

4443
[build-system]
4544
requires = ["hatchling"]

tools/ci-build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ function build_ebpf() {
190190
net-tools"
191191
P4C_EBPF_DEPS+=" llvm clang "
192192
sudo apt-get install -y --no-install-recommends ${P4C_EBPF_DEPS}
193+
uv pip install scapy==2.5.0
193194
}
194195

195196
function install_ptf_ebpf_test_deps() (

0 commit comments

Comments
 (0)