net/mlx5: add flex parser DevX object management
[dpdk.git] / drivers / net / mlx5 / mlx5_vlan.c
index 4bcd3e2..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"
 
@@ -114,11 +115,10 @@ mlx5_vlan_strip_queue_set(struct rte_eth_dev *dev, uint16_t queue, int on)
                rxq->vlan_strip = !!on;
                return;
        }
-       ret = priv->obj_ops->rxq_obj_modify_vlan_strip(rxq_ctrl->obj, on);
+       ret = priv->obj_ops.rxq_obj_modify_vlan_strip(rxq_ctrl->obj, on);
        if (ret) {
-               DRV_LOG(ERR, "port %u failed to modify object %d stripping "
-                       "mode: %s", dev->data->port_id,
-                       rxq_ctrl->obj->type, strerror(rte_errno));
+               DRV_LOG(ERR, "Port %u failed to modify object stripping mode:"
+                       " %s", dev->data->port_id, strerror(rte_errno));
                return;
        }
        /* Update related bits in RX queue. */
@@ -142,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",