]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix selftest for small MTUs
authorValentine Fatiev <valentinef@mellanox.com>
Wed, 17 Oct 2018 08:45:07 +0000 (11:45 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 19 Nov 2018 22:35:04 +0000 (14:35 -0800)
commitadb24594234b30d3b14ced3904d7f8ac2e5c4d3a
tree74509c8d937994fc6f94c5c4b1132f5c24d0d36b
parenta81adb00aabfdd06e587f5f16ef457b08629079c
net/mlx5e: Fix selftest for small MTUs

Loopback test had fixed packet size, which can be bigger than configured
MTU. Shorten the loopback packet size to be bigger than minimal MTU
allowed by the device. Text field removed from struct 'mlx5ehdr'
as redundant to allow send small packets as minimal allowed MTU.

Fixes: 900830e ("net/mlx5e: Add support for ethtool self diagnostics test")
Signed-off-by: Valentine Fatiev <valentinef@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c