]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit78034f5fdd622520eb843301cf35ce6c626543a7
treeca1fc1615aa51719a504c392267f8996d81cde1f
parentde9c4e06bbe872d725f306e34f3eea21155488e2
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: e7c1c2c46201 ("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