selftests/net: udpgso: test small gso_size boundary conditions
authorWillem de Bruijn <willemb@google.com>
Thu, 31 May 2018 16:14:39 +0000 (12:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2018 13:49:39 +0000 (09:49 -0400)
commit00f333e8d64d9064e636fe4024f6281e2b035a4c
treec5afb8894ac0e96c3aea0d6cea5ec93b74df3f3f
parent830669e691464c005ff7262b74797fb2222da99a
selftests/net: udpgso: test small gso_size boundary conditions

Verify that udpgso can generate segments smaller than device mtu, down
to the extreme case of 1B gso_size.

Verify that irrespective of gso_size, udpgso restricts the number of
segments it will generate per call (UDP_MAX_SEGMENTS).

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/udpgso.c