X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fmlx5%2Fmlx5_rxmode.c;h=3a55f633fb84d3456f4666cda4847b10876a7413;hb=2a345a891917829d5eef7dc5d830131f37ec6fba;hp=2bc005e1dfaa9dc01e7f091b268028a4cf8b0553;hpb=188b8ccdfec3dc5b15b4f55687e7db6b8265ba9f;p=dpdk.git diff --git a/drivers/net/mlx5/mlx5_rxmode.c b/drivers/net/mlx5/mlx5_rxmode.c index 2bc005e1df..3a55f633fb 100644 --- a/drivers/net/mlx5/mlx5_rxmode.c +++ b/drivers/net/mlx5/mlx5_rxmode.c @@ -396,6 +396,9 @@ mlx5_promiscuous_enable(struct rte_eth_dev *dev) struct priv *priv = dev->data->dev_private; int ret; + if (mlx5_is_secondary()) + return; + priv_lock(priv); priv->promisc_req = 1; ret = priv_rehash_flows(priv); @@ -417,6 +420,9 @@ mlx5_promiscuous_disable(struct rte_eth_dev *dev) struct priv *priv = dev->data->dev_private; int ret; + if (mlx5_is_secondary()) + return; + priv_lock(priv); priv->promisc_req = 0; ret = priv_rehash_flows(priv); @@ -438,6 +444,9 @@ mlx5_allmulticast_enable(struct rte_eth_dev *dev) struct priv *priv = dev->data->dev_private; int ret; + if (mlx5_is_secondary()) + return; + priv_lock(priv); priv->allmulti_req = 1; ret = priv_rehash_flows(priv); @@ -459,6 +468,9 @@ mlx5_allmulticast_disable(struct rte_eth_dev *dev) struct priv *priv = dev->data->dev_private; int ret; + if (mlx5_is_secondary()) + return; + priv_lock(priv); priv->allmulti_req = 0; ret = priv_rehash_flows(priv);