Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8c40b7f authored by Amir Vadai's avatar Amir Vadai Committed by David S. Miller
Browse files

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: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 696ecdc1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -614,8 +614,8 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud
		/* If source MAC is equal to our own MAC and not performing
		 * the selftest or flb disabled - drop the packet */
		if (s_mac == priv->mac &&
			(!(dev->features & NETIF_F_LOOPBACK) ||
			 !priv->validate_loopback))
		    !((dev->features & NETIF_F_LOOPBACK) ||
		      priv->validate_loopback))
			goto next;

		/*