• Peter Oskolkov's avatar
    selftests: net: fix/improve ip_defrag selftest · 6a8f9447
    Peter Oskolkov authored
    [ Upstream commit 3271a482 ]
    
    Commit ade44640 ("net: ipv4: do not handle duplicate fragments as
    overlapping") changed IPv4 defragmentation so that duplicate fragments,
    as well as _some_ fragments completely covered by previously delivered
    fragments, do not lead to the whole frag queue being discarded. This
    makes the existing ip_defrag selftest flaky.
    
    This patch
    * makes sure that negative IPv4 defrag tests generate truly overlapping
      fragments that trigger defrag queue drops;
    * tests that duplicate IPv4 fragments do not trigger defrag queue drops;
    * makes a couple of minor tweaks to the test aimed at increasing its code
      coverage and reduce flakiness.
    Signed-off-by: 's avatarPeter Oskolkov <posk@google.com>
    Signed-off-by: 's avatarDavid S. Miller <davem@davemloft.net>
    Signed-off-by: 's avatarSasha Levin <sashal@kernel.org>
    6a8f9447
Name
Last commit
Last update
..
accounting Loading commit data...
arch Loading commit data...
bpf Loading commit data...
build Loading commit data...
cgroup Loading commit data...
crypto Loading commit data...
firewire Loading commit data...
gpio Loading commit data...
hv Loading commit data...
iio Loading commit data...
include Loading commit data...
kvm/kvm_stat Loading commit data...
laptop Loading commit data...
leds Loading commit data...
lib Loading commit data...
memory-model Loading commit data...
nfsd Loading commit data...
objtool Loading commit data...
pci Loading commit data...
pcmcia Loading commit data...
perf Loading commit data...
power Loading commit data...
scripts Loading commit data...
spi Loading commit data...
testing Loading commit data...
thermal/tmon Loading commit data...
time Loading commit data...
usb Loading commit data...
virtio Loading commit data...
vm Loading commit data...
wmi Loading commit data...
Makefile Loading commit data...