From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dekel Peled Subject: [PATCH v2] net/mlx4: fix default flow rule create Date: Sun, 24 Feb 2019 11:41:09 +0200 Message-ID: <1551001269-62890-1-git-send-email-dekelp@mellanox.com> References: <1550995648-60249-1-git-send-email-dekelp@mellanox.com> Cc: dev@dpdk.org, orika@mellanox.com, yskoh@mellanox.com, dekelp@mellanox.com, stable@dpdk.org To: matan@mellanox.com, shahafs@mellanox.com Return-path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id BE4712A6A for ; Sun, 24 Feb 2019 10:46:38 +0100 (CET) In-Reply-To: <1550995648-60249-1-git-send-email-dekelp@mellanox.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Original patch changed logic of function mlx4_flow_merge_eth(). The setting of flow->promisc was wrongly removed. This patch adds the removed setting of flow->promisc, to restore the required behavior. Fixes: c0d239263156 ("net/mlx4: support flow w/o ETH spec and with VLAN") Cc: stable@dpdk.org --- v2: Correct typo in 'stable' email address. --- Signed-off-by: Dekel Peled --- drivers/net/mlx4/mlx4_flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx4/mlx4_flow.c b/drivers/net/mlx4/mlx4_flow.c index 3abde30..b7af324 100644 --- a/drivers/net/mlx4/mlx4_flow.c +++ b/drivers/net/mlx4/mlx4_flow.c @@ -250,6 +250,7 @@ struct mlx4_drop { if (!mask) { eth->val.dst_mac[0] = 0xff; flow->ibv_attr->type = IBV_FLOW_ATTR_ALL_DEFAULT; + flow->promisc = 1; return 0; } memcpy(eth->val.dst_mac, spec->dst.addr_bytes, ETHER_ADDR_LEN); -- 1.8.3.1