summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDekel Peled <dekelp@mellanox.com>2019-02-24 11:41:09 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-08 17:52:22 +0100
commitefad0db1ff58461a53d803bc4df1820cbb3ae500 (patch)
tree0dca97435331c93d90cfb786253ace551772f050
parent4fb27c1dfe054972bec62fdeb6fc91680ccb3f3c (diff)
downloaddpdk-efad0db1ff58461a53d803bc4df1820cbb3ae500.zip
dpdk-efad0db1ff58461a53d803bc4df1820cbb3ae500.tar.gz
dpdk-efad0db1ff58461a53d803bc4df1820cbb3ae500.tar.xz
net/mlx4: fix default flow rule create
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 Signed-off-by: Dekel Peled <dekelp@mellanox.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
-rw-r--r--drivers/net/mlx4/mlx4_flow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx4/mlx4_flow.c b/drivers/net/mlx4/mlx4_flow.c
index 5c851e9..f4df4ab 100644
--- a/drivers/net/mlx4/mlx4_flow.c
+++ b/drivers/net/mlx4/mlx4_flow.c
@@ -250,6 +250,7 @@ mlx4_flow_merge_eth(struct rte_flow *flow,
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);