]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: net: ip_defrag: ignore EPERM
authorThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 2 Jun 2020 18:38:37 +0000 (15:38 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jun 2020 22:54:20 +0000 (15:54 -0700)
commit33bf8a505f396c0727f27bf6c8d455c55bb69780
treedfe83d3a9cf6348aca32eb9b6bf43e1e2101e5c5
parent07b7b5dfb644c8cfaceee595b54f2ac7f4efc4d2
selftests: net: ip_defrag: ignore EPERM

When running with conntrack rules, the dropped overlap fragments may cause
EPERM to be returned to sendto. Instead of completely failing, just ignore
those errors and continue. If this causes packets with overlap fragments to
be dropped as expected, that is okay. And if it causes packets that are
expected to be received to be dropped, which should not happen, it will be
detected as failure.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/ip_defrag.c