]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_vlan.c
net/mlx5: add flex parser DevX object management
[dpdk.git] / drivers / net / mlx5 / mlx5_vlan.c
index 64678d3f513b1a8367df4759694f00eef337510a..07792fc5d94f3d79e1399fb557663d963bf65e12 100644 (file)
@@ -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",