examples/ip_pipeline: add table entry commands
[dpdk.git] / examples / ip_pipeline / pipeline.h
index 08b2555..64efbed 100644 (file)
@@ -269,6 +269,12 @@ struct table_rule_action {
        struct rte_table_action_time_params time;
 };
 
+int
+pipeline_port_in_stats_read(const char *pipeline_name,
+       uint32_t port_id,
+       struct rte_pipeline_port_in_stats *stats,
+       int clear);
+
 int
 pipeline_port_in_enable(const char *pipeline_name,
        uint32_t port_id);
@@ -277,4 +283,29 @@ int
 pipeline_port_in_disable(const char *pipeline_name,
        uint32_t port_id);
 
+int
+pipeline_port_out_stats_read(const char *pipeline_name,
+       uint32_t port_id,
+       struct rte_pipeline_port_out_stats *stats,
+       int clear);
+
+int
+pipeline_table_stats_read(const char *pipeline_name,
+       uint32_t table_id,
+       struct rte_pipeline_table_stats *stats,
+       int clear);
+
+int
+pipeline_table_rule_add(const char *pipeline_name,
+       uint32_t table_id,
+       struct table_rule_match *match,
+       struct table_rule_action *action,
+       void **data);
+
+int
+pipeline_table_rule_add_default(const char *pipeline_name,
+       uint32_t table_id,
+       struct table_rule_action *action,
+       void **data);
+
 #endif /* _INCLUDE_PIPELINE_H_ */