Skip to contentSkip to conversation

selftests: netfilter: correct PKTGEN_SCRIPT_PATHS in nft_concat_range.sh

PATCH In review Jie2x Zhou 3 participants 3 messages Jun 16, 2022

Subsystems (2)
lore
Share & tools
lore

Jie2x Zhou

author
#0 lore raw

PATCH 1/1 selftests: netfilter: correct PKTGEN_SCRIPT_PATHS in nft_concat_range.sh

Before change:
make -C netfilter
TEST: performance
net,port [SKIP]
perf not supported
port,net [SKIP]
perf not supported
net6,port [SKIP]
perf not supported
port,proto [SKIP]
perf not supported
net6,port,mac [SKIP]
perf not supported
net6,port,mac,proto [SKIP]
perf not supported
net,mac [SKIP]
perf not supported

After change:
net,mac [ OK ]

     baseline (drop from netdev hook):               2061098pps
     baseline hash (non-ranged entries):             1606741pps
     baseline rbtree (match on first field only):    1191607pps
     set with  1000 full, ranged entries:            1639119pps

ok 8 selftests: netfilter: nft_concat_range.sh

Fixes 611973c1e06f ("selftests: netfilter: Introduce tests for sets with range concatenation")
---
 tools/testing/selftests/netfilter/nft_concat_range.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/netfilter/nft_concat_range.sh +1 -1
index b35010cc7f6a..a6991877e50c 100755
@@ -31,7 +31,7 @@ BUGS="flush_remove_add reload"
 
 # List of possible paths to pktgen script from kernel tree for performance tests
 PKTGEN_SCRIPT_PATHS="
-	../../../samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh
+	../../../../samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh
 	pktgen/pktgen_bench_xmit_mode_netif_receive.sh"
 
 # Definition of set types:
Signature · 1 line
2.34.1
#1 lore raw

Cc'ing netfilter-devel and Stefano Brivio.

Quoted 49 lines · On Thu, Jun 16, 2022 at 03:40:46PM +0800, Jie2x Zhou wrote:

Before change:
make -C netfilter
TEST: performance
net,port [SKIP]
perf not supported
port,net [SKIP]
perf not supported
net6,port [SKIP]
perf not supported
port,proto [SKIP]
perf not supported
net6,port,mac [SKIP]
perf not supported
net6,port,mac,proto [SKIP]
perf not supported
net,mac [SKIP]
perf not supported

After change:
net,mac [ OK ]

     baseline (drop from netdev hook):               2061098pps
     baseline hash (non-ranged entries):             1606741pps
     baseline rbtree (match on first field only):    1191607pps
     set with  1000 full, ranged entries:            1639119pps

ok 8 selftests: netfilter: nft_concat_range.sh

Fixes 611973c1e06f ("selftests: netfilter: Introduce tests for sets with range concatenation")
---
 tools/testing/selftests/netfilter/nft_concat_range.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/netfilter/nft_concat_range.sh +1 -1
index b35010cc7f6a..a6991877e50c 100755
@@ -31,7 +31,7 @@ BUGS="flush_remove_add reload"
 
 # List of possible paths to pktgen script from kernel tree for performance tests
 PKTGEN_SCRIPT_PATHS="
-	../../../samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh
+	../../../../samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh
 	pktgen/pktgen_bench_xmit_mode_netif_receive.sh"
 
 # Definition of set types:
Signature · 1 line
2.34.1
Reviewed-by
#2 lore raw

Hi Jie2x,

Quoted 42 lines · On Thu, 16 Jun 2022 11:53:41 +0200 Pablo Neira Ayuso <[email protected]>…

Cc'ing netfilter-devel and Stefano Brivio.

Quoted 39 lines · On Thu, Jun 16, 2022 at 03:40:46PM +0800, Jie2x Zhou wrote:

Before change:
make -C netfilter
TEST: performance
net,port [SKIP]
perf not supported
port,net [SKIP]
perf not supported
net6,port [SKIP]
perf not supported
port,proto [SKIP]
perf not supported
net6,port,mac [SKIP]
perf not supported
net6,port,mac,proto [SKIP]
perf not supported
net,mac [SKIP]
perf not supported

After change:
net,mac [ OK ]

     baseline (drop from netdev hook):               2061098pps
     baseline hash (non-ranged entries):             1606741pps
     baseline rbtree (match on first field only):    1191607pps
     set with  1000 full, ranged entries:            1639119pps

ok 8 selftests: netfilter: nft_concat_range.sh

Fixes 611973c1e06f ("selftests: netfilter: Introduce tests for sets with range concatenation")
---
 tools/testing/selftests/netfilter/nft_concat_range.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/netfilter/nft_concat_range.sh +0 -0
index b35010cc7f6a..a6991877e50c 100755
@@ -31,7 +31,7 @@ BUGS="flush_remove_add reload"
 
Quoted 4 lines

tools/testing/selftests/netfilter/nft_concat_range.sh BUGS="flush_remove_add reload" · line 34

Quoted 4 lines
tools/testing/selftests/netfilter/nft_concat_range.sh +1 -1
 # List of possible paths to pktgen script from kernel tree for performance tests
 PKTGEN_SCRIPT_PATHS="
-	../../../samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh
+	../../../../samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh

This came from the fact that I used, for testing, to copy the directories 'samples' and 'selftests' to the root of a filesystem on a virtual machine, instead of copying the full 'tools' directory.

It was a very arbitrary usage though, also given that 'selftests' is typically biggest directory in 'tools', so there's no need to keep the previous path.

Thanks for fixing this,

Signature · 1 line
Stefano