linux-stable/tools
Petr Machata c55ba23833 selftests: mirror_gre_changes: Tighten up the TTL test match
[ Upstream commit 855067defa ]

This test verifies whether the encapsulated packets have the correct
configured TTL. It does so by sending ICMP packets through the test
topology and mirroring them to a gretap netdevice. On a busy host
however, more than just the test ICMP packets may end up flowing
through the topology, get mirrored, and counted. This leads to
potential spurious failures as the test observes much more mirrored
packets than the sent test packets, and assumes a bug.

Fix this by tightening up the mirror action match. Change it from
matchall to a flower classifier matching on ICMP packets specifically.

Fixes: 45315673e0 ("selftests: forwarding: Test changes in mirror-to-gretap")
Signed-off-by: Petr Machata <petrm@nvidia.com>
Tested-by: Mirsad Todorovac <mirsad.todorovac@alu.unizg.hr>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-30 16:31:48 +02:00
..
accounting tools/accounting/getdelays.c: fix netlink attribute length 2020-04-13 10:45:10 +02:00
arch parisc: Align parisc MADV_XXX constants with all other architectures 2023-01-18 11:30:51 +01:00
bpf bpftool: Fix bug for long instructions in program CFG dumps 2023-05-17 11:13:13 +02:00
build tools build: Switch to new openssl API for test-libcrypto 2022-08-25 11:15:39 +02:00
cgroup
firewire
gpio tools: gpio-hammer: Avoid potential overflow in main 2020-10-01 13:14:39 +02:00
hv Tools: hv: kvp: eliminate 'may be used uninitialized' warning 2019-09-10 10:33:50 +01:00
iio tools/iio/iio_utils:fix memory leak 2023-03-11 16:32:01 +01:00
include bpf: Fix comment for helper bpf_current_task_under_cgroup() 2022-04-15 14:14:59 +02:00
kvm/kvm_stat tools/kvm_stat: Fix kvm_exit filter name 2020-02-11 04:34:08 -08:00
laptop
leds
lib libbpf: Fix alen calculation in libbpf_nla_dump_errormsg() 2023-03-11 16:31:37 +01:00
memory-model
nfsd
objtool objtool: Add a missing comma to avoid string concatenation 2023-02-06 07:49:45 +01:00
pci tools: PCI: Fix broken pcitest compilation 2019-11-24 08:21:08 +01:00
pcmcia
perf perf test uprobe_from_different_cu: Skip if there is no gcc 2023-08-11 11:45:37 +02:00
power cpupower: Make TSC read per CPU for Mperf monitor 2023-05-30 12:42:10 +01:00
scripts tools: Factor HOSTCC, HOSTLD, HOSTAR definitions 2021-01-30 13:32:13 +01:00
spi
testing selftests: mirror_gre_changes: Tighten up the TTL test match 2023-08-30 16:31:48 +02:00
thermal/tmon tools/thermal: Fix possible path truncations 2022-08-25 11:15:26 +02:00
time
usb usb: testusb: Fix for showing the connection speed 2021-10-09 14:11:03 +02:00
virtio tools/virtio: fix the vringh test for virtio ring changes 2023-02-22 12:47:19 +01:00
vm tools/vm/slabinfo-gnuplot: use "grep -E" instead of "egrep" 2022-12-08 11:18:33 +01:00
wmi
Makefile