net/mlx4_en: loopbacked packets are dropped when SMAC=DMAC
authorAmir Vadai <amirv@mellanox.com>
Fri, 3 Aug 2012 00:38:36 +0000 (00:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Aug 2012 23:49:02 +0000 (16:49 -0700)
commitc8c40b7f32abe0878ee693480fb2f7453d80add5
tree16344bf6b607a8c42fb6524745fd64fad3f08b59
parent696ecdc10622d86541f2e35cc16e15b6b3b1b67e
net/mlx4_en: loopbacked packets are dropped when SMAC=DMAC

Should NOT check SMAC=DMAC when:
1. loopback is turned on
2. validate_loopback is true.

Fixed it accordingly.

Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c