From: Dekel Peled Date: Thu, 17 Jan 2019 12:12:19 +0000 (+0200) Subject: net/mlx4: fix creation of flow rule w/o ETH spec X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=105add6bc30e3a060c0e37decb734121af0673aa;p=dpdk.git net/mlx4: fix creation of flow rule w/o ETH spec The original commit enabled the creation of flow rule with empty ETH address and with specific VLAN. It works fine on PF, but such flow rule is still rejected on VF due to kernel limitation, which blocks MAC address of all zeroes. This patch complements the original commit. It sets byte 0 of MAC address to 0xFF. Fixes: c0d239263156 ("net/mlx4: support flow w/o ETH spec and with VLAN") Signed-off-by: Dekel Peled Acked-by: Shahaf Shuler --- diff --git a/drivers/net/mlx4/mlx4_flow.c b/drivers/net/mlx4/mlx4_flow.c index 6c927a6574..3abde30938 100644 --- a/drivers/net/mlx4/mlx4_flow.c +++ b/drivers/net/mlx4/mlx4_flow.c @@ -248,6 +248,7 @@ mlx4_flow_merge_eth(struct rte_flow *flow, .size = sizeof(*eth), }; if (!mask) { + eth->val.dst_mac[0] = 0xff; flow->ibv_attr->type = IBV_FLOW_ATTR_ALL_DEFAULT; return 0; }