mk: do not generate LDLIBS from directory dependencies
[dpdk.git] / examples / ip_pipeline / pipeline / pipeline_firewall.h
index 82e905d..aa79a2a 100644 (file)
@@ -49,6 +49,20 @@ app_pipeline_firewall_delete_rule(struct app_params *app,
        uint32_t pipeline_id,
        struct pipeline_firewall_key *key);
 
+int
+app_pipeline_firewall_add_bulk(struct app_params *app,
+               uint32_t pipeline_id,
+               struct pipeline_firewall_key *keys,
+               uint32_t n_keys,
+               uint32_t *priorities,
+               uint32_t *port_ids);
+
+int
+app_pipeline_firewall_delete_bulk(struct app_params *app,
+       uint32_t pipeline_id,
+       struct pipeline_firewall_key *keys,
+       uint32_t n_keys);
+
 int
 app_pipeline_firewall_add_default_rule(struct app_params *app,
        uint32_t pipeline_id,
@@ -58,6 +72,18 @@ int
 app_pipeline_firewall_delete_default_rule(struct app_params *app,
        uint32_t pipeline_id);
 
+#ifndef APP_PIPELINE_FIREWALL_MAX_RULES_IN_FILE
+#define APP_PIPELINE_FIREWALL_MAX_RULES_IN_FILE                65536
+#endif
+
+int
+app_pipeline_firewall_load_file(char *filename,
+       struct pipeline_firewall_key *keys,
+       uint32_t *priorities,
+       uint32_t *port_ids,
+       uint32_t *n_keys,
+       uint32_t *line);
+
 extern struct pipeline_type pipeline_firewall;
 
 #endif