net/mlx5: support meter creation with policy
[dpdk.git] / drivers / net / mlx5 / windows / mlx5_os.c
index e37cc65..814063b 100644 (file)
@@ -23,6 +23,8 @@
 #include "mlx5_common_os.h"
 #include "mlx5_utils.h"
 #include "mlx5_rxtx.h"
+#include "mlx5_rx.h"
+#include "mlx5_tx.h"
 #include "mlx5_autoconf.h"
 #include "mlx5_mr.h"
 #include "mlx5_flow.h"
@@ -165,7 +167,7 @@ mlx5_alloc_shared_dr(struct mlx5_priv *priv)
        if (!sh->flow_tbls)
                err = mlx5_alloc_table_hash_list(priv);
        else
-               DRV_LOG(DEBUG, "sh->flow_tbls[%p] already created, reuse\n",
+               DRV_LOG(DEBUG, "sh->flow_tbls[%p] already created, reuse",
                        (void *)sh->flow_tbls);
        return err;
 }
@@ -497,6 +499,9 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
                                                 (NS_PER_S / MS_PER_S))
                                config->rt_timestamp = 1;
                }
+               sh->rq_ts_format = config->hca_attr.rq_ts_format;
+               sh->sq_ts_format = config->hca_attr.sq_ts_format;
+               sh->qp_ts_format = config->hca_attr.qp_ts_format;
        }
        if (config->mprq.enabled) {
                DRV_LOG(WARNING, "Multi-Packet RQ isn't supported");