]> 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)
commit3c895c6aa6054d8990e75c92a48bc259897d0208
tree68013ddeb05c9af67aa72c3abcd568eadd77f62c
parent156ed2d1d5f3d8befb64466afc22a1ddcf86825c
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