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)
commit228c4cd04dfd0667eda182c91504b83c17d97584
tree74509c8d937994fc6f94c5c4b1132f5c24d0d36b
parent0073c8f72736b423aade8a817587a5f3e4df4ad8
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: d605d66 ("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