examples/pipeline: support hash functions
[dpdk.git] / examples / pipeline / obj.c
index 569207a..b79f044 100644 (file)
 #include <rte_mempool.h>
 #include <rte_mbuf.h>
 #include <rte_ethdev.h>
-#include <rte_swx_port_ethdev.h>
-#include <rte_swx_port_fd.h>
-#include <rte_swx_port_ring.h>
-#include <rte_swx_port_source_sink.h>
-#include <rte_swx_table_em.h>
-#include <rte_swx_table_wm.h>
 #include <rte_swx_pipeline.h>
 #include <rte_swx_ctl.h>
 
@@ -543,70 +537,6 @@ pipeline_create(struct obj *obj, const char *name, int numa_node)
        if (status)
                goto error;
 
-       status = rte_swx_pipeline_port_in_type_register(p,
-               "ethdev",
-               &rte_swx_port_ethdev_reader_ops);
-       if (status)
-               goto error;
-
-       status = rte_swx_pipeline_port_out_type_register(p,
-               "ethdev",
-               &rte_swx_port_ethdev_writer_ops);
-       if (status)
-               goto error;
-
-       status = rte_swx_pipeline_port_in_type_register(p,
-               "ring",
-               &rte_swx_port_ring_reader_ops);
-       if (status)
-               goto error;
-
-       status = rte_swx_pipeline_port_out_type_register(p,
-               "ring",
-               &rte_swx_port_ring_writer_ops);
-       if (status)
-               goto error;
-
-#ifdef RTE_PORT_PCAP
-       status = rte_swx_pipeline_port_in_type_register(p,
-               "source",
-               &rte_swx_port_source_ops);
-       if (status)
-               goto error;
-#endif
-
-       status = rte_swx_pipeline_port_out_type_register(p,
-               "sink",
-               &rte_swx_port_sink_ops);
-       if (status)
-               goto error;
-
-       status = rte_swx_pipeline_port_in_type_register(p,
-               "fd",
-               &rte_swx_port_fd_reader_ops);
-       if (status)
-               goto error;
-
-       status = rte_swx_pipeline_port_out_type_register(p,
-               "fd",
-               &rte_swx_port_fd_writer_ops);
-       if (status)
-               goto error;
-
-       status = rte_swx_pipeline_table_type_register(p,
-               "exact",
-               RTE_SWX_TABLE_MATCH_EXACT,
-               &rte_swx_table_exact_match_ops);
-       if (status)
-               goto error;
-
-       status = rte_swx_pipeline_table_type_register(p,
-               "wildcard",
-               RTE_SWX_TABLE_MATCH_WILDCARD,
-               &rte_swx_table_wildcard_match_ops);
-       if (status)
-               goto error;
-
        /* Node allocation */
        pipeline = calloc(1, sizeof(struct pipeline));
        if (pipeline == NULL)