linux-stable/tools
Florian Westphal c8550b9077 testing: selftests: nft_flowtable.sh: rework test to detect offload failure
This test fails on current kernel releases because the flotwable path
now calls dst_check from packet path and will then remove the offload.

Test script has two purposes:
1. check that file (random content) can be sent to other netns (and vv)
2. check that the flow is offloaded (rather than handled by classic
   forwarding path).

Since dst_check is in place, 2) fails because the nftables ruleset in
router namespace 1 intentionally blocks traffic under the assumption
that packets are not passed via classic path at all.

Rework this: Instead of blocking traffic, create two named counters, one
for original and one for reverse direction.

The first three test cases are handled by classic forwarding path
(path mtu discovery is disabled and packets exceed MTU).

But all other tests enable PMTUD, so the originator and responder are
expected to lower packet size and flowtable is expected to do the packet
forwarding.

For those tests, check that the packet counters (which are only
incremented for packets that are passed up to classic forward path)
are significantly lower than the file size transferred.

I've tested that the counter-checks fail as expected when the 'flow add'
statement is removed from the ruleset.

Signed-off-by: Florian Westphal <fw@strlen.de>
2022-08-17 15:12:01 +02:00
..
accounting
arch flexible-array transformations in UAPI for 6.0-rc1 2022-08-02 19:50:47 -07:00
bootconfig
bpf bpftool: Don't try to return value from void function in skeleton 2022-07-29 10:43:14 -07:00
build
certs
cgroup
counter
debugging
edid
firewire
firmware
gpio
hv
iio
include Networking changes for 6.0. 2022-08-03 16:29:08 -07:00
io_uring
kvm/kvm_stat tools/kvm_stat: fix display of error when multiple processes are found 2022-06-15 08:14:20 -04:00
laptop
leds
lib libbpf: Add bpf_obj_get_opts() 2022-07-29 15:30:06 -07:00
memory-model
objtool This was a moderately busy cycle for documentation, but nothing all that 2022-08-02 19:24:24 -07:00
pci
pcmcia
perf Networking changes for 6.0. 2022-08-03 16:29:08 -07:00
power Merge branch 'turbostat' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux 2022-08-02 12:47:31 -07:00
rcu
scripts
spi spi: spidev_test: Warn when the mode is not the requested mode 2022-06-13 15:56:03 +01:00
testing testing: selftests: nft_flowtable.sh: rework test to detect offload failure 2022-08-17 15:12:01 +02:00
thermal thermal/tools/tmon: Fix typo 'the the' in comment 2022-07-28 17:29:52 +02:00
time
tracing
usb
virtio
vm tools/vm/slabinfo: Handle files in debugfs 2022-07-04 17:10:15 +02:00
wmi
Makefile tools/nolibc: make the default target build the headers 2022-06-20 09:43:19 -07:00