diff options
author | Peter Oskolkov <posk@google.com> | 2019-01-04 09:43:08 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-04 13:38:39 -0800 |
commit | 3271a4821882a64214acc1bd7b173900ec70c9bf (patch) | |
tree | fc8540c11a880f776a3206efec57f5eaaab2fc41 /drivers | |
parent | f87118d5760f00af7228033fbe783c7f380d2866 (diff) |
selftests: net: fix/improve ip_defrag selftest
Commit ade446403bfb ("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: Peter Oskolkov <posk@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions