提交 c8c40b7f 编写于 作者: A Amir Vadai 提交者: David S. Miller

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: NAmir Vadai <amirv@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 696ecdc1
...@@ -614,8 +614,8 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud ...@@ -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 /* If source MAC is equal to our own MAC and not performing
* the selftest or flb disabled - drop the packet */ * the selftest or flb disabled - drop the packet */
if (s_mac == priv->mac && if (s_mac == priv->mac &&
(!(dev->features & NETIF_F_LOOPBACK) || !((dev->features & NETIF_F_LOOPBACK) ||
!priv->validate_loopback)) priv->validate_loopback))
goto next; goto next;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册