]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: devlink_trap_tunnel_vxlan: Fix 'decap_error' case
authorAmit Cohen <amcohen@nvidia.com>
Thu, 23 Dec 2021 07:30:02 +0000 (09:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Dec 2021 11:24:01 +0000 (11:24 +0000)
commit3879d55e82143bbc6b40c4dbba32ac90ea99345e
tree68013ddeb05c9af67aa72c3abcd568eadd77f62c
parent7d57eaf0da7e18e88c8072a86a50211b0ad1c27a
selftests: mlxsw: devlink_trap_tunnel_vxlan: Fix 'decap_error' case

Change the case that sends packets with "too short inner packet" to
include part of ethernet header, to make the trap to be triggered due to
the correct reason.

According to ASIC arch, the trap is triggered if overlay packet length is
less than 18B, and the minimum inner packet should include source MAC and
destination MAC.

Till now the case passed because one of the reserved bits in VxLAN
header was used. This issue was found while adding an equivalent test
for IPv6.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/devlink_trap_tunnel_vxlan.sh