]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: Fix loopback selftest
authorEugenia Emantayev <eugenia@mellanox.com>
Fri, 10 Mar 2017 12:33:05 +0000 (14:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 18:03:26 +0000 (10:03 -0800)
commitea29bd304d7b522f6162a36f394e690c579b5a63
tree5c4804aa27c132c410a5d8029db4fe7ec6d20c97
parent65ba8fb7d5c6803ec236bb8d6650465fed7f9769
net/mlx5e: Fix loopback selftest

Change packet type handler to ETH_P_IP instead of ETH_P_ALL
since we are already expecting an IP packet.

Also, using ETH_P_ALL will cause the loopback test packet type handler
to be called on all outgoing packets, especially our own self loopback
test SKB, which will be validated on xmit as well, and we don't want that.

Tested with:
ethtool -t ethX
validated that the loopback test passes.

Fixes: 0952da791c97 ('net/mlx5e: Add support for loopback selftest')
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c