]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: forwarding: Add test for minimum and maximum MTU
authorAmit Cohen <amcohen@nvidia.com>
Thu, 13 Jun 2024 14:07:58 +0000 (16:07 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Jun 2024 02:30:34 +0000 (19:30 -0700)
commit4be3dcc9bf04d0957235b45ba18983f1f751a3a1
treed4d497acb6c950aee75f5a994601b7e3c3bff814
parent3e7856545d369a6dcb3f93b21a9672b69f918650
selftests: forwarding: Add test for minimum and maximum MTU

Add cases to check minimum and maximum MTU which are exposed via
"ip -d link show". Test configuration and traffic. Use VLAN devices as
usually VLAN header (4 bytes) is not included in the MTU, and drivers
should configure hardware correctly to send maximum MTU payload size
in VLAN tagged packets.

$ ./min_max_mtu.sh
TEST: ping [ OK ]
TEST: ping6 [ OK ]
TEST: Test maximum MTU configuration [ OK ]
TEST: Test traffic, packet size is maximum MTU [ OK ]
TEST: Test minimum MTU configuration [ OK ]
TEST: Test traffic, packet size is minimum MTU [ OK ]

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/89de8be8989db7a97f3b39e3c9da695673e78d2e.1718275854.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/Makefile
tools/testing/selftests/net/forwarding/min_max_mtu.sh [new file with mode: 0755]