]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: pmtu: extend MTU parsing helper to locked MTU
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 8 Oct 2018 12:37:04 +0000 (14:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 18:00:23 +0000 (11:00 -0700)
commitef39c523d31c5f978bed5bd3a7bfdb8573d39e64
tree824bd714ed8225be1ca54b903e2fd48a9c26b5c1
parentd4c15ecc5782d47c4f02647d0aeb25cc35af9a00
selftests: pmtu: extend MTU parsing helper to locked MTU

The mtu_parse helper introduced in commit 0cb165250f7c ("selftests:
pmtu: Factor out MTU parsing helper") can only handle "mtu 1234", but
not "mtu lock 1234". Extend it, so that we can do IPv4 tests with PMTU
smaller than net.ipv4.route.min_pmtu

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/pmtu.sh