net/mlx5: add flex parser DevX object management
[dpdk.git] / drivers / net / mlx5 / mlx5_vlan.c
index dbb9d36..07792fc 100644 (file)
@@ -8,7 +8,7 @@
 #include <stdint.h>
 #include <unistd.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_common.h>
 #include <rte_malloc.h>
 #include <rte_hypervisor.h>
@@ -16,6 +16,7 @@
 #include "mlx5.h"
 #include "mlx5_autoconf.h"
 #include "mlx5_rxtx.h"
+#include "mlx5_rx.h"
 #include "mlx5_utils.h"
 #include "mlx5_devx.h"
 
@@ -141,9 +142,9 @@ mlx5_vlan_offload_set(struct rte_eth_dev *dev, int mask)
        struct mlx5_priv *priv = dev->data->dev_private;
        unsigned int i;
 
-       if (mask & ETH_VLAN_STRIP_MASK) {
+       if (mask & RTE_ETH_VLAN_STRIP_MASK) {
                int hw_vlan_strip = !!(dev->data->dev_conf.rxmode.offloads &
-                                      DEV_RX_OFFLOAD_VLAN_STRIP);
+                                      RTE_ETH_RX_OFFLOAD_VLAN_STRIP);
 
                if (!priv->config.hw_vlan_strip) {
                        DRV_LOG(ERR, "port %u VLAN stripping is not supported",