aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/udpgso.c
Commit message (Collapse)AuthorAge
* selftests/net: udpgso: test small gso_size boundary conditionsWillem de Bruijn2018-06-04
| | | | | | | | | | | 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>
* selftests: udp gso with corkingWillem de Bruijn2018-04-26
| | | | | | | | Corked sockets take a different path to construct a udp datagram than the lockless fast path. Test this alternate path. Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* selftests: udp gso with connected socketsWillem de Bruijn2018-04-26
| | | | | | | | | | | Connected sockets use path mtu instead of device mtu. Test this path by inserting a route mtu that is lower than the device mtu. Verify that the path mtu for the connection matches this lower number, then run the same test as in the connectionless case. Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* selftests: udp gsoWillem de Bruijn2018-04-26
Validate udp gso, including edge cases (such as min/max gso sizes). Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>