forked from Minki/linux
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>
This commit is contained in:
parent
696ecdc106
commit
c8c40b7f32
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user