acl: implement counters
[vpp.git] / src / plugins / acl / acl.api
index b58ed76..0c230c5 100644 (file)
@@ -19,7 +19,7 @@
     used to control the ACL plugin
 */
 
-option version = "1.0.0";
+option version = "1.0.1";
 
 /** \brief Get the plugin version
     @param client_index - opaque cookie to identify the sender
@@ -69,6 +69,27 @@ define acl_plugin_control_ping_reply
   u32 vpe_pid;
 };
 
+/** \brief Get Connection table max entries
+    @param client_index - opaque cookie to identify the sender
+    @param context - sender context, to match reply w/ request
+*/
+
+define acl_plugin_get_conn_table_max_entries
+{
+  u32 client_index;
+  u32 context;
+};
+
+/** \brief Reply to get connection table max entries
+    @param context - sender context, to match reply w/ request
+    @param conn_table_max_entries - the value of maximum entries of connection table
+*/
+define acl_plugin_get_conn_table_max_entries_reply
+{
+  u32 context;
+  u64 conn_table_max_entries;
+};
+
 /** \brief Access List Rule entry
     @param is_permit - deny (0), permit (1), or permit+reflect(2) action on this rule.
     @param is_ipv6   - IP addresses in this rule are IPv6 (1) or IPv4 (0)
@@ -526,3 +547,15 @@ define acl_interface_etype_whitelist_details
   u16 whitelist[count];
 };
 
+/** \brief Enable or disable incrementing ACL counters in stats segment by interface processing
+    @param client_index - opaque cookie to identify the sender
+    @param context - sender context, to match reply w/ request
+    @param enable - whether to enable or disable incrementing the counters
+*/
+
+autoreply define acl_stats_intf_counters_enable
+{
+  u32 client_index;
+  u32 context;
+  bool enable;
+};