#include <errno.h>
#include <string.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
#include <mlx5_glue.h>
#include "mlx5.h"
-#include "mlx5_rxtx.h"
#include "mlx5_utils.h"
/**
dev->data->port_id);
return 0;
}
- if (priv->config.vf) {
+ if (priv->sh->dev_cap.vf || priv->sh->dev_cap.sf) {
ret = mlx5_os_set_promisc(dev, 1);
if (ret)
return ret;
int ret;
dev->data->promiscuous = 0;
- if (priv->config.vf) {
+ if (priv->sh->dev_cap.vf || priv->sh->dev_cap.sf) {
ret = mlx5_os_set_promisc(dev, 0);
if (ret)
return ret;
dev->data->port_id);
return 0;
}
- if (priv->config.vf) {
+ if (priv->sh->dev_cap.vf || priv->sh->dev_cap.sf) {
ret = mlx5_os_set_allmulti(dev, 1);
if (ret)
goto error;
int ret;
dev->data->all_multicast = 0;
- if (priv->config.vf) {
+ if (priv->sh->dev_cap.vf || priv->sh->dev_cap.sf) {
ret = mlx5_os_set_allmulti(dev, 0);
if (ret)
goto error;