net/ice: enable Rx timestamp on flex descriptor
[dpdk.git] / drivers / net / ipn3ke / ipn3ke_flow.c
index 300d8f9..f5867ca 100644 (file)
 #include <rte_io.h>
 #include <rte_debug.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_log.h>
 #include <rte_malloc.h>
 #include <rte_eth_ctrl.h>
 #include <rte_tailq.h>
+#include <rte_rawdev.h>
+#include <rte_rawdev_pmd.h>
+#include <rte_bus_ifpga.h>
+#include <ifpga_common.h>
+#include <ifpga_logs.h>
+#include <ifpga_rawdev.h>
 
 #include "ipn3ke_rawdev_api.h"
 #include "ipn3ke_flow.h"
@@ -1225,7 +1231,7 @@ ipn3ke_flow_flush(struct rte_eth_dev *dev,
        struct ipn3ke_hw *hw = IPN3KE_DEV_PRIVATE_TO_HW(dev);
        struct rte_flow *flow, *temp;
 
-       TAILQ_FOREACH_SAFE(flow, &hw->flow_list, next, temp) {
+       RTE_TAILQ_FOREACH_SAFE(flow, &hw->flow_list, next, temp) {
                TAILQ_REMOVE(&hw->flow_list, flow, next);
                rte_free(flow);
        }
@@ -1360,6 +1366,7 @@ int ipn3ke_flow_init(void *dev)
                                                IPN3KE_CLF_EM_NUM,
                                                0,
                                                0xFFFFFFFF);
+       IPN3KE_AFU_PMD_DEBUG("IPN3KE_CLF_EN_NUM: %x\n", hw->flow_max_entries);
        hw->flow_num_entries = 0;
 
        return 0;
@@ -1371,4 +1378,3 @@ const struct rte_flow_ops ipn3ke_flow_ops = {
        .destroy = ipn3ke_flow_destroy,
        .flush = ipn3ke_flow_flush,
 };
-