path: root/drivers/net/mlx5
diff options
authorDekel Peled <>2019-11-07 17:04:19 +0200
committerFerruh Yigit <>2019-11-11 14:23:02 +0100
commit304ffe576f239e5405228c0feec04b6138d525b7 (patch)
tree93b1dc4786771870bd04e03aeb553a0dd1e900c5 /drivers/net/mlx5
parentf78f747f41d04a35ceca630b68ff204b0a58534e (diff)
net/mlx5: fix condition to create default rule
Previous patch added creation of a default flow rule on port start. Rule is created under the condition that device is in eswitch mode, and is not a VF, to make sure rule is created only once. In Bluefield, where PF representor is used, this condition is not sufficient. Rule is created twice, causing loss of traffic. This patch updates this condition, adding check that device is also not a representor. Fixes: b67b4ecbde22 ("net/mlx5: skip table zero to improve insertion rate") Signed-off-by: Dekel Peled <> Acked-by: Viacheslav Ovsiienko <>
Diffstat (limited to 'drivers/net/mlx5')
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index cafab25..f4dc047 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -420,7 +420,7 @@ mlx5_traffic_enable(struct rte_eth_dev *dev)
mlx5_txq_release(dev, i);
- if (priv->config.dv_esw_en && !priv->config.vf)
+ if (priv->config.dv_esw_en && !priv->config.vf && !priv->representor)
if (!mlx5_flow_create_esw_table_zero_flow(dev))
goto error;
if (priv->isolated)