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>
This commit is contained in:
parent
4fb27c1dfe
commit
efad0db1ff
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user