]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Fix selftest for small MTUs
authorEugenia Emantayev <eugenia@mellanox.com>
Wed, 13 Dec 2017 16:12:09 +0000 (18:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2017 21:38:36 +0000 (16:38 -0500)
commit2bea6df46186d8c4f582f6a428208c2e930e7f97
treeca1fc1615aa51719a504c392267f8996d81cde1f
parent6e35700dd6c3f941ef0695e0a021da83a54215ca
net/mlx4_en: Fix selftest for small MTUs

Set the minimal MTU threshold for running loopback selftest.
MTU should be big enough to include packet payload, NET_IP_ALIGN,
Ethernet headers and preamble length.

Fixes: 4700d6458cad ("mlx4_en: Added self diagnostics test implementation")
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_selftest.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h