summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDekel Peled <dekelp@mellanox.com>2019-01-17 14:12:19 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2019-01-24 10:08:31 +0100
commit105add6bc30e3a060c0e37decb734121af0673aa (patch)
tree9faaf1eb7a552a19e03786546143693fbd02763d
parent48006390003b81f6d5c7b78e3f02ed49d1049945 (diff)
downloaddpdk-105add6bc30e3a060c0e37decb734121af0673aa.zip
dpdk-105add6bc30e3a060c0e37decb734121af0673aa.tar.gz
dpdk-105add6bc30e3a060c0e37decb734121af0673aa.tar.xz
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 <dekelp@mellanox.com> Acked-by: Shahaf Shuler <shahafs@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 6c927a6..3abde30 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;
}