Skip to content

Commit

Permalink
selftests: netfilter: Introduce tests for sets with range concatenation
Browse files Browse the repository at this point in the history
This test covers functionality and stability of the newly added
nftables set implementation supporting concatenation of ranged
fields.

For some selected set expression types, test:
- correctness, by checking that packets match or don't
- concurrency, by attempting races between insertion, deletion, lookup
- timeout feature, checking that packets don't match expired entries

and (roughly) estimate matching rates, comparing to baselines for
simple drop on netdev ingress hook and for hash and rbtrees sets.

In order to send packets, this needs one of sendip, netcat or bash.
To flood with traffic, iperf3, iperf and netperf are supported. For
performance measurements, this relies on the sample pktgen script
pktgen_bench_xmit_mode_netif_receive.sh.

If none of the tools suitable for a given test are available, specific
tests will be skipped.

Signed-off-by: Stefano Brivio <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
  • Loading branch information
sbrivio-rh authored and ummakynes committed Jan 27, 2020
1 parent 3c4287f commit 611973c
Show file tree
Hide file tree
Showing 2 changed files with 1,483 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/testing/selftests/netfilter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Makefile for netfilter selftests

TEST_PROGS := nft_trans_stress.sh nft_nat.sh bridge_brouter.sh \
conntrack_icmp_related.sh nft_flowtable.sh ipvs.sh
conntrack_icmp_related.sh nft_flowtable.sh ipvs.sh \
nft_concat_range.sh

include ../lib.mk
Loading

0 comments on commit 611973c

Please sign in to comment.