git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: support queue/RSS actions for external Rx queue
[dpdk.git]
/
drivers
/
net
/
mlx5
/
mlx5_rxmode.c
diff --git
a/drivers/net/mlx5/mlx5_rxmode.c
b/drivers/net/mlx5/mlx5_rxmode.c
index
25fb47c
..
f44906e
100644
(file)
--- a/
drivers/net/mlx5/mlx5_rxmode.c
+++ b/
drivers/net/mlx5/mlx5_rxmode.c
@@
-36,7
+36,7
@@
mlx5_promiscuous_enable(struct rte_eth_dev *dev)
dev->data->port_id);
return 0;
}
dev->data->port_id);
return 0;
}
- if (priv->
config.v
f) {
+ if (priv->
sh->dev_cap.vf || priv->sh->dev_cap.s
f) {
ret = mlx5_os_set_promisc(dev, 1);
if (ret)
return ret;
ret = mlx5_os_set_promisc(dev, 1);
if (ret)
return ret;
@@
-69,7
+69,7
@@
mlx5_promiscuous_disable(struct rte_eth_dev *dev)
int ret;
dev->data->promiscuous = 0;
int ret;
dev->data->promiscuous = 0;
- if (priv->
config.v
f) {
+ if (priv->
sh->dev_cap.vf || priv->sh->dev_cap.s
f) {
ret = mlx5_os_set_promisc(dev, 0);
if (ret)
return ret;
ret = mlx5_os_set_promisc(dev, 0);
if (ret)
return ret;
@@
-109,7
+109,7
@@
mlx5_allmulticast_enable(struct rte_eth_dev *dev)
dev->data->port_id);
return 0;
}
dev->data->port_id);
return 0;
}
- if (priv->
config.v
f) {
+ if (priv->
sh->dev_cap.vf || priv->sh->dev_cap.s
f) {
ret = mlx5_os_set_allmulti(dev, 1);
if (ret)
goto error;
ret = mlx5_os_set_allmulti(dev, 1);
if (ret)
goto error;
@@
-142,7
+142,7
@@
mlx5_allmulticast_disable(struct rte_eth_dev *dev)
int ret;
dev->data->all_multicast = 0;
int ret;
dev->data->all_multicast = 0;
- if (priv->
config.v
f) {
+ if (priv->
sh->dev_cap.vf || priv->sh->dev_cap.s
f) {
ret = mlx5_os_set_allmulti(dev, 0);
if (ret)
goto error;
ret = mlx5_os_set_allmulti(dev, 0);
if (ret)
goto error;